Skills based review for the Junior Web Developer CSS Introduction lesson.
- When you get into your breakout room, select a team member to share their screen and record the answers the team finds
- With your Breakout Team, scroll through the CSS Code below and answer the questions in the comments
- Team members who are not sharing screen should also fill in the answers and make the changes in their own code
- Use your Google Foo skills to find the answers and explore what CSS can offer your website
- All team members should search for the answers, use the chat to send helpful links that are found
- Feel free to copy and paste useful links into comments in this file for easy reference in the future
- Communicate and work with your team to ensure all members understand the answers before you move on to answering the next question
- If you finish early, try the BONUS questions at the bottom of the file, and/or explore any concepts you come across that you find interesting or want to learn more about!
- HAVE FUN! :)
- Begin by forking this project into a personal repository.
- To do this, click the
Forkbutton located at the top right of this page.
- To do this, click the
- Navigate to your github profile to find the newly forked repository.
- Clone the repository from your account into the directory on your computer that you use to keep your projects (ex.
dev-projectsdirectory). - Open the newly cloned project in a code editor (ex. Visual Studio Code).
- from your text editor (i.e. - Visual Studio Code), select:
File>Add Folder to WorkSpace- Select the directory you use to store your projects (ex.
dev-projectsdirectory) - From the text editor,in the directory you use to store your projects (ex.
dev-projectsdirectory), locate the newly cloned project - Expand the project from the project explorer (may just be called
explorer) - Modify the
index.htmlandassets/css/style.cssper the directions provided.
-
Open in browser/live server so you can see your changes in real time and notice how the code morphs the
live browser page -
Start by linking your css file to your html file
- Add a universal selector at the top of the CSS file (
*), and within that ruleset -- add a property ofbox-sizingwith a value ofborder-box
-
Change the font on the page to be more modern. - Go to the Google Fonts website and find the
'Open Sans'font. - Open the font, and select: 'Light 300', Light 300 Italic', 'Regular', 'Regular 400 Italic', 'SemiBold 600', 'SemiBold 600 Italic', 'Bold 700', 'Bold 700 Italic' - Copy the entire<link rel=...stylesheet">link in the pop-up side menu (you may have to widen your screen to view). Then paste the stylesheet link in the index.html, above the local CSS file. - Copy the entirefont-family rule, and paste in Step 5. -
In the
bodyselector ruleset, add a font-family property with a value of'Open Sans', sans-serif
-
On the same
bodyselector, replace thebackground-color propertywith thebackground-image property. Add a value oflinear gradientwithwhitesmokeas the first value, andrgb(35, 47, 58)as the second value. -
Convert the
paddingproperty on theli aruleset to the shorthand syntax; -
Add a
text-alignproperty with a value ofcenterto the sameli aruleset. -
Add Add a
text-alignproperty with a value ofcenterto the.center-titleclass selector. -
a. Navigate to the
index.htmland remove thewidthattribute -
b. Add a
widthproperty with the value of30%to thefigureselector. -
Add a
flex-directionproperty with a value of column to thesection,#about-sec, andfigureselectors. -
In the
asideelement selector ruleset:- Use the shorthand
borderproperty to add a4px double blackborder - Add a
marginproperty and set the values to reflect1emon the top and bottom, and the sides to0; - Add a
colorproperty, with a value ofrgba(35, 47, 58, 0.05) - Add a
background-colorofrgba(35, 47, 58, 0.05)
- Use the shorthand
-
Add an
aside pelement selector directly underneath theasideselector, above the#concert-schedule-sec:- Add a
font-weightproperty with a value of600 - and a
font-sizeproperty with a value of1.25em - Add a
background-colorproperty, with a value ofrgb(35, 47, 58) - Add a
colorproperty, with a value ofwhitesmoke - Add a
paddingproperty, with a value of0.5emon all sides - Add a
marginproperty, with a value of0 - Add a
text-transformproperty, with a value ofuppercase - Add a
border-bottomof4px double rgba(0, 0, 0, 0.77) - Add an
opacityproperty, with a value of0.6
- Add a
-
Add an
aside ul li aelement selector directly underneath theaside pselector, above the#concert-schedule-sec:- Add a
text-alignproperty with a value ofjustify - and a
paddingproperty with a value of0 - Add a
colorproperty, with a value ofrgb(35, 47, 58) - Add a
text-decorationproperty, with a value ofunderline
- Add a
-
Add an
aside ulelement selector directly underneath theaside pselector, above theaside ul li a:- Add a
font-sizeproperty with a value of0.9em - Add a
marginof1emon all sides - Add a
paddingproperty of0on the top and bottom,0.75emon the right, and1emon the left
- Add a
-
Add a
figcaptionelement selector ruleset directly underneath thefigureselector. -
In the figcaption ruleset:
- Add a
property-value pairthat willmake the text italic - Add a
background colorproperty, and set the value torgba(35, 47, 58) - Set the
colorof the figcaption text towhitesmoke - Using the
padding shorthandproperty, add0.25emof padding on all sides - Add an
opacityproperty, and set the value to0.5 - Add a
font-sizeproperty, and set the value to0.85em;
- Add a
-
Around line 55, locate the
#about-secselector, directly below that, and above the#about-sec divselector, add an#about-sec h2ruleset:- Add a
font-sizeproperty, with a value of1.95em - and a
paddingproperty, with a value of0 1.5em
- Add a
-
Directly below the
#about-sec h2ruleset, add an#about-sec #about-blurbruleset:- Add a
paddingproperty, with a value of0 2.5em
- Add a
-
Locate the
Table - Concert Schedulein both theindex.htmlandstyle.css, as well as in thebrowser -
In the
#concert-schedule-secruleset:- Add a
colorproperty, and a value ofrgb(255, 54, 154) - Add a
background-colorproperty, with a value ofblack - Replace the
max-widthproperty with thewidthproperty, and set the value to100vw - Add a
paddingproperty with a value of2em;
- Add a
-
Add a
#concert-schedule-sec h3element selector ruleset directly underneath the last selector.- Add a
font-sizeproperty with a value of2em;
- Add a
Last: Continue to modify the colors, borders, and transitions however you like with the remaining elements! Experiment with positioning, margins, padding, user-experience, etc.
*** BONUS ***
- Find a website with a list of the movies Harry Styles has been in and hyperlink it to the
See Moviesa tag. Can you get the link to open in a new tab? - Link the navigation list items to jump to the corresponding section on the page
- From a terminal navigate to the root directory of the cloned project.
- From the root directory of the project, execute the following commands:
git add .- Add all files in current directory to the staging area
git commit -m 'I have made an edit to a file!'- Save all staged changes to local repository
git push -u origin main- Push changes from local repository to remote repository
- From the browser, navigate to the forked project from your Github account.
- Click the
Pull Requeststab. - Select
New Pull Request