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
243 changes: 240 additions & 3 deletions great-idea/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
Expand Down Expand Up @@ -49,7 +48,11 @@ table {

/* Set every element's box-sizing to border-box */
* {
box-sizing: border-box;
box-sizing:border-box;
padding:0;
margin:0;
max-width:100%; /*this is saying you can never be bigger than your parent*/
/* border:1px solid grey; */
}

html, body {
Expand All @@ -63,4 +66,238 @@ h1, h2, h3, h4, h5 {
margin-bottom: 15px;
}

/* Copy and paste your work from yesterday here and start to refactor into flexbox */
/* Copy and paste your work from yesterday here and start to refactor into flexbox */
.container{
width: 900px;
margin: auto;
}

nav.navigation{
display: flex;
justify-content: space-around;
align-items: flex-end;
margin: 3% 0;

}
a{
text-decoration: none;
}

.first-title-section{
display: flex;
justify-content: space-evenly;
margin: 10% 0;
}
.main-title{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.header-image-section{
display: flex;
justify-content: center;
align-items: center;
}
h1{
font-size: 80px;
text-align: center;
}


.first-section{
display: flex;
justify-content: space-evenly;
margin-top: 50px;
margin-bottom: 50px;
}
.second-section{
display: flex;
justify-content: space-around;
margin-top: 50px;
margin-bottom: 50px;
margin-right: 30px;
line-height: 1.2;
}

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

/* down below will services page */

.services{
margin: 5% 0;
}

h2 {
font-size:4rem;
}

.blocks{
display: flex;
flex-wrap: wrap;
width: 100%;
justify-content: space-between;
margin: 0 auto;
}

.box{
background-color: lightgray;
width:44%;
padding: 2% 1.5%;
margin: 2.5% 1%;
border:.01rem solid black;
}

button{
font-size: 1rem;
width: 45%;
height: 17%;
margin: 5% 0;
border-radius: 0.5rem;
border:1px solid black;
}
h3{
font-size: 1.2rem;
}
li {
line-height: 2rem;
font-size: 1rem;
}
.last-section{
display: flex;
flex-wrap: wrap;
width:100%
justify-content: space-between;
margin: 0 auto;
}
.about{
width:46%;
padding: 5% 0;
margin: 0 auto;
margin-left: 0%
}
.services-info-img{
margin: 3% 0;
}
/* media query */
@media only screen and (max-width: 600px) {
.container{
width: 400px;
margin: auto;
}

.services{
margin: 5% 0;
}

h2 {
font-size:4rem;
}

.blocks{
display: flex;
flex-wrap: wrap;
width: 100%;
justify-content: space-between;
margin: 0 auto;
}

.box{
background-color: lightgray;
width:100%;
padding: 2% 1.5%;
margin: 2.5% 1%;
border:.01rem solid black;
}

button{
font-size: 1rem;
width: 45%;
height: 17%;
margin: 5% 0;
border-radius: 0.5rem;
border:1px solid black;
}
h3{
font-size: 1.2rem;
}
li {
line-height: 2rem;
font-size: 1rem;
}
.last-section{
display: flex;
flex-wrap: wrap;
width:100%
justify-content: space-between;
margin: 0 auto;
}
.about{
width:90%;
padding: 5% 0;
margin: 0 auto;
margin-left: 0%
}
.services-info-img{
margin: 3% 0;
}

nav.navigation{
display: flex;
justify-content: space-around;
align-items: flex-end;
margin: 3% 0;

}
a{
text-decoration: none;
}

.first-title-section{
display: block;
margin: 10% 0;
width: 100%
}
.main-title{
display: block;
align-items: center;
flex-direction: column;
width: 100%;
}
.header-image-section{
display: block;
align-items: center;
width:100%;
}
h1{
font-size: 80px;
text-align: center;
}

#button1{
margin-left: 30%;
}
.paragraph{
margin: 3%;
}
.first-section{
display: block;
margin-top: 50px;
margin-bottom: 50px;
}
.second-section{
display: block;
margin-top: 50px;
margin-bottom: 50px;
margin-right: 30px;
line-height: 1.2;
}

footer{
text-align:center;
margin: 10% 0;
}
}
86 changes: 85 additions & 1 deletion great-idea/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,91 @@

<body>

<!-- Copy and paste your HTML from the first UI project here -->
<div class="container">
<header>
<nav class="navigation">
<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>
<img class="logo" src="img/logo.png" alt="Great Idea! Company logo.">
</nav>
</header>

<div class="first-title-section">
<div class="main-title">
<h1>Innovation</br>
On</br>
Demand
</h1>
<button id="button1">Get Started</button>
</div>
<div class='header-image-section' >
<img class='picture' src="img/header-img.png" alt="Image of a code snippet.">
</div>
</div>

<hr>

<section class="first-section">
<div class ="paragraph">
<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 ="paragraph">
<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>

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

<section class="second-section">
<div class ="paragraph">
<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="paragraph">
<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="paragraph">
<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>
<br>
<section class="where-to">
<h3 class ="contact">Contact</h3>
<address>
123 Way 456 Street</br>
Somewhere, USA</address>

</br>
<p>1 (888) 888-8888</p>
</br>
<p>[email protected]</p>

</p>
</section>

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


</body>
Expand Down
Loading