Skip to content
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
240 changes: 239 additions & 1 deletion css/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,241 @@
/* Use your own code or past solution for Great Idea Web Page CSS here! */
/* 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;
}

body {
margin: 20px 30px;
width: 876px;
}

@media(min-width:953px) {
body {
margin: 20px auto;
}
}

header nav {
display: flex;
justify-content: space-between;
align-items: center;
}

a {
text-decoration: none;
color: grey;
}

.cta {
display: flex;
justify-content: space-between;
margin: 70px 0px;
}

.cta-text {
text-align: center;
width: 50%;
margin-top: 65px;
}

h1 {
font-size: 72px;
}

button {
background-color: white;
border: 1px solid black;
padding: 5px 35px;
font-size: 14px;
}

.top-content {
display: flex;
margin: 40px 0;
}

.bottom-content {
display: flex;
justify-content: space-between;
margin: 40px 0;
}

.bottom-content .text-content {
width: 32%;
}

.contact {
margin: 30px 0;
}

footer {
text-align: center;
margin-bottom: 100px;
}

@media(max-width:800px) {
body {
width: 100%;
margin-left: 0;
}

html {
margin-left: 20px;
margin-right: 20px;
}

header nav a {
order: 1;
}

header nav {
flex-wrap: wrap;
}

header div {
width: 100%;
display: flex;
justify-content: center;
margin-bottom: 40px;
}

.cta img {
display: none;
}

.cta {
justify-content: center;
margin-top: 0;
}

.middle-img{
width: 100%;
}
}

@media(max-width:500px) {
html {
margin-left: 0;
margin-right: 0;
}

header nav {
flex-direction: column;
}

header div, header nav a {
padding-bottom: 10px;
margin-bottom: 10px;
border-bottom: 1px solid black;
}

header nav a {
width: 100%;
text-align: center;
margin-left:
}

.cta-text {
width: 100%;
}

.main-content {
margin-left: 20px;
margin-right: 20px;
}

hr {
margin-left: 20px;
margin-right: 20px;
}

.top-content {
flex-direction: column;
}

.top-content div {
margin-bottom: 30px;
}

.main-content img {
margin-top: -40px;
}

.bottom-content {
flex-direction: column;
margin-bottom: 0;
}

.bottom-content .text-content {
width: 100%;
margin-bottom: 30px;
}

.contact {
margin-left: 20px;
margin-top: 40px;
}

footer {
margin-bottom: 20px;
}
}
90 changes: 86 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,96 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Great Idea - Responsive I</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<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>
<!-- Use past code you created here for Great Idea Web Page or past solution for Great Idea Web Page HTML here! -->
</body>
<body>

<div class="container">

<header>
<nav>
<a href="services.html">Services</a>
<a href="#">Product</a>
<a href="#">Vision</a>
<a href="#">Features</a>
<a href="#">About</a>
<a href="#">Contact</a>
<div><img class="logo" src="https://tk-assets.lambdaschool.com/c7e8c14d-d7ad-4d21-9c18-4a68c77e5ad5_logo.png" alt="Great Idea! Company logo."></div>
</nav>
</header>

<section class="cta">
<div class="cta-text">
<h1>Innovation<br> On<br> Demand</h1>
<button>Get Started</button>
</div>
<img src="img/header-img.png" alt="Image of a code snippet.">
</section>

<hr>

<section class="main-content">

<div class="top-content">
<div class="text-content">
<h4>Features</h4>
<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="text-content">
<h4>About</h4>
<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>

<img class="middle-img" src="img/mid-page-accent.jpg" alt="Image of code snippets across the screen">

<div class="bottom-content">
<div class="text-content">
<h4>Services</h4>
<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="text-content">
<h4>Product</h4>
<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="text-content">
<h4>Vision</h4>
<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>

</section>

<hr>

<section class="contact">

<h4>Contact</h4>

<p>123 Way 456 Street<br> Somewhere, USA</p>

<p><br>1 (888) 888-8888</p>

<p><br>sales@greatidea.io</p>

</section>

<footer>
<p>Copyright Great Idea! 2018</p>
</footer>

</div><!-- container -->


</body>
</html>