Skip to content

Commit 35f65c1

Browse files
feat: Adds Shawn-lesson22 Implementing CSS (#568)
* Adds shawn dunsmore lesson 22 working on navbar * Adds Shawn-lesson22 Implmented CSS * chore: restores style.css Signed-off-by: Anthony D. Mays <[email protected]> --------- Signed-off-by: Anthony D. Mays <[email protected]> Co-authored-by: Anthony D. Mays <[email protected]>
1 parent f3c30cd commit 35f65c1

File tree

4 files changed

+200
-0
lines changed

4 files changed

+200
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

lesson_22/shawndunsmore/style.css

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
2+
body {
3+
font-family: 'Poppins', sans-serif;
4+
}
5+
6+
.header {
7+
display: flex;
8+
justify-content: space-between;
9+
align-items: center;
10+
padding: 20px;
11+
background-color: #ffffff;
12+
color: rgb(0, 0, 0);
13+
}
14+
15+
16+
.header-logo img {
17+
height: 50px;
18+
width: 151.087px;
19+
}
20+
21+
22+
.header-top-menu {
23+
list-style: none;
24+
display: flex;
25+
gap: 20px;
26+
}
27+
28+
29+
.header-top-menu li a {
30+
color: rgb(0, 0, 0);
31+
text-decoration: none;
32+
font-weight: 600;
33+
font-size: 16px;
34+
transition: color 0.3s ease;
35+
}
36+
37+
.header-top-menu li a:hover {
38+
color:orange;
39+
}
40+
41+
42+
.header-cta .sign-up-button {
43+
-webkit-text-fill-color: rgb(255, 255, 255);
44+
padding: 10px 20px;
45+
background-color: orange;
46+
color: #000000;
47+
text-decoration: none;
48+
font-weight: bold;
49+
border-radius: 5px;
50+
transition: background-color 0.3s ease;
51+
}
52+
53+
.header-cta .sign-up-button:hover {
54+
background-color: orange;
55+
}
56+
57+
.hero-overlay{
58+
position: absolute;
59+
top: 0;
60+
left: 0;
61+
right: 0;
62+
bottom: 0;
63+
z-index: 1;
64+
}
65+
.hero-section {
66+
background-attachment: fixed;
67+
background-image: url(hero.jpg);
68+
background-size: cover;
69+
background-position: center;
70+
padding: 20px 0;
71+
position: relative;
72+
color: #fff;
73+
align-items: flex-start;
74+
height: 77vh;
75+
}
76+
.hero-content {
77+
position: relative;
78+
z-index: 2;
79+
max-width: 800px;
80+
margin: 0;
81+
padding: 20px;
82+
text-align: left;
83+
}
84+
85+
.hero-title{
86+
87+
font-family: 'Montserrat', sans-serif;
88+
font-size: 2.5rem;
89+
font-weight: 800;
90+
line-height: 1.2;
91+
color: white;
92+
margin-bottom: 20px;
93+
text-align: left;
94+
margin-left: -20;
95+
96+
97+
}
98+
99+
.hero-title em.highlight {
100+
font-family: inherit;
101+
font-weight: 900;
102+
font-size: 2.5rem;
103+
color: #fff;
104+
position: relative;
105+
display: inline-block;
106+
}
107+
108+
.hero-title em.highlight::after {
109+
content: "";
110+
position: absolute;
111+
left: 0;
112+
bottom: 5px;
113+
width: 100%;
114+
height: 10px;
115+
background-color: #ff7f32;
116+
z-index: -1;
117+
}
118+
119+
.hero-text {
120+
font-size: 1.2rem;
121+
font-weight: 400;
122+
color: #fff;
123+
background-color: #243e90;
124+
padding: 20px;
125+
line-height: 1.5;
126+
margin-left: -20;
127+
}
128+
129+
.hero-text span {
130+
font-weight: 600;
131+
color: #ff7f32;
132+
}
133+
134+
* {
135+
margin: 0;
136+
padding: 0;
137+
box-sizing: border-box;
138+
}
139+
140+
141+
/* Programs Section */
142+
.programs-section {
143+
max-width: 2000px;
144+
margin: 10 auto;
145+
padding: 70px 40px;
146+
background-color: #fff;
147+
border-radius: 8px;
148+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
149+
}
150+
151+
/* Title Styling */
152+
.programs-section h2 {
153+
font-size: 2.5rem;
154+
font-weight: 700;
155+
margin-bottom: 30px;
156+
text-align: center;
157+
color: #243e90;
158+
}
159+
160+
.programs-section h2 .highlight {
161+
font-style: normal;
162+
color: #ff7f32;
163+
}
164+
165+
.programs {
166+
display: grid;
167+
grid-template-columns: 1fr 1fr 1fr 1fr;
168+
gap: 20px;
169+
list-style: none;
170+
}
171+
172+
.program {
173+
background-color: #f9f9f9;
174+
border-radius: 25px;
175+
padding: 20px;
176+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
177+
transition: transform 0.3s ease, box-shadow 0.3s ease;
178+
}
179+
180+
.program h3 {
181+
font-size: 1.5rem;
182+
font-weight: 600;
183+
color: #243e90;
184+
margin-bottom: 15px;
185+
text-transform: uppercase;
186+
letter-spacing: 0.5px;
187+
}
188+
189+
.program p {
190+
font-size: 1rem;
191+
color: #555;
192+
line-height: 1.5;
193+
margin-bottom: 15px;
194+
}
195+
196+
.program:hover {
197+
transform: translateY(-10px);
198+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
199+
}
200+

0 commit comments

Comments
 (0)