-
Notifications
You must be signed in to change notification settings - Fork 64
/
home.html
447 lines (381 loc) · 14 KB
/
home.html
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
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>DevDocsHub - Home</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/js/all.min.js" integrity="sha512-6sSYJqDreZRZGkJ3b+YfdhB3MzmuP9R7X1QZ6g5aIXhRvR1Y/N/P47jmnkENm7YL3oqsmI6AK+V6AD99uWDnIw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
line-height: 1.6;
background-color: #f9f9f9;
color: #333;
transition: background-color 0.3s ease, color 0.3s ease;
}
nav {
background-color: #007bff;
padding: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
nav ul {
list-style-type: none;
display: flex;
justify-content: center;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
text-decoration: none;
padding: 10px 20px;
transition: background-color 0.3s ease;
font-weight: bold;
color: white;
}
nav ul li a:hover {
background-color: #f9f9f9;
border-radius: 5px;
color:#0056b3;
text-decoration: none;
}
header {
background-color: #007bff;
color: #fff;
padding: 40px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
header h1 {
font-size: 2.5rem;
margin-bottom: 10px;
}
header p {
font-size: 1.2rem;
}
.container {
max-width: 1200px;
margin: 50px auto;
padding: 20px;
}
.card {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
margin: 20px 0;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.card h2 {
font-size: 1.8rem;
margin-bottom: 15px;
}
.card p {
font-size: 1rem;
color: #555;
flex-grow: 1;
}
.card .btn {
align-self: flex-start;
margin-top: 15px;
}
footer {
background-color: #343a40;
color: #fff;
padding: 20px;
text-align: center;
margin-top: 50px;
}
footer p {
font-size: 0.9rem;
}
footer a {
color: #fff;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.search-bar {
margin: 30px 0;
text-align: center;
}
.search-bar input[type="text"] {
width: 50%;
padding: 10px;
font-size: 1rem;
border-radius: 5px;
border: 1px solid #ccc;
}
/* Dark Mode Styles */
.dark-mode {
background-color: #333;
color: #fff;
}
.dark-mode header {
background-color: #222;
}
.dark-mode nav {
background-color: #444;
}
.dark-mode nav ul li a {
color: #ddd;
}
.dark-mode .card {
background-color: #444;
}
.dark-mode .card p {
color: #bbb;
}
.dark-mode footer {
background-color: #222;
}
.dark-mode .search-bar input[type="text"] {
background-color: #555;
border-color: #777;
color: #fff;
}
@media (max-width: 600px) {
header h1 {
font-size: 2rem;
}
.card h2 {
font-size: 1.5rem;
}
.btn {
width: 100%;
text-align: center;
}
.search-bar input[type="text"] {
width: 80%;
}
}
.dark-mode-toggle {
position: fixed;
bottom: 20px;
/* Distance from the bottom of the viewport */
right: 20px;
/* Distance from the right of the viewport */
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
z-index: 1000;
/* Ensure the button is above other content */
}
.dark-mode-toggle:hover {
background-color: #0056b3;
}
nav {
background-color: #007bff;
padding: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}
nav h2 {
margin: 0;
color: white;
font-size: 24px;
display: inline-block;
}
nav ul {
list-style-type: none;
display: flex;
justify-content: space-between;
width: 50%; /* Adjust this value as per requirement */
margin: 0;
padding: 0;
}
nav ul li {
margin: 0;
}
nav ul li a {
text-decoration: none;
padding: 10px 20px;
transition: background-color 0.3s ease;
font-weight: bold;
color: white;
display: inline-block;
}
nav ul li a:hover {
background-color: #f9f9f9;
border-radius: 5px;
color: #0056b3;
text-decoration: none;
}
.fa-brands{
color:red;
}
.icons {
color: rgb(255, 30, 0);
cursor: pointer;
}
.icons :hover{
color: rgb(0, 149, 255);
box-shadow: 2px 2px 2px 2px red
}
</style>
</head>
<body>
<div class="gtranslate_wrapper"></div>
<script>
window.gtranslateSettings = {
"default_language":"en",
"detect_browser_language":true,
"wrapper_selector":".gtranslate_wrapper"
}
</script>
<script
src="https://cdn.gtranslate.net/widgets/latest/float.js"
defer
></script>
<nav style="color: white;">
<h1>DevDocsHub</h1>
<ul>
<li><h3><b><a href="{% url 'home' %}">Home</a></li></b></h3>
<li><h3><b><a href="#">Languages</a></li></b></h3>
<li><h3><b><a href="{% url 'about' %}">About</a></li></b></h3>
<li><h3><b><a href="{% url 'contact' %}">Contact</a></li></b></h3>
</ul>
</nav>
<!-- Section 2 -->
<div class="row mx-auto text-center pt-5">
<h2 style="font-weight: 700; font-size: 40px; padding: 20px 0px 20px 0px;">Building The <span style="color: #37e30c;"> Future </span> of
<span style="color: #0d7df5;" id="changing-text"></span>
</h2>
<div class="col-sm-12">
<div class="row mx-auto text-center">
<p class="text-center" style="padding: 0px 30px 0px 30px; text-align: center; font-size: 20px;">We aim to empower students by providing comprehensive resources, tutorials, and guidance on technical skills such as web development, software engineering, data analysis, and machine learning, helping them excel in their careers and contribute to the future of technology.</p>
</div>
</div>
</div>
<div class="container">
<h2 style="font-weight: 700;" class="text-center">You can search about any topic as per your interest <i class="fa-solid fa-thumbs-up" style="color: #0056b3;"></i></h2>
<div class="search-bar w-75 pb-4">
<form id="search-form" method="GET" action="/search/">
<input type="text" name="name" placeholder="Search programming language..." required>
<button type="submit" class="btn btn-primary w-25">Search</button>
</form>
</div>
<section class="grid">
<div class="row">
<!-- home.html -->
<div class="col-sm-4">
<div class="card">
<img src="https://cdn.prod.website-files.com/5f2b1efb0f881760ffdc5c96/63c12849a1c7e9df64c819fc_programming-languages-shutterstock-1680857539.webp"
class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title pt-3" style="font-size: 18px; font-weight: 600; color: #005bbd;">
Programming Languages</h5>
<p class="card-text">Explore comprehensive documentation for a wide range of programming languages such as Python,Javascript,Java,C++, and more.</p>
<a href="programming_languages_info/" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card">
<img src="https://builtin.com/sites/www.builtin.com/files/styles/ckeditor_optimize/public/inline-images/national/working%2520together2.jpg"
class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title pt-3" style="font-size: 18px; font-weight: 600; color: #005bbd;">Open
Source Projects</h5>
<p class="card-text">Find documentation for popular open-source projects like Linux,
Kubernetes,Docker and more. Get benefit from a global community of developers, users,
and enthusiasts.</p>
<a href="#" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card">
<img src="https://cdn-media-2.freecodecamp.org/w1280/605ddfd49618b008528a7b18.jpg"
class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title pt-3" style="font-size: 18px; font-weight: 600; color: #005bbd;">
Tutorials & Guides</h5>
<p class="card-text">Access Step By Step tutorials and guides to help you get started with
new technologies to enhance you skills. These are designed to give you a space to engage
more actively with the course content. </p>
<a href="{% url 'tutorials' %}" class="btn btn-primary">Read More</a>
</div>
</div>
</div>
</div>
</section>
</div>
<div class="row text-center">
<h3 style="font-weight: 700; color: #033061; font-size: 30px;">Connect with us:</h3>
<div class="icons" style="font-size: 30px;">
<i class="fa-brands fa-github"></i>
<i class="fa-brands fa-linkedin" style="color: #005bbd;"></i>
<i class="fa-brands fa-youtube" style="color: red;"></i>
</div>
</div>
<footer>
<p>© 2024 DevDocsHub. All rights reserved.</p>
<p><a href="#">Privacy Policy</a> | <a href="#">Terms of Service</a></p>
</footer>
<button class="dark-mode-toggle" onclick="toggleDarkMode()">Dark Mode</button>
<script>
// Toggle dark mode function
function toggleDarkMode() {
document.body.classList.toggle('dark-mode');
}
</script>
<script>
const words = ["Web Development!", "Data Science!", "Artificial Intelligence!", "Open Source!", "Machine Learning!"];
let wordIndex = 0;
let charIndex = 0;
const changingText = document.getElementById("changing-text");
function type() {
if (charIndex < words[wordIndex].length) {
changingText.textContent += words[wordIndex].charAt(charIndex);
charIndex++;
setTimeout(type, 150); // Speed of typing each character
} else {
setTimeout(erase, 1000); // Pause before erasing
}
}
function erase() {
if (charIndex > 0) {
changingText.textContent = words[wordIndex].substring(0, charIndex - 1);
charIndex--;
setTimeout(erase, 100); // Speed of erasing each character
} else {
wordIndex = (wordIndex + 1) % words.length; // Move to the next word
setTimeout(type, 300); // Start typing the next word
}
}
document.addEventListener("DOMContentLoaded", function () {
setTimeout(type, 1000); // Initial delay before starting the effect
});
</script>
</body>
</html>