-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgpt.html
More file actions
365 lines (345 loc) · 10.3 KB
/
Copy pathgpt.html
File metadata and controls
365 lines (345 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<!-- Place this FULL HTML in your file -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Code Web - Learn to Code</title>
<style>
:root {
--primary-color: #2b2d42;
--dark-bg: #1a1b1e;
--light-bg: #f8f9fa;
--text-light: #f1f3f5;
--text-dark: #212529;
--accent: #3a86ff;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
transition: background 0.4s, color 0.4s;
}
body.light-mode {
background-color: var(--light-bg);
color: var(--text-dark);
}
body.dark-mode {
background-color: var(--dark-bg);
color: var(--text-light);
}
header {
background: var(--primary-color);
padding: 20px 0;
text-align: center;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header h1 {
color: white;
margin: 0;
font-size: 2.5rem;
}
nav ul {
list-style: none;
display: flex;
justify-content: center;
gap: 25px;
flex-wrap: wrap;
margin: 10px 0 0;
padding: 0;
}
nav ul li a, nav ul li button {
color: #f8f9fa;
text-decoration: none;
background: transparent;
border: none;
font-size: 1.1rem;
cursor: pointer;
font-weight: 500;
}
nav ul li a:hover, nav ul li button:hover {
text-decoration: underline;
}
section {
display: none;
padding: 60px 20px;
max-width: 1200px;
margin: 0 auto;
line-height: 1.7;
}
section.active {
display: block;
}
.btn {
background: var(--accent);
color: white;
padding: 12px 25px;
border-radius: 5px;
text-decoration: none;
display: inline-block;
font-weight: 500;
transition: background 0.3s;
}
.btn:hover {
background: #265dbe;
}
/* Hero Section Styling */
#hero .content-flex {
display: flex;
flex-wrap: wrap;
gap: 40px;
align-items: center;
justify-content: center;
padding: 20px 0;
}
.video-container, .text-container {
flex: 1;
min-width: 300px;
max-width: 600px;
}
.video-container video {
width: 100%;
height: auto;
border-radius: 10px;
}
.text-container h2 {
font-size: 2rem;
margin-bottom: 10px;
}
.text-container p {
font-size: 1.2rem;
margin-bottom: 20px;
}
/* Image Slider */
.slider-center {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 40px;
}
#hero-slides img {
width: 55rem;
max-width: 100%;
height: auto;
border-radius: 10px;
display: none;
}
#hero-slides img.active {
display: block;
}
.slider-buttons {
margin-top: 10px;
display: flex;
gap: 15px;
}
.slider-buttons button {
padding: 10px 20px;
font-size: 1rem;
border: none;
border-radius: 5px;
background: var(--accent);
color: white;
cursor: pointer;
}
.slider-buttons button:hover {
background: #265dbe;
}
/* Responsive Design */
@media (max-width: 768px) {
#hero .content-flex {
flex-direction: column;
}
}
/* Additional Styling */
.course-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.course-card {
border: 1px solid #ccc;
border-radius: 10px;
padding: 25px;
background: white;
color: black;
transition: transform 0.3s, box-shadow 0.3s;
}
.course-card:hover {
transform: translateY(-6px);
box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.course-card img {
border-radius: 8px;
margin-bottom: 15px;
}
.course-card h3 {
margin-top: 0;
}
footer {
text-align: center;
padding: 25px;
background-color: #1a1a1a;
color: white;
font-size: 0.95rem;
}
#theme-toggle {
background-color: #ffc107;
border-radius: 50px;
padding: 8px 18px;
font-size: 1.2rem;
}
.form-section {
max-width: 500px;
margin: 0 auto;
padding: 50px;
background: white;
color: black;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.form-section h2 {
text-align: center;
margin-bottom: 30px;
}
form input, form button {
width: 100%;
padding: 14px;
margin: 12px 0;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 5px;
}
form input:focus {
border-color: var(--accent);
outline: none;
}
button[type="submit"] {
background-color: var(--accent);
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button[type="submit"]:hover {
background-color: #265dbe;
}
.content-flex{
display: flex;
flex-direction: row;
gap: 6rem;
}
</style>
</head>
<body class="light-mode">
<header>
<div>
<h1>Code Web</h1>
<nav>
<ul>
<li><a href="#" onclick="showSection('home')">Home</a></li>
<li><a href="#" onclick="showSection('courses')">Courses</a></li>
<li><a href="#" onclick="showSection('about')">About</a></li>
<li><a href="#" onclick="showSection('register')">Register</a></li>
<li><button id="theme-toggle">🌓</button></li>
</ul>
</nav>
</div>
</header>
<main>
<section id="home" class="active">
<div id="hero" class="content-flex">
<div class="video-container">
<video src="1223.mp4" controls></video>
</div>
<div class="text-container">
<h2>Master Coding with Code Web</h2>
<p>Step into the world of development with our expertly crafted courses and mentorship programs. Whether you're a beginner or advancing your career, our platform is designed to support your learning journey.</p>
<a href="#" onclick="showSection('register')" class="btn">Join Now</a>
</div>
</div>
<div id="hero-slides" class="slider-center">
<img src="code4.jpeg" class="active" alt="Slide 1">
<img src="code3.jpeg" alt="Slide 2">
<img src="code2.jpeg" alt="Slide 3">
<div class="slider-buttons">
<button onclick="changeSlide(-1)">Previous</button>
<button onclick="changeSlide(1)">Next</button>
</div>
</div>
</section>
<section id="courses">
<h2>Popular Courses</h2>
<div class="course-grid">
<div class="course-card">
<img src="download (10).jpeg" alt="HTML course" width="100%">
<h3>HTML for Beginners</h3>
<p>Build your first web pages and gain fundamental web skills. This course will teach you structure, elements, and layout of HTML5.</p>
<a href="#" class="btn">Enroll</a>
</div>
<div class="course-card">
<img src="download (10).jpeg" alt="CSS course" width="100%">
<h3>CSS Essentials</h3>
<p>Learn how to style websites beautifully with modern CSS, including Flexbox, Grid, and responsive design techniques.</p>
<a href="#" class="btn">Enroll</a>
</div>
<div class="course-card">
<img src="download (10).jpeg" alt="JavaScript course" width="100%">
<h3>JavaScript Basics</h3>
<p>Start programming for the web with JavaScript, mastering functions, events, DOM manipulation and more.</p>
<a href="#" class="btn">Enroll</a>
</div>
</div>
</section>
<section id="about">
<h2>About Us</h2>
<p>Code Web is your one-stop platform to gain full-stack development skills. We are committed to democratizing tech education by providing free and premium courses designed by industry experts. Our community of developers helps each other grow through mentorship and real-world projects.</p>
</section>
<section id="register">
<div class="form-section">
<h2>Create an Account</h2>
<form onsubmit="event.preventDefault(); alert('Registered successfully!');">
<input type="text" placeholder="Full Name" required />
<input type="email" placeholder="Email Address" required />
<input type="password" placeholder="Password" required />
<input type="password" placeholder="Confirm Password" required />
<button type="submit">Register</button>
</form>
</div>
</section>
</main>
<footer>© 2025 Code Web. All rights reserved.</footer>
<script>
const themeToggle = document.getElementById('theme-toggle');
const body = document.body;
const savedTheme = localStorage.getItem('theme');
if (savedTheme) body.classList.add(savedTheme);
else body.classList.add('light-mode');
themeToggle.addEventListener('click', () => {
if (body.classList.contains('light-mode')) {
body.classList.replace('light-mode', 'dark-mode');
localStorage.setItem('theme', 'dark-mode');
} else {
body.classList.replace('dark-mode', 'light-mode');
localStorage.setItem('theme', 'light-mode');
}
});
function showSection(id) {
document.querySelectorAll('main section').forEach(sec => sec.classList.remove('active'));
document.getElementById(id).classList.add('active');
window.scrollTo({ top: 0, behavior: 'smooth' });
}
let slideIndex = 0;
const slides = document.querySelectorAll('#hero-slides img');
function showSlide(index) {
slides.forEach((slide, i) => slide.classList.toggle('active', i === index));
}
function changeSlide(direction) {
slideIndex = (slideIndex + direction + slides.length) % slides.length;
showSlide(slideIndex);
}
setInterval(() => changeSlide(1), 3000);
</script>
</body>
</html>