Skip to content

Commit 7b5acea

Browse files
authored
feat: adds A'nanatawa's finished style.css (#584)
* Saving my progess on Lesson 22 * feat: adds finished style.css
1 parent 0448ac3 commit 7b5acea

File tree

4 files changed

+328
-0
lines changed

4 files changed

+328
-0
lines changed

lesson_22/ananatawa's folder/hero.jpg

329 KB
Loading
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<html>
2+
<head>
3+
<title>Homepage</title>
4+
<meta name="viewport" content="width=device-width, initial-scale=1" />
5+
<link rel="stylesheet" id="redux-google-fonts-salient_redux-css" href="https://fonts.googleapis.com/css?family=Poppins%3A600%2C400%7CMontserrat%3A800%2C900%2C700&amp;ver=1597678827" type="text/css" media="all">
6+
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Poppins%3A600%2C400%7CMontserrat%3A800%2C900%2C700&#038;ver=1597678827' type='text/css' media='all' />
7+
<link rel="stylesheet" type="text/css" href="style.css">
8+
</head>
9+
<body>
10+
<header class="header">
11+
<div class="header-logo">
12+
<a href="index.html">
13+
<img src="logo.png" alt="Code Differently Logo" />
14+
</a>
15+
</div>
16+
<ul class="header-top-menu">
17+
<li><a href="#">Home</a></li>
18+
<li><a href="#">About</a></li>
19+
<li><a href="#">Contact</a></li>
20+
</ul>
21+
<div class="header-cta">
22+
<a class="sign-up-button" href="#">Sign Up</a>
23+
</div>
24+
</header>
25+
<div class="main">
26+
<div class="content">
27+
<article>
28+
<section class="hero-section">
29+
<div class="hero-overlay"></div>
30+
<div class="hero-content">
31+
<h2 class="hero-title">Together we can move the needle of <em class="highlight">diversity in tech.</em></h2>
32+
<div class="hero-text"><span>Code Differently</span> provides hands on training and education through coding classes that gives participants the technical and cognitive skills they need to excel in technology-driven workplaces.</div>
33+
</div>
34+
</section>
35+
<section class="programs-section">
36+
<h2>Our <em class="highlight">Programs</em></h2>
37+
<ul class="programs">
38+
<li class="program">
39+
<h3>1000 Kids Coding</h3>
40+
<p>The Code Differently 1000 Kids Coding program was created to expose New Castle County students to computing and programming. The 1000 Kids Coding courses are designed for all experience levels, no experience required.</p>
41+
</li>
42+
<li class="program">
43+
<h3>Return Ready</h3>
44+
<p>The Code Differently Workforce Training Initiatives were created to help individuals underrepresented in tech reinvent their skills to align with the changing workforce market. If you are ready to start your tech journey, join our talent community today.</p>
45+
</li>
46+
<li class="program">
47+
<h3>Pipeline DevShops</h3>
48+
<p>Pipeline DevShop is a youth work-based learning program. Youth participants experience working in a real software development environment while sharpening their technology and soft skills.</p>
49+
</li>
50+
<li class="program">
51+
<h3>Platform Programs</h3>
52+
<p>Platform programs are designed for high school graduates, college students, career changers, or professionals looking to develop the technology job readiness skills for today’s workforce.</p>
53+
</li>
54+
</ul>
55+
</section>
56+
</article>
57+
</div>
58+
</div>
59+
<footer class="footer">
60+
&copy; 2024 Code Differently
61+
</footer>
62+
</body>
63+
</html>

lesson_22/ananatawa's folder/logo.png

29.2 KB
Loading
Lines changed: 265 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;600;700;800&display=swap');
2+
3+
/* Basic Reset */
4+
* {
5+
margin: 0;
6+
padding: 0;
7+
box-sizing: border-box;
8+
}
9+
10+
html, body {
11+
margin: 0;
12+
padding: 0;
13+
overflow-x: hidden; /* Prevents horizontal scroll */
14+
width: 100vw; /* Ensures full-viewport fit */
15+
}
16+
17+
body {
18+
font-family: 'Poppins', 'Montserrat', sans-serif;
19+
line-height: 1.6;
20+
background-color: #ffffff;
21+
color: #333;
22+
}
23+
24+
25+
.header {
26+
position: fixed;
27+
top: 0;
28+
left: 0;
29+
width: 100vw;
30+
background-color: #ffffff;
31+
display: flex;
32+
justify-content: space-between;
33+
align-items: center;
34+
padding: 40px 60px;
35+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
36+
z-index: 1000;
37+
transition: padding 0.3s ease, box-shadow 0.3s ease;
38+
box-sizing: border-box;
39+
}
40+
41+
.header.shrunk {
42+
padding: 15px 60px;
43+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
44+
}
45+
46+
.header-logo img {
47+
height: 75px;
48+
}
49+
50+
.header-top-menu {
51+
list-style: none;
52+
display: flex;
53+
gap: 20px;
54+
}
55+
56+
.header-top-menu li a {
57+
text-decoration: none;
58+
color: #333;
59+
font-weight: 600;
60+
transition: color 0.3s ease;
61+
}
62+
63+
.header-top-menu li a {
64+
position: relative;
65+
text-decoration: none;
66+
color: #333;
67+
font-weight: 600;
68+
padding: 5px 0;
69+
transition: color 0.3s ease;
70+
}
71+
72+
.header-top-menu li a::after {
73+
content: '';
74+
position: absolute;
75+
left: 0;
76+
bottom: 0;
77+
width: 0%;
78+
height: 2px;
79+
background-color: orange;
80+
transition: width 0.3s ease;
81+
}
82+
83+
/* Normal hover effect */
84+
.header-top-menu li a:hover::after {
85+
width: 100%;
86+
}
87+
88+
/* New: Always underline the FIRST link (Home) */
89+
.header-top-menu li:first-child a::after {
90+
width: 100%;
91+
}
92+
93+
.header-cta .sign-up-button {
94+
background-color: #f37f0b;
95+
color: #fff;
96+
padding: 10px 20px;
97+
text-decoration: none;
98+
border-radius: 5px;
99+
.btn-contact {
100+
font-family: 'Poppins', sans-serif; /* use Poppins, which you’ve already imported */
101+
font-weight: 700; /* boldest available weight you have */
102+
font-size: 1.1rem;
103+
text-transform: uppercase;
104+
font-weight: bold;
105+
letter-spacing: 0.05em;
106+
}
107+
transition: background-color 0.3s ease;
108+
}
109+
110+
.header-cta .sign-up-button:hover {
111+
background-color: #0056b3;
112+
}
113+
114+
.main {
115+
padding-top: 120px; /* So the hero and rest of page starts AFTER header */
116+
padding-left: 0px;
117+
padding-right: 0px;
118+
}
119+
120+
121+
122+
.hero-section {
123+
position: relative;
124+
background-image: url("hero.jpg");
125+
background-size: cover;
126+
background-position: center center;
127+
background-repeat: no-repeat;
128+
height: 100vh;
129+
width: 100vw;
130+
overflow: hidden;
131+
filter: brightness(1.5);
132+
padding-top: 125px; /* <-- NEW, creates white space under the header */
133+
box-sizing: border-box;
134+
}
135+
136+
137+
.hero-overlay {
138+
position: absolute;
139+
top: 0;
140+
right: 0;
141+
bottom: 0;
142+
left: 0;
143+
background-color: rgba(0, 0, 0, 0.5);
144+
}
145+
146+
.hero-content {
147+
position: relative;
148+
z-index: 2;
149+
max-width: 800px;
150+
151+
}
152+
153+
.hero-title {
154+
font-family: 'Montserrat', sans-serif;
155+
font-weight: 800;
156+
font-size: 52px;
157+
line-height: 1.2;
158+
color: #ffffff;
159+
text-align: left;
160+
max-width: 800px; /* keeps the line breaks like the real site */
161+
margin: -80px 0 0 -60px;
162+
letter-spacing: 0.5px;
163+
}
164+
165+
.highlight {
166+
color: #ddff00; /* Gold Highlight */
167+
font-style: normal; /* removes italic */
168+
font-weight: 800;
169+
font-family: inherit;
170+
}
171+
172+
173+
174+
.hero-text {
175+
background-color: #1A2C6B; /* deep blue background */
176+
padding: 40px;
177+
color: #ffffff;
178+
font-size: 1.25rem;
179+
font-family: 'Poppins', sans-serif;
180+
font-weight: 300;
181+
border-radius: 4px;
182+
max-width: 920px;
183+
margin-top: 30px;
184+
line-height: 1.25;
185+
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
186+
margin-left: -60px;
187+
}
188+
189+
.hero-text span {
190+
color: #F26E21;
191+
font-weight: 550;
192+
}
193+
194+
.programs-section {
195+
margin-top: 100px;
196+
padding-left: 60px;
197+
padding-right: 60px;
198+
}
199+
200+
.programs-section h2 {
201+
font-family: 'Montserrat', sans-serif;
202+
font-weight: 800;
203+
font-size: 2rem;
204+
margin-bottom: 30px;
205+
text-align: left;
206+
margin-left: 0; /* Remove left push */
207+
padding-left: 0;
208+
}
209+
210+
211+
.programs {
212+
display: grid;
213+
grid-template-columns: repeat(2, 1fr); /* Always 2 columns */
214+
gap: 60px 40px; /* vertical gap, then horizontal gap */
215+
padding: 0;
216+
margin-top: 40px;
217+
text-align: left;
218+
}
219+
220+
.program {
221+
background: none;
222+
padding: 0;
223+
box-shadow: none;
224+
border-radius: 0;
225+
226+
}
227+
228+
.program h3 {
229+
font-family: 'Montserrat', sans-serif;
230+
font-size: 24px;
231+
font-weight: 700;
232+
color: #333;
233+
margin-bottom: 10px;
234+
}
235+
236+
.program p {
237+
font-family: 'Poppins', sans-serif;
238+
font-weight: 300;
239+
font-size: 1.125rem;
240+
color: #555;
241+
line-height: 1.5;
242+
margin-bottom: 0;
243+
}
244+
.footer {
245+
background-color: #222;
246+
color: #fff;
247+
text-align: center;
248+
padding: 20px;
249+
margin-top: 40px;
250+
}
251+
252+
.highlight {
253+
color: inherit;
254+
background-image: linear-gradient(to bottom, transparent 80%, #F26E21 80%);
255+
background-repeat: no-repeat;
256+
background-size: 100% 100%;
257+
}
258+
259+
.hero-content {
260+
position: relative;
261+
z-index: 2;
262+
max-width: 800px;
263+
margin-left: 60px;
264+
margin-top: 100px; /* vertically aligns the hero-title */
265+
}

0 commit comments

Comments
 (0)