Skip to content

Commit 0190c2b

Browse files
authored
feat: Styled html to mirror the Code Differently site - Lesson 22 (#570)
* feat: initial commit of Lesson 22 * feat: Styled html to mirror the Code Differently site * fix: fixed issue with nav elements changing position on hover
1 parent ccba1b3 commit 0190c2b

File tree

4 files changed

+273
-0
lines changed

4 files changed

+273
-0
lines changed

lesson_22/lj-template-copy/hero.jpg

329 KB
Loading

lesson_22/lj-template-copy/index.html

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/lj-template-copy/logo.png

29.2 KB
Loading

lesson_22/lj-template-copy/style.css

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
2+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
3+
4+
body {
5+
margin: 0;
6+
}
7+
8+
/*Header Styling*/
9+
.header {
10+
position: sticky;
11+
top: 0;
12+
background-color: white;
13+
font-size: 16px;
14+
font-family: 'Poppins', sans-serif;
15+
font-weight: 600;
16+
display: flex;
17+
justify-content: space-between;
18+
align-items: center;
19+
height: 130px;
20+
padding: 0 28px;
21+
z-index: 2;
22+
box-shadow: 0 10px 10px rgba(185, 185, 185, 0.2);
23+
}
24+
25+
.header-logo img {
26+
width: 227px;
27+
height: auto;
28+
}
29+
30+
.header .header-top-menu {
31+
list-style-type: none;
32+
padding-left: 0;
33+
display: flex;
34+
justify-content: center;
35+
align-items: center;
36+
width: 62.48%;
37+
38+
}
39+
40+
.header .header-top-menu li {
41+
margin: 0 10px;
42+
width: 100%;
43+
padding-bottom: 2px;
44+
text-align: center;
45+
}
46+
47+
.header-top-menu li:hover, .header-top-menu li:active {
48+
padding-top: 2px;
49+
padding-bottom: 0;
50+
border-bottom-style: solid;
51+
border-bottom-color: #f47d26;
52+
}
53+
54+
.header .header-top-menu li a{
55+
text-decoration: none;
56+
color: #3c3c3c;
57+
}
58+
59+
.header .header-cta {
60+
61+
display: flex;
62+
justify-content: center;
63+
align-items: center;
64+
}
65+
66+
.header .header-cta .sign-up-button {
67+
text-decoration: none;
68+
text-align: center;
69+
background-color: #f47d26;
70+
color: white;
71+
border-radius: 4px;
72+
padding: 4px 20px;
73+
}
74+
/* End of Header Styling */
75+
76+
/* Hero Styling */
77+
.hero-section {
78+
background-image: url(hero.jpg);
79+
background-size: cover;
80+
background-position: center;
81+
padding-top: 142px;
82+
padding: 150px 0 190px 0;
83+
margin-top: 47px;
84+
}
85+
86+
.hero-overlay {
87+
position: absolute;
88+
top: 177;
89+
width: 100%;
90+
height: 686.625px;
91+
background-color:#0a0a0a;
92+
opacity: 0.3;
93+
94+
}
95+
96+
.hero-content {
97+
max-width: 1100px;
98+
position: relative;
99+
}
100+
101+
.hero-title {
102+
font-family: Montserrat;
103+
font-weight: 800;
104+
font-size: 54px;
105+
color: white;
106+
width: 1100px;
107+
}
108+
109+
.hero-title .highlight {
110+
padding-left: 5px;
111+
padding-right: 5px;
112+
}
113+
114+
.highlight {
115+
font-style: normal;
116+
position: relative;
117+
background: linear-gradient(to bottom, transparent 50%, #f47d26 50%);
118+
-webkit-background-clip: text;
119+
display: inline-block;
120+
z-index: 1;
121+
}
122+
123+
.highlight::before {
124+
content: '';
125+
position: absolute;
126+
left: 0;
127+
right: 0;
128+
bottom: 0;
129+
top: 50%;
130+
background: #f47d26;
131+
height: 28%;
132+
transform: translateY(58%);
133+
z-index: -1;
134+
}
135+
136+
.hero-text {
137+
background-color: #243e90;
138+
font-family: 'Poppins', sans-serif;
139+
font-size: 20px;
140+
color: white;
141+
width: 989px;
142+
height: 95px;
143+
padding: 15px 95px 15px 196px;
144+
align-content: center;
145+
line-height: 1.2;
146+
font-weight: lighter;
147+
148+
}
149+
150+
.hero-text span {
151+
font-weight: 600;
152+
color: #f47d26;
153+
}
154+
/* End of Hero Styling */
155+
156+
/* Program Styling */
157+
.programs {
158+
list-style-type: none;
159+
padding-left: 0;
160+
display: grid;
161+
grid-template-columns: 1fr 1fr;
162+
grid-template-rows: 1fr 1fr;
163+
}
164+
165+
.programs-section {
166+
padding-top: 115px;
167+
max-width: 1270px;
168+
display: flex;
169+
flex-direction: column;
170+
margin: 0 auto;
171+
}
172+
173+
.programs-section .highlight {
174+
padding-left: 3px;
175+
padding-right: 3px;
176+
}
177+
178+
.programs-section h2, .programs .program h3 {
179+
color: #444;
180+
font-family: Montserrat;
181+
}
182+
183+
.programs-section h2 {
184+
font-weight: 800;
185+
font-size: 34px;
186+
}
187+
188+
.programs .program h3 {
189+
font-size: 22px;
190+
font-weight: 700;
191+
margin-bottom: 27px;
192+
}
193+
194+
.programs .program p {
195+
font-family: 'Poppins', sans-serif;
196+
color: #676767;
197+
}
198+
199+
200+
201+
202+
.footer {
203+
border-top: 2px solid #f47d26;
204+
color: #3c3c3c;
205+
font-family: 'Poppins', sans-serif;
206+
display: flex;
207+
justify-content: center;
208+
align-items: center;
209+
padding: 45px 0 70px 0;
210+
}

0 commit comments

Comments
 (0)