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
149 changes: 149 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you consider using grid for the overall structure?

h1, h2, h3 {
font-family: 'Oleo Script', cursive;
}
body {
font-family: 'Open Sans', sans-serif;
}
nav ul {
margin: 0;
padding: 1.5em 0;
}
nav, footer {
background-color: #015249;
color: beige;
}
footer {
padding-bottom: 2em
}
.team-members {
background-color: #77C9D4;
}
section {
padding: 4em 2em;
}

h2 {
font-size: 2em;
text-align: center;
}
.tagline {
background: #57BC90;
display: grid;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of grid on the tagline section!

align-items: center;
grid-template-rows: 35% 1fr 1fr ;
font-size: 1.6em
}
.tagline * {
justify-self: center;
}
.tagline h1 {
font-size: 2em;
grid-row: 1;
}

.tagline sub {
grid-row: 2;
}
.tagline a {
font-size: .8em;
text-decoration: none;
grid-row: 3;
display: block;
border-radius: 15px;
border: 2px solid;
padding: 8px;
border-color: darkslategray
}

.quote {
display: grid;
align-items: center;
background-color: #77C9D4;
background-color: beige;
}

blockquote {
font-style: italic
}

.quote p {
text-align: right
}

.flexbox {
display: flex;
flex-direction: row;
align-content: space-around;
}

.flexbox li {
flex: 1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is something I hadn't seen before. Thanks for the learning moment. :-)

list-style-type: none;
}
.why .flexbox li > * {
padding: .5em
}

.why .flexbox img {
float: left;
}

.sponsers .flexbox, .team-members .flexbox {
justify-content: space-around;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sponsors are almost touching on my browser. Was this a design choice or a browser rendering? It could be nice to give these elements a little margin. (or not)

flex-wrap: wrap;
justify-content: center;
}

.sponsers .flexbox li, .team-members .flexbox li {
align-items: center;
display: flex;
justify-content: center;
}


.sponsers .flexbox img {
margin: .3em
}

.team-members .flexbox li {
margin: 0 2em;
flex-direction: column;
}

.team-members .flexbox li img {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you did a great job of naming everything! It made it very easy to read your code.

border-radius: 50%;
}

nav ul, footer {
display: grid;
grid-template-columns: 10% 10% 20% 20% 10% 10% 10% 10%;
}

nav li:first-child {
grid-column-start: 2;
}

nav li:nth-child(2) {
grid-column-start: 5;
}

nav li:last-child {
grid-column-start: 7;
}

footer div:first-child {
grid-column-start: 2;
}
footer div:last-child {
grid-column-start: 4;
}

footer ul {
padding-left: 0pt;
}

li {
list-style-type: none;
}

152 changes: 85 additions & 67 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
<head>
<meta charset="utf-8">
<title>Startrly</title>
<link rel="stylesheet" href="normalize.css">
<link rel="stylesheet" href="index.css">
<link href="https://fonts.googleapis.com/css?family=Oleo+Script|Open+Sans" rel="stylesheet">
</head>
<body>
<div>
<main class="main-container">


<nav>
Expand All @@ -23,14 +26,16 @@
</nav>


<section>


<section class="tagline">
<h1>Startrly</h1>
<sub>A catchy tagline for a great solution</sub>
<a href="#">Some Call to Action</a>
</section>


<section>
<section class="quote">
<blockquote>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</blockquote>
Expand All @@ -40,35 +45,41 @@ <h1>Startrly</h1>
</section>


