Skip to content

Commit 80edf16

Browse files
committed
new files
1 parent 7d02960 commit 80edf16

File tree

4 files changed

+357
-0
lines changed

4 files changed

+357
-0
lines changed

src/components/Footer.js

Whitespace-only changes.

src/components/Navbar.js

Whitespace-only changes.

src/pages/Home.js

Lines changed: 357 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,357 @@
1+
import React from 'react';
2+
import
3+
4+
function App() {
5+
// Data for roadmaps
6+
const roadmaps = [
7+
{
8+
id: "beginner",
9+
title: "Introduction to Programming",
10+
description: "Start with the basics of coding using block-based programming. Learn fundamental concepts in a fun way.",
11+
gradeLevel: "Grades 6-7",
12+
duration: "4 weeks",
13+
topics: [
14+
{ name: "Block programming basics", completed: true },
15+
{ name: "Simple game creation", completed: true },
16+
{ name: "Basic algorithms", completed: false }
17+
]
18+
},
19+
{
20+
id: "intermediate",
21+
title: "Web Development Basics",
22+
description: "Learn how to build websites with HTML, CSS, and start exploring JavaScript fundamentals.",
23+
gradeLevel: "Grades 8-9",
24+
duration: "8 weeks",
25+
topics: [
26+
{ name: "HTML structure", completed: true },
27+
{ name: "CSS styling", completed: true },
28+
{ name: "JavaScript basics", completed: false }
29+
]
30+
},
31+
{
32+
id: "advanced",
33+
title: "Python & Data Science",
34+
description: "Master Python programming and explore data analysis, visualization and machine learning basics.",
35+
gradeLevel: "Grades 10-12",
36+
duration: "12 weeks",
37+
topics: [
38+
{ name: "Python fundamentals", completed: true },
39+
{ name: "Data analysis with pandas", completed: true },
40+
{ name: "ML introduction", completed: false }
41+
]
42+
}
43+
];
44+
45+
// Data for benefits
46+
const benefits = [
47+
{
48+
id: "problem-solving",
49+
title: "Problem-Solving Skills",
50+
description: "Coding teaches you to break down complex problems into manageable parts and develop logical thinking.",
51+
icon: "🧠"
52+
},
53+
{
54+
id: "career",
55+
title: "Career Opportunities",
56+
description: "Technology jobs are growing rapidly. Start early to build skills that will be in high demand when you graduate.",
57+
icon: "💼"
58+
},
59+
{
60+
id: "creativity",
61+
title: "Creativity & Innovation",
62+
description: "Coding allows you to create anything you can imagine, from games and apps to solutions for real-world problems.",
63+
icon: "💡"
64+
},
65+
{
66+
id: "collaboration",
67+
title: "Collaboration Skills",
68+
description: "Learn to work effectively in teams, share ideas, and build projects together—just like professional developers do.",
69+
icon: "🔗"
70+
}
71+
];
72+
73+
// Data for how it works steps
74+
const steps = [
75+
{
76+
id: 1,
77+
title: "Choose Your Path",
78+
description: "Select a learning roadmap based on your grade level and interests. Each path is designed to build skills progressively."
79+
},
80+
{
81+
id: 2,
82+
title: "Learn Through Practice",
83+
description: "Complete interactive lessons with hands-on coding exercises. Practice what you learn with real-time feedback."
84+
},
85+
{
86+
id: 3,
87+
title: "Build Projects",
88+
description: "Apply your knowledge by creating your own projects. Showcase your work and get feedback from peers."
89+
},
90+
{
91+
id: 4,
92+
title: "Track Your Progress",
93+
description: "Monitor your development with achievement badges and progress reports that show how far you've come."
94+
}
95+
];
96+
97+
// Data for testimonials
98+
const testimonials = [
99+
{
100+
id: "1",
101+
name: "Priya S.",
102+
grade: "Grade 8",
103+
location: "Delhi",
104+
stars: 5,
105+
comment: "I never thought I could build my own website at 13, but CodeRoot's step-by-step roadmap made it possible! I've even started helping my friends learn coding too."
106+
},
107+
{
108+
id: "2",
109+
name: "Arjun K.",
110+
grade: "Grade 11",
111+
location: "Mumbai",
112+
stars: 4.5,
113+
comment: "The Python & Data Science roadmap helped me create a climate analysis project that won first place at the national science fair. The skills I learned are incredible!"
114+
},
115+
{
116+
id: "3",
117+
name: "Zara M.",
118+
grade: "Grade 7",
119+
location: "Bangalore",
120+
stars: 5,
121+
comment: "I started with block programming and now I'm building games in Scratch! The way CodeRoot explains concepts makes coding fun and not intimidating at all."
122+
}
123+
];
124+
125+
return (
126+
<div className="App">
127+
{/* Navigation */}
128+
<header className="navbar">
129+
<div className="container">
130+
<div className="logo">
131+
<div className="logo-icon">&lt;/&gt;</div>
132+
<span className="logo-text">CodeRoot</span>
133+
</div>
134+
<nav className="nav-links">
135+
<a href="#" className="active">Home</a>
136+
<a href="#">About</a>
137+
<a href="#">Practice</a>
138+
<a href="#">Roadmap</a>
139+
<a href="#">Explore</a>
140+
<a href="#">Profile</a>
141+
</nav>
142+
<div className="auth-buttons">
143+
<button className="btn-link">Login</button>
144+
<button className="btn-primary">Sign Up</button>
145+
</div>
146+
<button className="mobile-menu-button">
147+
<span></span>
148+
</button>
149+
</div>
150+
</header>
151+
152+
{/* Hero Section */}
153+
<section className="hero">
154+
<div className="container">
155+
<div className="hero-content">
156+
<h1>Start Your Coding Journey Today</h1>
157+
<p>Follow our structured roadmaps designed for students from 6th to 12th grade. Learn to code at your own pace with interactive lessons.</p>
158+
<div className="hero-buttons">
159+
<button className="btn-secondary">Get Started</button>
160+
<button className="btn-outline">View Roadmaps</button>
161+
</div>
162+
</div>
163+
<div className="hero-image">
164+
<img src="https://images.unsplash.com/photo-1509062522246-3755977927d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80" alt="Students coding together" />
165+
</div>
166+
</div>
167+
</section>
168+
169+
{/* Roadmaps Section */}
170+
<section className="roadmaps">
171+
<div className="container">
172+
<div className="section-header">
173+
<h2>Coding Roadmaps</h2>
174+
<p>Follow our carefully designed learning paths tailored to your grade level and interests</p>
175+
</div>
176+
177+
<div className="roadmap-cards">
178+
{roadmaps.map(roadmap => (
179+
<div key={roadmap.id} className={`roadmap-card ${roadmap.id}`}>
180+
<div className="card-header">
181+
<span className="grade-badge">{roadmap.gradeLevel}</span>
182+
<span className="duration">{roadmap.duration}</span>
183+
</div>
184+
<h3>{roadmap.title}</h3>
185+
<p>{roadmap.description}</p>
186+
<div className="topics">
187+
{roadmap.topics.map((topic, idx) => (
188+
<div key={idx} className="topic">
189+
<div className={`check ${topic.completed ? 'completed' : ''}`}></div>
190+
<span className={!topic.completed ? 'pending' : ''}>{topic.name}</span>
191+
</div>
192+
))}
193+
</div>
194+
<button className="btn-primary full-width">Start Learning</button>
195+
</div>
196+
))}
197+
</div>
198+
199+
<div className="section-footer">
200+
<a href="#" className="link-arrow">View all roadmaps →</a>
201+
</div>
202+
</div>
203+
</section>
204+
205+
{/* Benefits Section */}
206+
<section className="benefits">
207+
<div className="container">
208+
<div className="section-header">
209+
<h2>Why Learn to Code?</h2>
210+
<p>Coding skills open doors to opportunities and develop critical thinking abilities</p>
211+
</div>
212+
213+
<div className="benefit-cards">
214+
{benefits.map(benefit => (
215+
<div key={benefit.id} className="benefit-card">
216+
<div className="benefit-icon">{benefit.icon}</div>
217+
<h3>{benefit.title}</h3>
218+
<p>{benefit.description}</p>
219+
</div>
220+
))}
221+
</div>
222+
</div>
223+
</section>
224+
225+
{/* How It Works Section */}
226+
<section className="how-it-works">
227+
<div className="container">
228+
<div className="section-header">
229+
<h2>How It Works</h2>
230+
<p>Our step-by-step approach makes learning to code simple and engaging</p>
231+
</div>
232+
233+
<div className="steps-container">
234+
<div className="steps">
235+
{steps.map(step => (
236+
<div key={step.id} className="step">
237+
<div className="step-number">{step.id}</div>
238+
<div className="step-content">
239+
<h3>{step.title}</h3>
240+
<p>{step.description}</p>
241+
</div>
242+
</div>
243+
))}
244+
</div>
245+
<div className="steps-image">
246+
<img src="https://images.unsplash.com/photo-1544256718-3bcf237f3974?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80" alt="Students working on coding projects" />
247+
</div>
248+
</div>
249+
</div>
250+
</section>
251+
252+
{/* Testimonials Section */}
253+
<section className="testimonials">
254+
<div className="container">
255+
<div className="section-header">
256+
<h2>Student Success Stories</h2>
257+
<p>Hear from students who have followed our roadmaps and achieved their coding goals</p>
258+
</div>
259+
260+
<div className="testimonial-cards">
261+
{testimonials.map(testimonial => (
262+
<div key={testimonial.id} className="testimonial-card">
263+
<div className="testimonial-header">
264+
<div className="avatar">{testimonial.name.charAt(0)}</div>
265+
<div className="testimonial-info">
266+
<h4>{testimonial.name}</h4>
267+
<p>{testimonial.grade}, {testimonial.location}</p>
268+
</div>
269+
</div>
270+
<div className="stars">
271+
{"★".repeat(Math.floor(testimonial.stars))}
272+
{testimonial.stars % 1 !== 0 && "☆"}
273+
</div>
274+
<p className="testimonial-text">{testimonial.comment}</p>
275+
</div>
276+
))}
277+
</div>
278+
</div>
279+
</section>
280+
281+
{/* CTA Section */}
282+
<section className="cta">
283+
<div className="container">
284+
<h2>Ready to Begin Your Coding Journey?</h2>
285+
<p>Join thousands of students who are building the skills of tomorrow, today.</p>
286+
<div className="cta-buttons">
287+
<button className="btn-secondary">Get Started for Free</button>
288+
<button className="btn-outline light">Explore Roadmaps</button>
289+
</div>
290+
</div>
291+
</section>
292+
293+
{/* Footer */}
294+
<footer className="footer">
295+
<div className="container">
296+
<div className="footer-sections">
297+
<div className="footer-about">
298+
<div className="logo">
299+
<div className="logo-icon light">&lt;/&gt;</div>
300+
<span className="logo-text">CodeRoot</span>
301+
</div>
302+
<p>Empowering students with coding skills for the future, one step at a time.</p>
303+
<div className="social-links">
304+
<a href="#" className="social-icon">f</a>
305+
<a href="#" className="social-icon">t</a>
306+
<a href="#" className="social-icon">in</a>
307+
<a href="#" className="social-icon">yt</a>
308+
</div>
309+
</div>
310+
311+
<div className="footer-links">
312+
<h3>Quick Links</h3>
313+
<ul>
314+
<li><a href="#">Home</a></li>
315+
<li><a href="#">About Us</a></li>
316+
<li><a href="#">Roadmaps</a></li>
317+
<li><a href="#">Practice</a></li>
318+
<li><a href="#">Explore</a></li>
319+
</ul>
320+
</div>
321+
322+
<div className="footer-links">
323+
<h3>Resources</h3>
324+
<ul>
325+
<li><a href="#">Coding Guides</a></li>
326+
<li><a href="#">Project Ideas</a></li>
327+
<li><a href="#">Student Showcase</a></li>
328+
<li><a href="#">Parent Resources</a></li>
329+
<li><a href="#">Teacher Tools</a></li>
330+
</ul>
331+
</div>
332+
333+
<div className="footer-contact">
334+
<h3>Contact Us</h3>
335+
<ul>
336+
<li><a href="mailto:info@coderoot.edu">info@coderoot.edu</a></li>
337+
<li><a href="tel:+919876543210">+91 98765 43210</a></li>
338+
<li>123 Education Lane, Tech Park, Bengaluru, India</li>
339+
</ul>
340+
</div>
341+
</div>
342+
343+
<div className="footer-bottom">
344+
<p>&copy; {new Date().getFullYear()} CodeRoot. All rights reserved.</p>
345+
<div className="footer-legal">
346+
<a href="#">Privacy Policy</a>
347+
<a href="#">Terms of Service</a>
348+
<a href="#">Cookie Policy</a>
349+
</div>
350+
</div>
351+
</div>
352+
</footer>
353+
</div>
354+
);
355+
}
356+
357+
export default App;

src/styles/Home.css

Whitespace-only changes.

0 commit comments

Comments
 (0)