Skip to content
87 changes: 87 additions & 0 deletions project1/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,90 @@ h1, h2, h3, h4, h5 {
letter-spacing: 1px;
margin-bottom: 10px;
}

nav ul {
display: flex;
justify-content: space-around;
align-items: center;
margin-top: 5px;
}

nav ul a {
text-decoration: none;
color: gray;
}

.logo {
float: right;
}


.cta {
display: flex;
justify-content: space-around;
align-items: center;
margin-top: 50px;
padding-bottom: 40px;
}

.shortborder {
border-bottom: 1px solid black;
width: 96%;
position: relative;
left: 2%;
}

.cta .cta-text {
font-size: 80px;
text-align: center;
}

.cta .cta-text button {
background-color: white;
width: 200px;
height: 40px;
outline: none;
border: solid black 2px;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
font-size: 15px;
}

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

.top-content .text-content {
padding: 0px 30px 15px 30px;
}

.main-content img {
display: block;
margin-left: auto;
margin-right: auto;
width: 95%;
height: 160px;
margin-bottom: 15px;
}

.bottom-content {
display: flex;
margin-top: 25px;
padding: 20px 20px 30px 20px;
}

.contact {
display: flex;
flex-direction: column;
justify-content: space-around;
align-content: left;
height: 180px;
margin-top: 30px;
padding-left: 20px;
}

footer {
display: flex;
align-content: center;
justify-content: center;
}
159 changes: 159 additions & 0 deletions project1/css/new_index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
/* 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: 10px;
}

header {
height: 200px;
}
header nav ul {
display: inline-block;
width: 85%;
margin: 20px 0px 20px 40px;
}

header nav ul li {
display: inline-block;
margin: 20px 50px 0px 50px;
}

header img {
float: right;
margin: -60px 100px 0px 30px;
width: 220px;
height: 60px;
}

header nav ul li a {
text-decoration: none;
color: gray;
}

header nav ul li a:hover {
text-decoration: none;
}

.cta {
width: 100%;
height: 400px;
border-bottom: solid black 1px;

}
.cta .cta-text {
display: inline-block;
font-size: 90px;
position: relative;
text-align: center;
top: -60px;
left: 160px;

}

.cta .cta-text button {
background-color: white;
width: 210px;
height: 40px;
border: solid black 1px;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
position: relative;
top: -40px;
}

.cta img {
float: right;
position: relative;
right: 140px;
bottom: 80px;
}

.top-content .text-content {
display: inline-block;
position: relative;
left: 20px;
top: 10px;
width: 45%;
margin-bottom: 50px;
}

.main-content img {
width: 96%;
position: relative;
left: 2%;
margin-bottom: 30px;
}

.bottom-content .text-content {
display: inline-block;
position: relative;
left: 10px;
top: 10px;
width: 30%;
margin-bottom: 25px;
padding-bottom: 25px;
border-bottom: solid black 1px;
}

footer {
text-align: center;
}

15 changes: 10 additions & 5 deletions project1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,23 @@
<li>
<a href="#">Contact</a>
</li>
<li>
<img class="logo" src="img/logo.png" alt="Great Idea! Company logo.">
</li>
</ul>
</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>

<div class="shortborder"></div>
<section class="main-content">

<div class="top-content">
Expand Down Expand Up @@ -84,7 +87,7 @@ <h4>Vision</h4>
</div>

</section>

<div class="shortborder"></div>
<section class="contact">

<h4>Contact</h4>
Expand All @@ -97,7 +100,9 @@ <h4>Contact</h4>
<p>[email protected]</p>

</section>

</br>
</br>
</br>
<footer>
<p>Copyright Great Idea! 2018</p>
</footer>
Expand Down
Loading