<section>
<section class="why">
<h2>Why?</h2>
<ul>
<ul class="flexbox">
<li>
<img src="http://via.placeholder.com/100x100" />
<strong>Comfortable</strong>
<p>
Et quas molestias excepturi sint occaecati cupiditate non providents, ut aut reiciendis voluptatibus maiores.
</p>
<article>
<strong>Comfortable</strong>
<p>
Et quas molestias excepturi sint occaecati cupiditate non providents, ut aut reiciendis voluptatibus maiores.
</p>
</article>
</li>
<li>
<img src="http://via.placeholder.com/100x100" />
<strong>Robust</strong>
<p>
At vero eos et accusamus et iusto odio dignissimos ducimus qui. Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam.
</p>
<article>
<strong>Robust</strong>
<p>
At vero eos et accusamus et iusto odio dignissimos ducimus qui. Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam.
</p>
</article>
</li>
<li>
<img src="http://via.placeholder.com/100x100" />
<strong>Convenient</strong>
<p>
Itaque earum rerum hic tenetur a sapiente delectus.
</p>
<article>
<strong>Convenient</strong>
<p>
Itaque earum rerum hic tenetur a sapiente delectus.
</p>
</article>
</li>
</ul>
</section>


<section>
<section class="quote">
<blockquote>
Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.
</blockquote>
Expand All @@ -78,61 +89,68 @@ <h2>Why?</h2>
</section>


<section>
<section class="team-members">
<h2>Meet the team</h2>
<ul>
<li>
<img src="https://placebear.com/150/150" alt="profile for kari kiwi" />
<span>Kari Kiwi</span>
<span>CFO</span>
</li>
<li>
<img src="https://placebear.com/150/150" alt="profile for dan dragon" />
<span>Dan Dragon</span>
<span>CMO</span>
</li>
<li>
<img src="https://placebear.com/150/150" alt="profile for chris caribou" />
<span>Chris Caribou</span>
<span>CIO</span>
</li>
<li>
<img src="https://placebear.com/150/150" alt="profile for charles cheetah" />
<span>Charles Cheetah</span>
<span>Board Member, CTO</span>
</li>
<li>
<img src="https://placebear.com/150/150" alt="profile for dee dugong" />
<span>Dee Dugong</span>
<span>Startup Enthusiast</span>
</li>
</ul>

<!-- <section class="flexbox"> -->
<ul class="flexbox">
<li>
<img src="https://placebear.com/150/150" alt="profile for kari kiwi" />
<span>Kari Kiwi</span>
<span>CFO</span>
</li>
<li>
<img src="https://placebear.com/150/150" alt="profile for dan dragon" />
<span>Dan Dragon</span>
<span>CMO</span>
</li>
<li>
<img src="https://placebear.com/150/150" alt="profile for chris caribou" />
<span>Chris Caribou</span>
<span>CIO</span>
</li>
<li>
<img src="https://placebear.com/150/150" alt="profile for charles cheetah" />
<span>Charles Cheetah</span>
<span>Board Member, CTO</span>
</li>
<li>
<img src="https://placebear.com/150/150" alt="profile for dee dugong" />
<span>Dee Dugong</span>
<span>Startup Enthusiast</span>
</li>
</ul>
<!-- </section> -->
</section>


<section>
<section class="sponsers">
<h2>Sponsors</h2>
<ul>
<li>
<img src="http://via.placeholder.com/300x100" />
</li>
<li>
<img src="http://via.placeholder.com/250x125" />
</li>
<li>
<img src="http://via.placeholder.com/275x70" />
</li>
<li>
<img src="http://via.placeholder.com/250x120" />
</li>
<li>
<img src="http://via.placeholder.com/220x100" />
</li>
</ul>

<!-- <section class="flexbox"> -->
<ul class="flexbox">
<li>
<img src="http://via.placeholder.com/300x100" />
</li>
<li>
<img src="http://via.placeholder.com/250x125" />
</li>
<li>
<img src="http://via.placeholder.com/275x70" />
</li>
<li>
<img src="http://via.placeholder.com/250x120" />
</li>
<li>
<img src="http://via.placeholder.com/220x100" />
</li>
</ul>
<!-- </section> -->
</section>


<section>

<footer>
<div>
<h3>Support</h3>
<ul>
Expand Down Expand Up @@ -164,8 +182,8 @@ <h3>About</h3>
</li>
</ul>
</div>
</section>
</footer>

</div>
</main>
</body>
</html>
Loading