Skip to content

Commit c068d1c

Browse files
committed
Updates to UI - Great Idea Project
- Updated readme - Added .DS_Store to gitignore - Moved design files - Updated HTML structure
1 parent 4ce0e48 commit c068d1c

11 files changed

+107
-124
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

README.md

+22-14
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
1-
# HTML / CSS - User Interface Project
1+
# User Interface Project: Great Idea Web Page
22

3-
We will be building a single page website throughout this week. We will approach the layout in a few different ways so that we can learn the many challenges of building user interface. The first challenge will be to build the interface using only the box model and display types of block and inline. You can use floats and clears if you want as well!
3+
Being able to create a user interface from a design file is considered a basic necessity for front end developers. We will be building a single page website throughout this week to get plenty of practice using HTML and CSS. We will approach the same layout in several different ways so that we can learn the many challenges of building user interfaces. The first challenge will be to build the interface using only the box model and `display: inline-block`. You can use floats and clears if you want as well! The second challenge will be to re-build your first `inline-block` build with `flexbox` techniques. **Do not skip the first challenge!** The learnings you will gain from `inline-block` layout are important for you to understand.
44

5-
The second challenge will be to re-approach your first build with flexbox techniques. Don't accomplish the second challenge until you have completely finished the page using box model and display types only!
5+
**Hint**
6+
The HTML structure is already in the project, you can use that as a guide for your CSS. **If you want to stretch yourself, delete the HTML and start from scratch.**
67

7-
*Hint*
8-
The HTML is already in the project, you can use that as a guide for your CSS. If you want to stretch yourself, delete the HTML and start from scratch.
8+
### Challenge 1: `display:inline-block`
9+
You are to only use `display:inline-block` and the box model CSS properites to get as much of the layout done as you can. If this is your first time coding HTML and CSS, just try to get the top half of the page done.
910

10-
### Useful Resources
11-
* [CSS Box Model](https://www.w3schools.com/css/css_boxmodel.asp)
12-
* [Flexbox Reference](https://scotch.io/tutorials/a-visual-guide-to-css3-flexbox-properties)
11+
***Useful Resource: [Layout Using inline-block](http://learnlayout.com/inline-block-layout.html)***
1312

14-
### Challenge 1
15-
Objective: Code up as much of the web page as you can using the box model and any layout techniques you have learned.
13+
***Objectives:***
14+
- Style the provided HTML using `display:inline-block` and box model CSS properties only.
15+
- Try to make your styles match as close to the [design files as possible.](design-files/great-idea-example.jpg)
16+
- Aim for coding the whole page from navigation all the way to the footer
17+
- **Stretch Goal**: Delete the provided HTML and build your own file.
1618

17-
* Try to make the site look like the included great-idea-example.jpg
19+
### Challenge 2: `display: flexbox`
20+
Building layouts with `flexbox` is way more fun compared to inline-block but `flexbox` comes with a lot more things to learn. This challenge is to use the [same layout design file](design-files/great-idea-example.jpg) as challenge 1 but now you will use flexbox to control your layout isntead of `inline-block`.
1821

19-
* I have included a CSS reset and some base styles you will need to match the design.
22+
***Useful Resource: [Flexbox Guide](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)***
2023

21-
### Challenge 2
22-
* Objective: Incorporate flexbox where you were using box model before.
24+
***Objectives:***
25+
- You must complete challenge 1 before attempting challenge 2.
26+
- Incorporate `flexbox` where you were using `inline-block`.
27+
- Aim for coding the whole page from navigation all the way to the footer
28+
- **Stretch Goal**: Delete the provided HTML and build your own file.
29+
30+
**If you accomplish both challenges early, push yourself to build the other pages in the navigation**
2331

2432
#### To Get Started
2533
* Fork / Clone this project into a directory on your machine.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

great-idea/index.html

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<!doctype html>
2+
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
7+
<title>Great Idea!</title>
8+
9+
<link href="https://fonts.googleapis.com/css?family=Bangers|Titillium+Web" rel="stylesheet">
10+
<link rel="stylesheet" href="css/index.css">
11+
12+
<!--[if lt IE 9]>
13+
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
14+
<![endif]-->
15+
</head>
16+
17+
<body>
18+
19+
<div class="container">
20+
21+
<header>
22+
<nav>
23+
<a href="#">Services</a>
24+
<a href="#">Product</a>
25+
<a href="#">Vision</a>
26+
<a href="#">Features</a>
27+
<a href="#">About</a>
28+
<a href="#">Contact</a>
29+
</nav>
30+
<img class="logo" src="img/logo.png" alt="Great Idea! Company logo.">
31+
</header>
32+
33+
<section class="cta">
34+
<div class="cta-text">
35+
<h1>Innovation<br> On<br> Demand</h1>
36+
<button>Get Started</button>
37+
</div>
38+
<img src="img/header-img.png" alt="Image of a code snippet.">
39+
</section><!-- cta -->
40+
41+
<section class="main-content">
42+
<div class="top-content">
43+
<div class="text-content">
44+
<h4>Features</h4>
45+
<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>
46+
</div>
47+
<div class="text-content">
48+
<h4>About</h4>
49+
<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>
50+
</div>
51+
</div>
52+
<img class="middle-img" src="img/mid-page-accent.jpg" alt="Image of code snippets across the screen">
53+
<div class="bottom-content">
54+
<div class="text-content">
55+
<h4>Services</h4>
56+
<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>
57+
</div>
58+
<div class="text-content">
59+
<h4>Product</h4>
60+
<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>
61+
</div>
62+
<div class="text-content">
63+
<h4>Vision</h4>
64+
<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>
65+
</div>
66+
</div>
67+
</section><!-- main-content -->
68+
69+
<section class="contact">
70+
<h4>Contact</h4>
71+
<p>123 Way 456 Street<br>
72+
Somewhere, USA</p>
73+
<p>1 (888) 888-8888</p>
74+
75+
</section><!-- contact -->
76+
77+
<footer>
78+
<p>Copyright Great Idea! 2018</p>
79+
</footer>
80+
81+
</div><!-- container -->
82+
83+
</body>
84+
</html>

project1/.DS_Store

-6 KB
Binary file not shown.

project1/index.html

-110
This file was deleted.

project1/js/index.js

Whitespace-only changes.

0 commit comments

Comments
 (0)