FE Masters - 3 Column Preview

We're going to do our first Front-end Masters challenge. Go to the page below and download the starter files. You want to start collecting projects to demonstrate what you have done. So, for this project I want you to create a GitHub repository and publish it to Netifly for your submission (directions at the bottom in the Submission section).

Starter Files

Start by reading the style-guide.md file for the general specs.

Use the design/desktop-design.png model.

Here's the original HTML file if you want to start from scratch.

Solution

I am providing the solution below, but you should attempt to do as much as you can on your own. After you do it once, delete the code and try it again from scratch.

Bonus

Use CSS var function for colors

Currently, we are specifying the same color in two places for each of the different sections.

There is a better way to do this using the CSS var function.

Read how the var() function works in CSS and use the var function to define each of these colors in a variable and then use the variable value for the value of the color.

I've provided the color variables in the html block below for you to add. All you need to do is use the var() function where the colors are used to use these global color values.

Add border-radius to the four outside corners of overall box.

Hint: you need to set the border radius on specific section selectors, but targeting only the specific corners. Look up how to set the border-radius for a specific corner.

Submitting Assignment

Create a git repository for the project.

  • git init (in the project folder)

  • git add --all

  • git commit -m"first checkin"

Create a repository on GitHub

  • got to GitHub website

  • create a new repository named something like "FE Mentors - 3 Col Preview"

  • copy/paste the three commands for associating you local repo with the GitHub repo

  • go to Netifly and create a website associated with the GitHub site.

Any updates you want to make to your project just need the two following commands

  • git commit -am"some comment" (-am combines git add and git commit)

  • git push

Resources

Version Control - Git/GitHub

Last updated

Was this helpful?