Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprint Resub #358

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 167 additions & 8 deletions css/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* http://meyerweb.com/eric/tools/css/reset/
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
Expand All @@ -12,8 +12,8 @@ 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,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
Expand All @@ -24,7 +24,7 @@ time, mark, audio, video {
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
Expand Down Expand Up @@ -54,6 +54,7 @@ table {
html, body {
height: 100%;
font-family: 'Roboto', sans-serif;
font-size: 62.5%;
}

h1, h2, h3, h4, h5 {
Expand All @@ -67,7 +68,7 @@ p {
}

.container {
width: 800px;
max-width: 800px;
margin: 0 auto;
}

Expand All @@ -82,7 +83,9 @@ p {
.top-content .text-container {
width: 48%;
padding: 0 1%;
padding-bottom: 20px;
padding-bottom: 20px;
padding-top: 20px;
font-size: 1.5rem;
}

.middle-content {
Expand Down Expand Up @@ -110,6 +113,7 @@ p {
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
}

.bottom-content {
Expand All @@ -120,6 +124,7 @@ p {

.bottom-content .text-container {
padding-right: 4%;
font-size: 1.5rem;
}

.bottom-content .text-container:last-child {
Expand All @@ -137,10 +142,164 @@ footer nav {
justify-content: space-between;
align-items: center;
padding: 20px 2%;
font-size: 14px;
font-size: 1.5rem;
}

footer nav a {
color: white;
text-decoration: none;
}
display: flex-inline;
justify-content: center;
font-size: 1.5rem;
}

header {
display: flex;
justify-content: center;
}

header nav {
padding-bottom: 30px;
padding-top: 20px;
}

header nav a{
padding: 10px 37px 20px 37px;
color: black;
font-size: 1.5rem;
}

#box2 {
background-color: forestgreen;
}

#box4 {
background-color: darkorchid;
}

#box6 {
background-color: hotpink;
}

#box8 {
background-color: indigo;
}

#box10 {
background-color: lawngreen;
}

@media( max-width: 768px ) {

.container {
width: 700px;
}

.logo {
display: block;
padding: 20px;
text-align: center;
margin: 0 auto;
}

#box1 {
background-color: teal;
}

#box3 {
background-color: gold;
}

#box5 {
background-color: cadetblue;
}

#box7 {
background-color: coral;
}

#box9 {
background-color: crimson;
}

header nav a {
padding-left: 40px;
padding-right: 40px;
}
}

@media(max-width: 400px) {

.container {
width: 400px;
display: block;
}

.bottom-content {
display: block;
}

.bottom-content .text-container {
width: 350px;
padding-bottom: 10px;
}

.img-container {
margin-bottom: 30px;
}

.logo {
display: block;
}

.top-content {
display: block;
}

.top-content img {
position: absolute;
top: 360px;
width: 400px;
}
.top-content .text-container {
width: 350px;
padding: 10px;
margin-top: 50px;
}

.middle-content {
width: 375px;
}

.middle-content .boxes {
display: flex;
flex-flow: row-reverse wrap;
}

.middle-content .boxes .box {
width: 100px;
}

footer {
display: flex;
justify-content: flex-start;
}

footer nav a {
padding-left: 10px;
padding-right: 15px;
}

header nav a {
display: block;
border-bottom: 1px solid black;
width: 400px;
text-align: center;
color: black;
font-size: 1.5rem;
}

#box10 {
display: none;
}
}
56 changes: 35 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
<!doctype html>

<html lang="en">
<html>
<head>
<meta charset="utf-8">

<title>Sprint Challenge - UI / RWD</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sprint Challenge - Home</title>

<link href="https://fonts.googleapis.com/css?family=Roboto|Rubik" rel="stylesheet">
<link rel="stylesheet" href="css/index.css">

</head>

<body>
<header>
<nav>
<a href="#"><img src="img/lambda-black.png" class="logo"/></a>
<a href="#">Home</a>
<a href="about.html">About</a>
<a href="#">Products</a>
<a href="#">Blog</a>
<a href="#">Contact</a>
</nav>
</header>
<div class="container">

<section class="top-content">
<div class="img-container">
<img src="img/jumbo.jpg"/>
</div>
<div class="text-container">
<h2>The Future</h2>
<p>Proin sed quam sed tellus vestibulum ultrices quis in nunc. Phasellus id dui id tortor tincidunt efficitur. Proin faucibus imperdiet erat, non varius lacus. Maecenas non nisl id turpis egestas tincidunt. Nam condimentum venenatis magna eget finibus.</p>
Expand All @@ -23,24 +36,24 @@ <h2>The Past</h2>
<p>Proin sed quam sed tellus vestibulum ultrices quis in nunc. Phasellus id dui id tortor tincidunt efficitur. Proin faucibus imperdiet erat, non varius lacus. Maecenas non nisl id turpis egestas tincidunt. Nam condimentum venenatis magna eget finibus.</p>
</div>
</section>

<section class="middle-content">

<h2>Why Did It Have To Be Boxes...</h2>

<div class="boxes">
<div class="box">Box 1</div>
<div class="box">Box 2</div>
<div class="box">Box 3</div>
<div class="box">Box 4</div>
<div class="box">Box 5</div>
<div class="box">Box 6</div>
<div class="box">Box 7</div>
<div class="box">Box 8</div>
<div class="box">Box 9</div>
<div class="box">Box 10</div>
<div class="box" id="box1">Box 1</div>
<div class="box" id="box2">Box 2</div>
<div class="box" id="box3">Box 3</div>
<div class="box" id="box4">Box 4</div>
<div class="box" id="box5">Box 5</div>
<div class="box" id="box6">Box 6</div>
<div class="box" id="box7">Box 7</div>
<div class="box" id="box8">Box 8</div>
<div class="box" id="box9">Box 9</div>
<div class="box" id="box10">Box 10</div>
</div>

</section>

<section class="bottom-content">
Expand All @@ -59,7 +72,7 @@ <h2>Moon</h2>
</div>

</section>

<footer>
<nav>
<a href="#">Home</a>
Expand All @@ -69,6 +82,7 @@ <h2>Moon</h2>
<a href="#">Contact</a>
</nav>
</footer>
</div><!-- container -->

</div>
</body>
</html>
</html>