This assignment designed to help you set up your development environment. You will build a simple card using only HTML/CSS. The card will look like this example except with your own details.
- The webpage should mirror the layout shown in the example.
- Elements: You should use at least one of all the following: image (
<img>), link (<a>), paragraph (<p>), heading (<h1>, <h2>, ...). - Layout: The image, heading, and link must all be horizontally centered. The biography text can be either left-aligned or horizontally centered.
- Styling: All styling must lie within the CSS file. (No inline styling!)
- The image should have a height and width of 150px.
If you'd like to get some hands-on experience with Javascript before the next MP, you may attempt to recreate this example. Although this will not be graded, understanding this early-on will make your life significantly easier for the next MP! :)
To get started, follow the environment setup.
- Make sure you have Node.js and git installed.
- Create an account on GitLab
- Clone this repository:
git clone https://gitlab.com/uiuc-web-programming/mp0 mp0, thencd mp0 - Install dependencies:
npm install - Start the dev server:
npm start
If the web browser does not open automatically, go to http://localhost:8080/ to view your page. Note that if for some reason your port 8080 is occupied, it will default to 8081. If you can see "Hello World!", then you are all set!
You should now be able to edit the files in the src folder and see the changes in your browser.
This assignment is worth 5% of your final grade. Breakdown is as follows:
- Correct HTML tags and content (2%)
- Correct CSS styling (%2)
- Correct Deployment and submission (%1)
- This is an individual assignment. No collaboration is permitted.
- It is not permitted to copy/paste code that is not your own. You are, however, free to look at different code sources for inspiration and clarity. All sources (code as well as reading material) that you reference to complete this assignment must be declared in the submission.
- There must be no use of any library.
- There should be no use of inline styling.
- No inline script tags should be used.
- HTML tables cannot be used for layout.
- If you think something you’re doing might not be acceptable, please ask on Piazza.
Here's what you will need to submit:
- Create a private repository on GitLab. Make sure "Initialize this repository with a README" is not checked.
- Change the remote url for the mp0 directory to the url of the new private repository you created.
git remote rename origin old-origin
git remote add origin git@gitlab.com:<your-gitlab-username>/mp0.git
- Commit and push your local changes to this new repository.
.gitlab-ci.ymlfile automatically makes a Gitlab CI pipeline run to deploy your code. After the pipeline finishes, your site should be live athttps://<your-gitlab-username>.gitlab.io/mp0. It may take up to 10-30 minutes for the site to go live after the first deployment.- Invite
uiucwpas a collaborator. This should be as a reporter, not as a guest, otherwise we can't see your code. - Fill out and submit the form here.