Skip to content

Commit 58753bf

Browse files
feat: adds bryana express server including contact form and homepage (#596)
* feat: adds lesson_24 project files including contact form and homepage * feat: wire up contact success form --------- Co-authored-by: Vicente Vigueras <[email protected]>
1 parent 9c064c9 commit 58753bf

File tree

10 files changed

+1452
-0
lines changed

10 files changed

+1452
-0
lines changed

lesson_24/bryanasingleton/package-lock.json

Lines changed: 989 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "code-differently-25-q1",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"dev": "node server.js",
8+
"test": "jest"
9+
},
10+
"dependencies": {
11+
"ejs": "^3.1.10",
12+
"express": "^5.1.0"
13+
}
14+
}
404 KB
Loading
329 KB
Loading
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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">Contact</a></li>
20+
21+
</ul>
22+
<div class="header-cta">
23+
<a class="sign-up-button" href="#">Sign Up</a>
24+
</div>
25+
</header>
26+
<div class="main">
27+
<div class="content">
28+
<article>
29+
<section class="hero-section">
30+
<div class="hero-overlay"></div>
31+
<div class="hero-content">
32+
<h2 class="hero-title">Together we can move the needle of <em class="highlight">diversity in tech.</em></h2>
33+
<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>
34+
</div>
35+
</section>
36+
<section class="programs-section">
37+
<h2>Our <em class="highlight">Programs</em></h2>
38+
<ul class="programs">
39+
<li class="program">
40+
<h3>1000 Kids Coding</h3>
41+
<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>
42+
</li>
43+
<li class="program">
44+
<h3>Return Ready</h3>
45+
<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>
46+
</li>
47+
<li class="program">
48+
<h3>Pipeline DevShops</h3>
49+
<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>
50+
</li>
51+
<li class="program">
52+
<h3>Platform Programs</h3>
53+
<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>
54+
</li>
55+
</ul>
56+
</section>
57+
</article>
58+
</div>
59+
</div>
60+
<footer class="footer">
61+
&copy; 2024 Code Differently
62+
</footer>
63+
</body>
64+
</html>
29.2 KB
Loading
Lines changed: 297 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,297 @@
1+
/* General Reset */
2+
* {
3+
margin: 0;
4+
padding: 0;
5+
box-sizing: border-box;
6+
}
7+
8+
body {
9+
font-family: 'Poppins', sans-serif;
10+
color: #1e1e1e;
11+
background-color: #fff;
12+
line-height: 1.6;
13+
}
14+
15+
/* Header */
16+
.header {
17+
display: flex;
18+
justify-content: space-between;
19+
align-items: center;
20+
padding: 20px 40px;
21+
background-color: #ffffff;
22+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
23+
position: sticky;
24+
top: 0;
25+
z-index: 1000;
26+
}
27+
28+
.header-logo img {
29+
height: 50px;
30+
}
31+
32+
.header-top-menu {
33+
list-style: none;
34+
display: flex;
35+
gap: 30px;
36+
}
37+
38+
.header-top-menu li a {
39+
text-decoration: none;
40+
font-weight: 600;
41+
color: #1e1e1e;
42+
transition: color 0.3s ease;
43+
}
44+
45+
.header-top-menu li a:hover {
46+
color: #da4708;
47+
}
48+
49+
.header-cta .sign-up-button {
50+
padding: 10px 20px;
51+
background-color: #fe7a1b;
52+
color: #fff;
53+
border: none;
54+
border-radius: 30px;
55+
text-decoration: none;
56+
font-weight: bold;
57+
transition: background-color 0.3s ease;
58+
}
59+
60+
.header-cta .sign-up-button:hover {
61+
background-color: #f55722e6;
62+
}
63+
64+
/* Hero Section */
65+
.hero-section {
66+
position: relative;
67+
background-image: url('hero.jpg');
68+
min-height: 60vh;
69+
display: flex;
70+
/* justify-content: center; */
71+
padding-left: 0;
72+
text-align: center;
73+
color: white;
74+
background-position: center;
75+
}
76+
77+
.hero-overlay {
78+
position: absolute;
79+
top: 0;
80+
left: 0;
81+
right: 0;
82+
bottom: 0;
83+
background-color: rgba(0, 0, 0, 0.5);
84+
z-index: 1;
85+
}
86+
87+
.hero-content {
88+
position: relative;
89+
z-index: 2;
90+
padding: 20px;
91+
max-width: 800px;
92+
}
93+
94+
.hero-title {
95+
font-size: 3rem;
96+
font-weight: 800;
97+
line-height: 1.2;
98+
text-align: left;
99+
/* padding-right: 100%; */
100+
101+
}
102+
103+
104+
.hero-title .highlight {
105+
color: #ffffff;
106+
font-style: normal;
107+
}
108+
.highlight {
109+
position: relative;
110+
color: inherit;
111+
}
112+
113+
.highlight::after {
114+
content: '';
115+
position: absolute;
116+
left: 0;
117+
bottom: 0.3em;
118+
width: 100%;
119+
height: 8px;
120+
background-color: #ff6600;
121+
z-index: -1;
122+
}
123+
124+
.hero-text {
125+
126+
font-size: 1.15rem;
127+
color: #eee;
128+
background-color: #3928ac;
129+
padding: 20px 40px 40px 70px;
130+
text-align: left;
131+
}
132+
133+
/* Programs Section */
134+
.programs-section {
135+
padding: 60px 40px;
136+
text-align: left;
137+
}
138+
139+
.programs-section h2 {
140+
font-size: 2rem;
141+
margin-bottom: 40px;
142+
}
143+
144+
.programs-section .highlight {
145+
color: black;
146+
}
147+
148+
.programs {
149+
display: flex;
150+
flex-wrap: wrap;
151+
justify-content: space-around;
152+
gap: 30px;
153+
list-style: none;
154+
padding-left: 0;
155+
}
156+
157+
158+
.program {
159+
160+
padding: 80px;
161+
border-radius: 10px;
162+
max-width: 400px;
163+
}
164+
165+
.program h3 {
166+
font-size: 1.3rem;
167+
color: #333;
168+
margin-bottom: 10px;
169+
}
170+
171+
172+
/* Footer */
173+
.footer {
174+
text-align: center;
175+
padding: 20px;
176+
color: #000000;
177+
font-size: 0.9rem;
178+
}
179+
180+
body {
181+
margin: 0;
182+
font-family: 'Poppins', sans-serif;
183+
}
184+
185+
.contact-container {
186+
display: flex;
187+
height: 100vh;
188+
}
189+
190+
.form-section {
191+
flex: 1;
192+
padding: 60px;
193+
background: #f8f8f8;
194+
}
195+
196+
.contact-form {
197+
display: flex;
198+
flex-direction: column;
199+
gap: 15px;
200+
}
201+
202+
.form-row {
203+
display: flex;
204+
gap: 10px;
205+
}
206+
207+
input, select, textarea {
208+
padding: 15px;
209+
border: none;
210+
background: #eee;
211+
border-radius: 5px;
212+
font-size: 14px;
213+
width: 100%;
214+
}
215+
216+
textarea {
217+
height: 100px;
218+
resize: none;
219+
}
220+
221+
button {
222+
background: #f97316;
223+
color: white;
224+
padding: 15px;
225+
border: none;
226+
border-radius: 5px;
227+
font-weight: bold;
228+
font-size: 16px;
229+
cursor: pointer;
230+
}
231+
232+
.info-section {
233+
flex: 1;
234+
background: url('codedifferently.jpeg') center/cover no-repeat;
235+
position: relative;
236+
color: white;
237+
}
238+
239+
.overlay {
240+
background-color: rgba(0,0,50,0.6);
241+
height: 100%;
242+
padding: 60px;
243+
display: flex;
244+
flex-direction: column;
245+
justify-content: center;
246+
}
247+
248+
.social-icons {
249+
margin-top: 20px;
250+
}
251+
252+
.icons img {
253+
width: 25px;
254+
margin-right: 10px;
255+
}
256+
257+
.success-container {
258+
max-width: 600px;
259+
background: #f8f8f8;
260+
padding: 40px;
261+
border-radius: 10px;
262+
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
263+
}
264+
265+
.success-title {
266+
font-size: 2rem;
267+
margin-bottom: 20px;
268+
color: #fe7a1b;
269+
}
270+
271+
.success-message {
272+
margin-bottom: 10px;
273+
}
274+
275+
.success-details {
276+
list-style: none;
277+
padding-left: 0;
278+
margin-bottom: 20px;
279+
}
280+
281+
.success-details li {
282+
margin-bottom: 8px;
283+
}
284+
285+
.back-link {
286+
display: inline-block;
287+
padding: 10px 20px;
288+
background-color: #fe7a1b;
289+
color: white;
290+
text-decoration: none;
291+
border-radius: 5px;
292+
font-weight: bold;
293+
}
294+
295+
.back-link:hover {
296+
background-color: #f55722e6;
297+
}

0 commit comments

Comments
 (0)