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
218 changes: 218 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,221 @@
/* 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;
}

/* Copy and paste your work from yesterday here and start to refactor into flexbox */


body{
display: flex;
justify-content: center;
}
.container{
max-width: 880px;
}
header{
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 35px;
}
header nav{
display: flex;
justify-content: space-between;
color: gray;
width: 69%;
}
header nav a{
color: gray;
text-decoration: none;
}
.innovate{
display: flex;
margin: 70px 0px 75px 0px;
}
.innovote-text{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
font-size: 75px;
width: 51%;
}


.logo{
margin-left: 110px;
padding-top: 20px;
}


.button1{
padding: 10px 40px;
margin: 0px;
background-color: white;
border: 1px solid black;
color: black;
}

@keyframes link{
0%{background:black;}
25%{background:darkgreen;}
50%{background: darkblue;}
100%{background:blueviolet }
}
.button1:hover{
color: white;
font-size: 75%;
animation-name: link;
animation-duration: 2s;
animation-iteration-count: infinite;
}

.content{
display: flex;
}

.content1{
margin: 20px 1%;
}
.content2{
margin: 20px 1%;
}

.content img{
width: 100%;
padding: 10px;
}

footer{
margin-bottom: 50px;
padding: 25px;
text-align: center
}
@media(max-width: 800px){
.container{
width:90%;
}
header{
display: flex;
flex-direction: column-reverse;
align-items: center;
}
header nav{
margin-top: 45px;
width: 92%;
}
.logo{
margin-left: 0px;
}

.innovate{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.image1{
display: none;
}
}
@media(max-width: 500px){
.image1{
display: none;
}
.container{
width: 100%;
}
header nav{
width: 100%;
display: flex;
flex-direction: column;
}
header nav a{
width: 100%;
display: flex;
justify-content: center;
padding: 20px;
border-bottom: 1px solid black;
}
header nav a:first-child{
border-top: 1px solid black;
}

.logo{
margin-left: 0px;
}
.innovate{
display: flex;
flex-direction: column;
align-items: center;
}
.content{
display:flex;
flex-direction: column;

}
}
74 changes: 74 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Great Idea - Responsive I</title>

<link href="https://fonts.googleapis.com/css?family=Bangers|Titillium+Web" rel="stylesheet">
Expand All @@ -11,6 +12,79 @@
</head>

<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>
</nav>
<img class="logo" src="img/logo.png" alt="Great Idea! Company logo.">

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


<hr>

<section class= "content">
<div class="content1">
<h3>Features</h3>
<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="content1">
<h3> About</h3>
<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>

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

<section class= "content">
<div class="content2">
<h3>Services</h3>
<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="content2">
<h3>Product</h3>
<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="content2">
<h3>Vision</h3>
<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>
</section>
<hr>
<section class= "contact-info">
<h3>Contact</h3>
<p>Way 456 Street</p>
<p>Somewhere, USA</p><br>
1 (888) 888-8888<br><br>
sales@greatidea.io
</section>
<footer>
Copyright Great Idea! 2018
<br>
</footer>
</div>
<!-- Copy and paste your HTML from the first UI project here -->

>
<!-- Use past code you created here for Great Idea Web Page or past solution for Great Idea Web Page HTML here! -->
</body>
</html>