forked from bloominstituteoftechnology/User-Interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88c3f5e
commit 53e7ff6
Showing
7 changed files
with
381 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# User Interface Project: Great Idea Web Page | ||
|
||
Being able to create a user interface from scratch based on a design file is considered a basic necessity for front end developers. We will be building a single page website using HTML and CSS. | ||
|
||
Given this [design file](design-files/desktop.jpg), use HTML and CSS to build the web page layout. Remember, you can only use `display:inline-block` and box model CSS properties for this project. **Note: you are NOT permitted to use Flexbox or CSS Grid. This is an exercise in basic layout techniques.** | ||
|
||
**Lambda Life Tip:** Use the code from your instructor's demonstration to help you tackle the objectives. | ||
|
||
## To Get Started | ||
|
||
* Fork / Clone this project into a directory on your machine. | ||
|
||
* Open the code with your preferred integrated development environment (IDE). | ||
|
||
* Start on the objectives | ||
|
||
## Objectives: | ||
|
||
Project objectives are meant to increase your knowledge by giving you practice on the principles learned earlier in the day. Aim to complete every objective on this list. Get as far as you can on the design as we will be using your work today for tomorrow's project as well. | ||
|
||
**Watch this short guide on how to setup your project:** [UI Project Setup 101](https://youtu.be/UU9WjpMsaLE) | ||
|
||
- [ ] Study the [desktop design file](design-files/desktop.jpg). Visualize how you would convert the design into HTML and CSS. Make a quick sketch of how you would build the HTML structure. Use your sketch as a plan of action for the next two objectives. Challenge yourself to only use 10 minutes for this particular objective. | ||
|
||
- [ ] Go to your [index.html](great-idea-website/index.html) file and build out your HTML structure. You have been provided all the content and images you need to get started inside the `index.html` file. Start to code HTML around the content! | ||
|
||
- [ ] Style your HTML using the [desktop design file](design-files/desktop.jpg) as a visual guide. Use any CSS properties you want for general styling but for layout, you can only use the box model (content, padding, margin, border) and `display:inline-block`. | ||
|
||
## Stretch Goals: | ||
|
||
Stretch goals are not required. Complete the project objectives before working on stretch. Stretch goals are not covered in the guided demo and need some research on your part. There is no particular order in this list, just pick one that sounds fun and push yourself. | ||
|
||
- [ ] Give the navigation a background color and have it be fixed to the top of the page so that it scrolls with the user. You will want to study what z-index means in case you encounter any issues when you scroll. | ||
- [ ] Introduce a new font family from [google fonts](https://fonts.google.com/) | ||
|
||
- [ ] Create a new page based off of a navigation item. Create your own layout using box model and `display: inline-block;` | ||
|
||
- [ ] Change all the image tags into background images instead | ||
|
||
- [ ] Research CSS animations and see how you could implement some ideas when hovering over buttons or navigation items |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
/* http://meyerweb.com/eric/tools/css/reset/ | ||
v2.0 | 20110126 | ||
License: none (public domain) | ||
*/ | ||
|
||
html, body, div, span, applet, object, iframe, | ||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
a, abbr, acronym, address, big, cite, code, | ||
del, dfn, em, img, ins, kbd, q, s, samp, | ||
small, strike, strong, sub, sup, tt, var, | ||
b, u, i, center, | ||
dl, dt, dd, ol, ul, li, | ||
fieldset, form, label, legend, | ||
table, caption, tbody, tfoot, thead, tr, th, td, | ||
article, aside, canvas, details, embed, | ||
figure, figcaption, footer, header, hgroup, | ||
menu, nav, output, ruby, section, summary, | ||
time, mark, audio, video { | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
font-size: 100%; | ||
font: inherit; | ||
vertical-align: baseline; | ||
} | ||
/* HTML5 display-role reset for older browsers */ | ||
article, aside, details, figcaption, figure, | ||
footer, header, hgroup, menu, nav, section { | ||
display: block; | ||
} | ||
body { | ||
line-height: 1; | ||
} | ||
ol, ul { | ||
list-style: none; | ||
} | ||
blockquote, q { | ||
quotes: none; | ||
} | ||
blockquote:before, blockquote:after, | ||
q:before, q:after { | ||
content: ''; | ||
content: none; | ||
} | ||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
|
||
/* Set every element's box-sizing to border-box */ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
html, body { | ||
height: 100%; | ||
font-family: 'Titillium Web', sans-serif; | ||
} | ||
|
||
h1, h2, h3, h4, h5 { | ||
font-family: 'Bangers', cursive; | ||
letter-spacing: 1px; | ||
margin-bottom: 15px; | ||
} | ||
|
||
/* Your code starts here! */ | ||
|
||
hr { | ||
border-top: 1px solid black; | ||
width: 877px; | ||
} | ||
|
||
.row_0 .column_0 { | ||
max-width: 850px; | ||
margin: auto; | ||
} | ||
|
||
.row_1 { | ||
display: inline-block; | ||
text-align-last: justify; | ||
width: 877px; | ||
margin-top: 15px; | ||
} | ||
|
||
.row_1 .column_1 { | ||
text-align-last: justify; | ||
margin: auto; | ||
} | ||
|
||
.row_1 .column_1 a { | ||
color: gray; | ||
text-decoration: none; | ||
} | ||
|
||
.row_1 .column_1 img { | ||
height: 25px; | ||
width: 155px; | ||
vertical-align: -5px; | ||
} | ||
|
||
.row_2 { | ||
display: inline-block; | ||
text-align-last: justify; | ||
width: 877px; | ||
margin-top: 50px; | ||
margin-bottom: 50px; | ||
} | ||
|
||
.row_2 .column_1 { | ||
display: inline-block; | ||
text-align-last: center; | ||
vertical-align: 42px; | ||
margin-left: 80px; | ||
} | ||
|
||
.row_2 .column_1 h1 { | ||
font-size: 74px; | ||
margin-bottom: 0px; | ||
} | ||
|
||
.row_2 .column_1 button { | ||
background: white; | ||
width: 144px; | ||
height: 30px; | ||
font-size: 15px; | ||
} | ||
|
||
.row_2 .column_2 { | ||
display: inline-block; | ||
text-align-last: center; | ||
} | ||
|
||
.row_2 .column_2 img { | ||
height: 325px; | ||
width: 325px; | ||
} | ||
|
||
.row_3 { | ||
display: inline-block; | ||
text-align-last: justify; | ||
width: 877px; | ||
margin-top: 15px; | ||
margin-bottom: 25px; | ||
} | ||
|
||
.row_3 .column_1 { | ||
display: inline-block; | ||
text-align-last: left; | ||
width: 410px; | ||
} | ||
|
||
.row_3 .column_2 { | ||
display: inline-block; | ||
text-align-last: left; | ||
width: 410px; | ||
} | ||
|
||
.row_4 { | ||
display: inline-block; | ||
text-align-last: justify; | ||
width: 877px; | ||
margin-top: 15px; | ||
margin-bottom: 25px; | ||
} | ||
|
||
.row_5 { | ||
display: inline-block; | ||
text-align-last: justify; | ||
width: 877px; | ||
margin-top: 15px; | ||
margin-bottom: 25px; | ||
} | ||
|
||
.row_5 .column_1 { | ||
display: inline-block; | ||
text-align-last: left; | ||
width: 274px; | ||
} | ||
|
||
.row_5 .column_2 { | ||
display: inline-block; | ||
text-align-last: left; | ||
width: 274px; | ||
} | ||
|
||
.row_5 .column_3 { | ||
display: inline-block; | ||
text-align-last: left; | ||
width: 274px; | ||
} | ||
|
||
.row_6 { | ||
display: inline-block; | ||
text-align-last: justify; | ||
width: 877px; | ||
margin-top: 15px; | ||
margin-bottom: 25px; | ||
} | ||
|
||
.row_6 .column_1 { | ||
display: inline-block; | ||
text-align-last: left; | ||
width: 223px; | ||
} | ||
|
||
.row_7 { | ||
display: inline-block; | ||
text-align-last: center; | ||
width: 877px; | ||
margin-top: 15px; | ||
margin-bottom: 25px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
<!doctype html> | ||
|
||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
|
||
<title>Great Idea!</title> | ||
|
||
<link href="https://fonts.googleapis.com/css?family=Bangers|Titillium+Web" rel="stylesheet"> | ||
<link rel="stylesheet" href="css/index.css"> | ||
|
||
<!--[if lt IE 9]> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script> | ||
<![endif]--> | ||
</head> | ||
|
||
<body> | ||
<div class="row_0"> | ||
<div class="column_0"> | ||
<div class="row_1"> | ||
|
||
<div class="column_1"> | ||
<a href="#">Services</a> | ||
<a href="#">Product</a> | ||
<a href="#">Vision</a> | ||
<a href="#">Features</a> | ||
<a href="#">About</a> | ||
<a href="#">Contact</a> | ||
<a href="#"><img class="logo" src="img/logo.png" alt="Great Idea! Company logo."></a> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
<div class="row_2"> | ||
|
||
<div class="column_1"> | ||
<h1>Innovation<br>On<br>Demand</h1> | ||
<br> | ||
<button>Get Started</button> | ||
</div> | ||
|
||
<div class="column_2"> | ||
<img src="img/header-img.png" alt="Image of a code snippet."> | ||
</div> | ||
|
||
</div> | ||
|
||
<hr> | ||
|
||
<div class="row_3"> | ||
|
||
<div class="column_1"> | ||
<h2>Features</h2> | ||
<p>Aliquam elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. | ||
Suspendisse | ||
eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis.</p> | ||
</div> | ||
|
||
<div class="column_2"> | ||
<h2>About</h2> | ||
<p>Aliquam elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. | ||
Suspendisse | ||
eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis.</p> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="row_4"> | ||
|
||
<div class="column_1"> | ||
<img class="middle-img" src="img/mid-page-accent.jpg" alt="Image of code snippets across the screen"> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="row_5"> | ||
|
||
<div class="column_1"> | ||
<h2>Services</h2> | ||
<p>Aliquam elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. | ||
Suspendisse | ||
eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis.</p> | ||
</div> | ||
|
||
<div class="column_2"> | ||
<h2>Product</h2> | ||
<p>Aliquam elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. | ||
Suspendisse | ||
eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis.</p> | ||
</div> | ||
|
||
<div class="column_3"> | ||
<h2>Vision</h2> | ||
<p>Aliquam elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. | ||
Suspendisse | ||
eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis.</p> | ||
</div> | ||
|
||
</div> | ||
|
||
<hr> | ||
|
||
<div class="row_6"> | ||
|
||
<div class="column_1"> | ||
<h2>Contact</h2> | ||
123 Way 456 Street | ||
Somewhere, USA | ||
<br><br> | ||
1 (888) 888-8888 | ||
<br><br> | ||
[email protected] | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="row_7"> | ||
|
||
<div class="column_1"> | ||
Copyright Great Idea! 2018 | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> |