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
297 changes: 296 additions & 1 deletion css/index.css
Original file line number Diff line number Diff line change
@@ -1 +1,296 @@
/* Use your CSS from RWD - I here. IF you don't have CSS, use the solution CSS from RWD - I*/
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;
}


* {
box-sizing: border-box;
transition: all 1s ease-in-out;
}

html, body {
height: 100%;
font-size: 62.5%;
font-family: 'Titillium Web', sans-serif;
}

h1, h2, h3, h4, h5 {
font-family: 'Bangers', cursive;
letter-spacing: 1px;
margin-bottom: 3%;
}

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


header {
width: 100%;
display: flex;
}

header nav {
margin-top: 5%;
width: 65%;
font-size: 1.8rem;
justify-content: space-between;
display: flex;
}

header nav a {
text-decoration: none;
color: #b0b0b0;
}

header nav a:hover {
text-decoration: underline;
color: black;
}

header .logo {
margin: 4% 0 0 16%;
}


.cta {
display: flex;
margin-top: 12%;
justify-content: flex-end;
}

.cta .cta-text {
font-size: 7.5rem;
text-align: center;
letter-spacing: 5px;
display: flex;
justify-content: center;
flex-flow: column;
align-items: center;
margin: 0 15% 0 0;
}

.cta .cta-text button {
border: 1px double black;
font-size: 1.6rem;
background: white;
width: 60%;
height: 10%;
margin-top: 4%;
cursor: pointer;
}

.cta .cta-text button:hover {
background: black;
color: white;
}

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


.main-content {
border-top: 2px solid black;
border-bottom: 2px solid black;
margin: 10% 0 3% 0;
padding: 3% 0;
font-size: 1.6rem;
line-height: 100%;
}

.main-content .top-content {
display: flex;
}

.main-content .middle-img {
display: block;
margin: 3% auto;
}

.main-content .bottom-content {
display: flex;
}

.main-content .bottom-content p {
padding-right: 5%;
}


.contact p {
margin: 2% 0;
font-size: 1.6rem;
}

.contact h4 {
font-size: 1.6rem;
}


footer {
text-align: center;
margin: 5% 0 2%;
}

/* Tablet */
@media (max-width: 800px) {

.container {
width: 100%;
}

header {
flex-wrap: wrap;
}

header nav {
width: 100%;
padding: 0 5%;
}

header .logo {
order: -1;
display: block;
margin: 3% auto 0;
}

.cta {
justify-content: center;
}

.cta .cta-text {
margin: 0;
}

.cta img {
display: none;
}

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

.main-content {
margin: 10% 3% 5%;
}

.text-content {
margin: 0 1%;
}

.contact {
margin: 0 3%;
}
}

/* Phone */
@media (max-width: 500px) {

header {
justify-content: center;
}

header nav {
width: 100%;
flex-direction: column;
margin: 0;
padding: 0;
}

header nav a {
width: 100%;
display: block;
text-align: center;
padding: 3% 0;
font-size: 2rem;
border-bottom: 1px solid gray;
}

header nav a:first-child {
border-top: 1px solid gray;
}

header nav a:hover {
background: gray;
}

header .logo {
margin: 3% 0;
}

.cta {
margin-top: 10%;
flex-flow: column;
align-items: center;
}

.cta img {
max-width: 80%;
}

.main-content .top-content {
justify-content: space-around;
flex-direction: column;
height: 300px;
}

.main-content .bottom-content {
flex-wrap: wrap;
align-content: space-between;
height: 20%;
}

.text-content {
margin: 3%;
}

.contact {
margin: 3%;
}

footer p{
font-size: 1.3rem;
padding-bottom: 2%;
}
}
76 changes: 75 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,80 @@
</head>

<body>
<!-- Use your own code or past solution here! -->

<div class="container">

<header>
<nav>
<a href="#">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="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>

<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>

<section class="contact">

<h4>Contact</h4>

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

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

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

</section>

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

</div>
</body>

</html>