Grumpy Cat Resume & Github Practice & Loops!
Learning Objectives
- HTML/CSS
- Getting comfortable with GitHub
Prerequisites
- HTML/CSS
- JavaScript
- Github
Git & Github - Getting Started
Git & Github - Questions
Refer back to the notes from today and/or use the internet and google-fu to find the answers to the questions below:
Answer the following questions
- What are the two different ways to create a git repository?
- What command do you use to setup a git repository inside of your folder?
- What command do you use to ask git to start tracking a file?
- What command do you use to ask git to attach a message to your tracked files?
- What command do you use to move your work up to github.com?
HTML & CSS Videos
You should have covered all of this information during Fundamentals, but if you feel like you need a refresher on some of the basics of HTML and CSS, you can watch the following videos! If you don't need a refresher, feel free to skip this section.
- HTML Intro (tags, content, attributes, semantic HTML)
- HTML Elements (headers, navigation, lists, sections, etc.) and Media (images, audio, videos)
- CSS Intro (including css files in HTML, elements)
- CSS Basics (colors, background, font properties)
Fake Resume Page
Grumpy cat is looking for a new job! Using what you know about HTML and CSS, help him by creating a resume website for him. (Note: You don't need to know 'real information' about Grumpy Cat -- just make things up!)
This is what he wants you to include and do for his resume:
- have an
index.html
file - have an
main.css
file that is linked to theindex.html
file - have HTML
boilerplate
code forindex.html
- Include:
- at least one header
- navigation (these can be dummy links that don't go anywhere yet)
- at least one list
- change the font color in at least one place
- change the background in at least one place
- change the font in at least one place
Fake Resume Page - Getting Started
You're going to be creating a real webpage for Grumpy Cat, so we can't just keep the code on our computer. For this exercise, we'll be using Git and Github to track and host our code.
- Create a new git repo called
resume-page
either from the command line or from https://git.generalassemb.ly/new - it's your choice! - Change directories to
resume_page
(remember to clone the repo down first if you created it on github) - From inside this directory, create two files:
index.html
andstyle.css
. - Open the directory in your text editor and add the HTML boilerplate to your
index.html
.- HINT: There's a shortcut to quickly create an HTML boilerplate.
- Link your css file and add a temporary background color to help ensure it's linked properly
- Create a heading level-one tag with the name: Grumpy Cat.
- Open the
index.html
in your browser by runningopen index.html
in your terminal to confirm that everything is set up properly. You should see your heading on a colored background.
:red_circle: Commit your work!
Your commit message should read something like:
"resume index.html file is setup"
Fake Resume Page - Adding Content
- Insert a professional image of Grumpy Cat ('img' tag), it should be placed right after your 'h1' tags
- Insert an unordered list of his past three work positions ('ul' tag)
- Create links for LinkedIn and Facebook/Twitter pages ('a' tag). You can set this to a dummy link
- Use level-three heading tags to create headings before the work positions and before the links
:red_circle: Commit your work!
Your commit message should read something like:
"added initial content for resume site"
Fake Resume Page - Adding Style
Add some style to your site and feel free to style it however you want! Here are some ideas:
- Center your "h1" tag
- Change the font of your "h1" tag
- Change the color of the font of your "h3" tag
- Add some space on the body of your application to make your site look more appealing.
:red_circle: Commit your work!
Your commit message should read something like:
"added styling for resume site"
Fake Resume Page - Adding Navigation
- Create a nav bar with the links to LinkedIn, Twitter (whichever links you had created earlier); Remove the links section that you had created earlier in the homework
- In the nav bar, also create a link to the 'index.html' page (maybe give it a name of
Home Page
in the bar), and a link to a file called "projects.html" (maybe call thisProjects
in the bar) - Create another html file in this folder called 'projects.html'
- Copy the contents of the nav bar and information from the 'head' tag of your
index.html
file and paste it into yourprojects.html
file< - Inside
projects.html
, create a level-two heading and add the textProjects
- Check to make sure that your links work! When you click on "Projects" in your nav bar, does it open the
projects.html
document? - In
projects.html
, add three projects that Grumpy Cat has worked on. To do this simply, you can use an ordered list. If you're up for a little more of a challenge, create three columns: each column should contain the title and a description of their three most recent, successful projects
:red_circle: Commit your work!
Your commit message should read something like:
"added project.html page and content - finished resume"
Loops - Getting Started
Now, let's get in a little bit of JavaScript practice. Specifically, more loops!
- Close your Resume Page project and
cd
out of the resume-page directory - Create a new file called
loops.js
and open it up in your code editor
Pick five to tackle.
- Create a loop that logs the numbers from 0-99 (ascending)
- Create a loop that logs the numbers from 99-0 (descending)
- Create a loop that logs the EVEN numbers from 0-98 (ascending)
- Create a loop that logs the EVEN numbers from 98-0 (descending)
- Create a loop that logs the ODD numbers from 0-99 (ascending)
- Create a loop that logs the ODD numbers from 99-0 (descending)
- Create a loop that logs the numbers from 49-72 (ascending)
- Create a loop that logs the numbers from 81-26 (descending)
- Create a loop that logs the numbers from 3-90 that are multiples of 3 (ascending)
Hungry for More?
More for Git
- Check out this tutorial that includes videos about using git and some challenges for you to tackle.
More for grump cat's site:
-
Insert a video of grumpy cat's work or his favorite YouTube video ('iframe' tag)
-
Add a level-three heading above his video with a title for the section
-
Insert a table with his contact info (
table
tag) -
Add a level-three heading above his contact info with a title for the section
-
Give the image a 1px black border
-
Give the body of the page a thicker border than the picture but only on the top and bottom of the page
-
Using HTML, insert a short blurb or biography with "p" tags
-
Using HTML, insert a short description above your "p" tag; use an "h3" tag
-
Make his name uppercase using CSS
-
Insert another image of grumpy cat, or an image of one of his projects, but make it round
-
Insert a button on both pages that links to opening an email to his email address
-
Style the navigation bar
More for Loops
- Go back and finish all the loop problems!
- Go back and tackle the loop problems with a different kind of loop! (for, while)