Browse Source

Homepage markup and styles

master
Stephanie Gredell 1 year ago
parent
commit
499bba926f
  1. 127
      assets/css/style.css
  2. 47
      templates/index.html

127
assets/css/style.css

@ -1,8 +1,9 @@
body { body {
background: #fff; background: #F4F1EB;
color: #000; color: #000;
margin: 0; margin: 0;
padding: 0; padding: 0;
font-size: 16px;
} }
.header { .header {
@ -12,6 +13,7 @@ body {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), /* Subtle shadow */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), /* Subtle shadow */
0 6px 20px rgba(0, 0, 0, 0.1); /* Deeper shadow */ 0 6px 20px rgba(0, 0, 0, 0.1); /* Deeper shadow */
border: 1px solid rgba(0, 0, 0, 0.05); /* Light border */ border: 1px solid rgba(0, 0, 0, 0.05); /* Light border */
background: #fff;
} }
.logo { .logo {
@ -25,7 +27,7 @@ body {
font-family: "Helvetica Neue", "Helvetica", serif; font-family: "Helvetica Neue", "Helvetica", serif;
margin: 0; margin: 0;
align-self: center; align-self: center;
font-size: 20px; font-size: 1.75rem;
} }
.login-container { .login-container {
@ -33,34 +35,111 @@ body {
margin-right: 20px margin-right: 20px
} }
.twitch-login { .content {
font-size: 14px; display: flex;
padding: 5px 10px; margin: 0;
background-color: #9147ff; padding: 60px 0 40px;
flex-direction: column;
}
.difference {
margin: 0 auto 8px;
padding: 0;
font-size: 2.5rem;
font-family: "Helvetica Neue", Helvetica, serif;
color: #457B9D;
text-align: center;
}
.product-description {
margin: 0 auto;
text-align: center;
font-size: 1.25rem;
font-family: "Helvetica Neue", Helvetica, serif;
width: 50%;
line-height: 2rem;
color: #6C757D;
}
.cta-button {
display: block; /* Change to block for vertical alignment */
margin: 60px auto 0px;
padding: 10px 20px;
border-radius: 5px;
color: white; color: white;
border: none; text-decoration: none;
font-size: 1.5rem;
font-family: "Helvetica Neue", Helvetica, serif;
width: 15%;
text-align: center;
font-weight: bold;
background-color: #A3C1AD;
}
.how-it-works-button:hover {
text-decoration: underline;
}
.how-it-works-button {
display: block; /* Change to block for vertical alignment */
margin: 8px auto;
border-radius: 5px; border-radius: 5px;
cursor: pointer; color: #457B9D;
text-decoration: none;
font-size: 1.15rem;
font-family: "Helvetica Neue", Helvetica, serif;
width: 15%;
text-align: center;
} }
.banner { .how-it-works-container {
width: 100%; display: flex;
height:400px; flex-direction: row;
background-image: url("../images/banner.jpg"); justify-content: space-between;
background-repeat: no-repeat; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
background-position: center; flex-wrap: wrap;
background-size: 100%; border-top: 1px solid #ccc;
} }
a.login-banner-link:link, .become-a-supporter-container {
a.login-banner-link:visited, display: flex;
a.login-banner-link:hover, flex-direction: row;
a.login-banner-link:active { justify-content: space-between;
max-width: 1200px;
margin: 60px auto;
flex-wrap: wrap;
border-top: 1px solid #ccc;
}
.headline {
width: 100%;
text-align: center;
font-size: 2em;
color: #457b9d; /* Muted blue color */
margin-bottom: 20px;
font-family: "Helvetica Neue", Helvetica, serif; font-family: "Helvetica Neue", Helvetica, serif;
color: #1da1f2; }
text-decoration: none;
display: block; .column {
align-self: center; justify-content: space-between;
margin-right: 20px; flex: 1;
background-color: #ffffff;
padding: 20px;
margin: 10px;
border-radius: 8px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
font-family: "Helvetica Neue", Helvetica, serif;
flex-basis: 28% ;
}
.column h3 {
font-size: 1.5em;
color: #91A4B1;
margin-bottom: 10px;
text-align: center;
}
.column p {
font-size: 1.15em;
color: #495057;
line-height: 1.6;
} }

47
templates/index.html

@ -10,14 +10,55 @@
{{ .title }} {{ .title }}
</h1> </h1>
{{if eq .isLoggedIn true}} {{if eq .isLoggedIn false}}
<a href="/login" class="login-banner-link">Login</a> <a href="/login" class="login-banner-link">Login</a>
{{ else }} {{ else }}
already logged in <a href="auth/logout/twitch" class="login-banner-link">Logout</a>
{{ end }} {{ end }}
</div> </div>
<div class="content">
<h2 class="difference">Set Goals. Support Dreams. Build Community.</h2>
<p class="product-description">Our platform connects aspiring tech professionals with a supportive community eager to help them succeed.
Create a wishlist of certifications or courses you need, and let others contribute to your journey.
Together, we make tech education more accessible, one goal at a time.</p>
<a href="/login" class="cta-button">Set Your Goals</a>
<a href="#" class="how-it-works-button">How it works</a>
</div>
<div class="how-it-works-container">
<h2 class="headline">Find Support In Your Growth</h2>
<div class="column">
<h3>Create Your Wishlist</h3>
<p>Sign up and add the certifications or courses you’re aiming to complete. Let people know what you're working toward and why each goal is important for your tech journey.</p>
</div>
<div class="column">
<h3>Get Community Support</h3>
<p>Share your wishlist with your favorite communities. Your supporters can contribute to your goals, helping you fund the education and certifications you need to grow.</p>
</div>
<div class="column">
<h3>Participate in Hackathons</h3>
<p>Join community hackathons to test your skills, learn from others, and showcase your talent. Collaborate, innovate, and grow in a supportive environment.</p>
</div>
</div>
<div class="become-a-supporter-container">
<h2 class="headline">Become a supporter</h2>
<div class="column">
<h3>Sponsor a Hackathon</h3>
<p>Support community-driven hackathons by covering entry fees or providing prizes. Help aspiring tech professionals showcase their skills and network with others.</p>
</div>
<div class="column">
<h3>Donate Directly to a Goal</h3>
<p>Choose a specific certification or course goal from a tech learner’s wishlist and fund it. Every contribution brings them closer to success.</p>
</div>
<div class="column">
<h3>Support Community Leaders</h3>
<p>Boost a community content by supporting leaders and help them fund tech education for members of their community. Your support empowers streamers to give back directly.</p>
</div>
</div>
<h2 class="goals">Reach Your Goals</h2>
</body> </body>
</html> </html>
Loading…
Cancel
Save