Replicate the DESIGNCO design mockup below using HTML & CSS (Cascading Style Sheets).
Objectives
Build on your knowledge of HTML
Get familiar with CSS
Implement, from scratch, a given design
Requirements
The DESIGNCO logo has been supplied, along with a search icon. However the images for the gallery can come from placeholder photos or pick our your own.
You should strive to implement the design as close as possible, though, especially if you've never touch HTML or CSS before, this can be extraordinarily difficult, and will take a lot of practice and mileage. Here's some examples of past student's work on this day two assignment:
Note: You should complete at least the tasks given for explorer mode as listed below before turning in the assignment, as well as before attempting adventure or epic modes.
[ ] Use a list of links to create a horizontal top navigation bar
[ ] Use flexbox techniques to craft the image grid as well as the columns in the footer to divide the content areas
[ ] Valid, neat, and organized HTML
[ ] Valid, neat, and organized CSS
Adventurer Mode
[ ] Make the top navigation bar links highlight the background color from top to bottom when hovered
[ ] Give the images to indication that you're hovering your cursor over them
[ ] Combine the second, third, and fourth columns to use a single block of wrapping text. Making it thrice as wide as the first column. hint:flex-grow
Epic Mode
Position the navigation bar to always be fixed on top of the screen
Refine the layout so it works better on mobile phones using media queries
Make the layout fluid using relative sizing so it can fit on a mobile phone
Setup
Open your Terminal and create and change into the project's directory:
mkdir -p ~/tiy/design-co
cd ~/tiy/design-co
Run the generator to create a boilerplate project:
app-app --alpha
Answer "Yes" to the questions about GitHub and Yarn.
Open the project folder in Atom:
atom .
Remember . is an alias for the current directory.
Tab back to your Terminal and start the development server:
yarn start
This should automatically happen, but if it doesn't; navigate to http://localhost:3000 in your browser. As you make changes to your code, the development server will automatically refresh this page in real-time.
While the development browser is running, it will control your Terminal, to exit it, press Control-C. You can always start it up again with yarn start.
Using the file browser in your editor, open the file public/index.html and format your work with HTML tags and place them into the document (remember all content goes inside the <body> tags). Don't worry about the other files in the directory for now, we'll talk about those later, right now, we're mostly concerned with the two files in public; index.html and screen.css.
Turning In
These steps will be followed for almost every assignment going forward. Once you've completed at least explorer mode and you're satisfied with your work, let's get it published. First let's get it up on GitHub.
First, let's add all our work to git, and ask it to commit it:
git add .
git commit -m "I did things"
Replace "I did thing" with a more meaningful message.
Push our local commits to GitHub:
git push -u origin master
The -u option tells git we want to making pushing the master branch to origin the default, so next time, we can just type git push.
Now that our source code is up on GitHub, let's publish our page to Surge. The command to do this has already been setup for you:
yarn deploy
Turn in the URL to your repository on GitHub in newline. It should look like:
https://github.com/USERNAME/PROJECT
Reading Material
To Help prepare for tomorrow's topic, watch this video series:
DESIGNCO
Replicate the DESIGNCO design mockup below using HTML & CSS (Cascading Style Sheets).
Objectives
Requirements
The DESIGNCO logo has been supplied, along with a search icon. However the images for the gallery can come from placeholder photos or pick our your own.
You should strive to implement the design as close as possible, though, especially if you've never touch HTML or CSS before, this can be extraordinarily difficult, and will take a lot of practice and mileage. Here's some examples of past student's work on this day two assignment:
Note: You should complete at least the tasks given for explorer mode as listed below before turning in the assignment, as well as before attempting adventure or epic modes.
Download designco-assets.zip
Explorer Mode
flexbox
techniques to craft the image grid as well as the columns in the footer to divide the content areasAdventurer Mode
flex-grow
Epic Mode
Setup
Open your Terminal and create and change into the project's directory:
Run the generator to create a boilerplate project:
Answer "Yes" to the questions about GitHub and Yarn.
Open the project folder in Atom:
Remember
.
is an alias for the current directory.Tab back to your Terminal and start the development server:
This should automatically happen, but if it doesn't; navigate to http://localhost:3000 in your browser. As you make changes to your code, the development server will automatically refresh this page in real-time.
While the development browser is running, it will control your Terminal, to exit it, press
Control-C
. You can always start it up again withyarn start
.Using the file browser in your editor, open the file
public/index.html
and format your work with HTML tags and place them into the document (remember all content goes inside the<body>
tags). Don't worry about the other files in the directory for now, we'll talk about those later, right now, we're mostly concerned with the two files inpublic
;index.html
andscreen.css
.Turning In
These steps will be followed for almost every assignment going forward. Once you've completed at least explorer mode and you're satisfied with your work, let's get it published. First let's get it up on GitHub.
First, let's add all our work to git, and ask it to commit it:
Replace "I did thing" with a more meaningful message.
Push our local commits to GitHub:
The
-u
option tells git we want to making pushing themaster
branch toorigin
the default, so next time, we can just typegit push
.Now that our source code is up on GitHub, let's publish our page to Surge. The command to do this has already been setup for you:
Turn in the URL to your repository on GitHub in newline. It should look like:
Reading Material
To Help prepare for tomorrow's topic, watch this video series:
https://www.youtube.com/watch?v=sewV3LsmoXI