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
39 changes: 20 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<title>Startrly</title>
<LINK REL=StyleSheet type="text/css" HREF="styles/index_style.css" >
</head>
<body>
<div>
Expand All @@ -23,18 +24,18 @@
</nav>


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


<section>
<blockquote>
<section class="quote_box">
<blockquote class="quote">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</blockquote>
<p>
<p class="author">
Mx. Lorem
</p>
</section>
Expand Down Expand Up @@ -68,11 +69,11 @@ <h2>Why?</h2>
</section>


<section>
<blockquote>
<section class="quote_box">
<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>
<p>
<p class="author">
Mx. Ipsum
</p>
</section>
Expand All @@ -83,28 +84,28 @@ <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>
<span class="team_name">Kari Kiwi</span>
<span class="title">CFO</span>
</li>
<li>
<img src="https://placebear.com/150/150" alt="profile for dan dragon" />
<span>Dan Dragon</span>
<span>CMO</span>
<span class="team_name">Dan Dragon</span>
<span class="title">CMO</span>
</li>
<li>
<img src="https://placebear.com/150/150" alt="profile for chris caribou" />
<span>Chris Caribou</span>
<span>CIO</span>
<span class="team_name">Chris Caribou</span>
<span class="title">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>
<span class="team_name">Charles Cheetah</span>
<span class="title">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>
<span class="team_name">Dee Dugong</span>
<span class="title">Startup Enthusiast</span>
</li>
</ul>
</section>
Expand Down Expand Up @@ -133,7 +134,7 @@ <h2>Sponsors</h2>


<section>

Choose a reason for hiding this comment

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

For each special, unique section, I think it helps a ton to add id="unique-identifier" so that in CSS it can be accessed with #unique-identifier which I think makes it easier to understand what selection each "selection, property, value group" was being operated on.

<div>
<div class="support_links">

Choose a reason for hiding this comment

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

I think classes are supposed to be kebab-case - but I think that might just be personal preference

<h3>Support</h3>
<ul>
<li>
Expand All @@ -150,7 +151,7 @@ <h3>Support</h3>
</li>
</ul>
</div>
<div>
<div class="about_links">
<h3>About</h3>
<ul>
<li>
Expand Down
187 changes: 187 additions & 0 deletions styles/index_style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
body {
background-color: white
}

body div section:first-of-type {
text-align: center;
border-bottom: thin solid black
}
body div section h1 {
font-size: 300%
}

body div section sub {
width: 100%;
display: block;
font-size: 2em;
font-weight: bold;
text-transform: capitalize
}

section a:first-of-type {
text-align: center;
text-transform: capitalize;
display: inline-block;
padding: 1.5em;
border: thin solid black;
margin: 40px 0 100px 0;
border-radius: 10px;
font-size: 1.2em;
color: black;
font-weight: thin;
text-decoration: none
}

section:first-of-type a:hover {
color: lightpink
}

body nav ul:first-of-type {
display: flex;
justify-content: space-around;
list-style-type: none;
font-weight: bold;
font-size: 1.1em;
background-color: lightgray

}

body nav ul li {
flex: 1;
list-style-type: none;
font-weight: bold;
padding: 30px;
}

body nav ul li:first-of-type {
flex: 3;
}

section.quote_box {
border-bottom: thin solid black;
padding: 2.0em;
margin: 75px 0 75px 0;
text-align: center;
font-size: 20px;
font-family: 'Open Sans Condensed', sans-serif;
font-style: italic
}

blockquote::before {
content: '"';
}

blockquote {
line-height: 2.0em
}
blockquote::after {
content: '"';
}

.author {
text-align: right;
padding-right: 50px;
margin: 50px 100px 50px 0;
font-size: 15px;
font-family: 'Open Sans Condensed', sans-serif;
font-style: italic;
}

.author::before {

Choose a reason for hiding this comment

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

I like how you added the class .author here -- I think i said something like ... last child of quote section, which isn't as clear and wouldn't have been easy to find to change if any changes were wanted. Good job!

content: "--";
}

section h2 {
text-align: center;
font-family: 'Open Sans Condensed', sans-serif;
font-style: bold;
font-size: 2.0em;
}

section ul:nth-last-of-type(1) {
display: flex;
text-align: left;
list-style-type: none
}

section ul:nth-of-type(3) li {
flex: 1;
}

section:nth-of-type(3) ul li img {
float: left;
padding-right: 6px
}

.team_name {
display: block;
}
section ul li p {
width: auto;
}


section:nth-of-type(4){
border-top:thin solid black;
border-bottom: thin solid black;
padding-top: 4em;
text-align: center
}

section:nth-of-type(5) {
padding: 40px 10px 40px 10px
}

section:nth-of-type(5) h2 {
padding: 30px 10px 30px 10px;
}

section:nth-of-type(5) ul{
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-content: center;
text-align: center;
}

Choose a reason for hiding this comment

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

your bear section is beautiful, I don't know why the second row isn't close together... I struggled with that too. Wish I could help!!! :(

section:nth-of-type(5) ul li {
width: 33%
}

section:nth-of-type(5) ul li img {
padding: 5px;
border: thin solid lightgray;
border-radius: 80px;
filter: grayscale(100%)
}

Choose a reason for hiding this comment

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

Great job on the bear border... I don't know why I didn't do this. For some reason I did something really complicated. :( Great job!!! :D

section:nth-of-type(6) ul {

Choose a reason for hiding this comment

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

The first thing I noticed about your website was how perfect the Sponsors section was! So that was the first code I wanted to investigate.

It looks like you figured it out using much less code than I did and it's super readable and makes more sense (however - I don't really understand what flex does - please teach me if we have time after!)

My only suggestion is to name the sections with classes or IDs so that it's easier to find which part of the CSS is taking care of which part of the HTML - I thought I could scan your CSS to find where the Sponsor section was to learn your magic, but found it was easier to open the dev tools and click the section to see what CSS was applied, and realized you select each section by its order.

display: flex;
flex-wrap: wrap;
align-items: center;
text-align: center;
}

section:nth-of-type(6) ul li {
flex: 1;
}

section:last-of-type {
border-top: 1px solid black;
display: flex;
font-size: 12px;
justify-content: left;
}

section:last-of-type ul {
padding: 0;
display: grid

}
div.support_links {
flex: 1;
}

div.about_links {
flex: 3;
}
Loading