-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
599 lines (542 loc) · 21.9 KB
/
index.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
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="An online code editor to write and run HTML, CSS, and JavaScript with live preview. Perfect for quick coding experiments and learning!">
<meta name="keywords"
content="online code editor, HTML, CSS, JavaScript, web development, coding playground, live preview">
<meta name="author" content="Tholumuzi Khuboni">
<meta name="robots" content="index, follow">
<!-- Open Graph Meta Tags for Social Media Sharing -->
<meta property="og:title" content="Online Code Editor">
<meta property="og:description"
content="Write and run HTML, CSS, and JavaScript with live preview in this online code editor. Ideal for web developers and learners.">
<meta property="og:image" content="src/images/image.png">
<meta property="og:url" content="https://editor.tholumuzi.co.za">
<meta property="og:type" content="website">
<!-- Twitter Card Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Online Code Editor">
<meta name="twitter:description"
content="An online platform for writing and testing HTML, CSS, and JavaScript code.">
<meta name="twitter:image" content="src/images/image.png">
<meta name="twitter:url" content="https://editor.tholumuzi.co.za">
<title>Online Code Editor</title>
<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="./src/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./src/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./src/images/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
<!-- FontAwesome for Icons -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
<!-- CodeMirror CSS for syntax highlighting -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/codemirror.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/theme/dracula.min.css">
<style>
body {
font-family: 'Roboto Mono', monospace;
background-color: #f8f9fa;
}
/* Style for the sticky navigation bar */
header {
position: sticky;
top: 0;
z-index: 1000;
}
/* Add some space at the top of the page to prevent content being hidden under the sticky navbar */
body {
padding-top: 60px;
/* Adjust this based on the height of your navbar */
}
/* Additional styling for the navbar */
.navbar {
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar-nav .nav-item .nav-link {
font-size: 16px;
font-weight: 500;
}
.navbar-nav .nav-item .nav-link:hover {
color: #007bff;
}
/* Hero Section */
.hero-section {
padding: 50px 0;
text-align: center;
background-color: #fff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-bottom: 50px;
}
.hero-section h1 {
font-size: 2.5rem;
margin-bottom: 20px;
}
/* Hero Section */
.hero-section {
background-color: #f7f7f7;
padding: 50px 0;
}
.hero-section .cta-buttons {
display: flex;
justify-content: center; /* Center buttons horizontally */
gap: 30px; /* Custom spacing between the buttons */
}
.hero-section .cta-btn {
padding: 12px 25px;
font-size: 16px;
text-decoration: none;
border-radius: 5px;
background-color: #007bff;
color: white;
display: flex;
align-items: center;
transition: background-color 0.3s ease;
}
.hero-section .cta-btn:hover {
background-color: #0056b3; /* Darker shade on hover */
}
.hero-section .cta-btn i {
margin-right: 8px; /* Space between icon and text */
}
.feature-item {
text-align: center;
margin-bottom: 30px;
transition: transform 0.3s ease;
}
.feature-item:hover {
transform: translateY(-10px);
}
.feature-item i {
font-size: 3rem;
color: #28a745;
margin-bottom: 15px;
}
.feature-item h4 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 15px;
}
.feature-item p {
font-size: 1rem;
color: #6c757d;
}
.editor-container {
position: relative;
}
.editor-tabs textarea {
width: 100%;
height: 150px;
font-family: 'Courier New', Courier, monospace;
font-size: 14px;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
resize: none;
}
.editor-controls button {
margin-right: 10px;
}
.card h4 {
margin-top: 10px;
font-weight: bold;
}
#preview {
border-radius: 5px;
}
/* Footer Section */
.footer {
padding: 30px 0;
text-align: center;
background-color: #ffffff;
color: #6c757d;
border-top: 1px solid #e9ecef;
}
.footer a {
color: #28a745;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
.footer {
padding: 30px 0;
background-color: #f8f9fa;
border-top: 1px solid #e9ecef;
}
.footer h5 {
font-size: 1.2rem;
color: #343a40;
margin-bottom: 20px;
}
.footer ul {
padding: 0;
list-style: none;
}
.footer ul li {
margin-bottom: 10px;
}
.footer ul li a {
color: #007bff;
text-decoration: none;
}
.footer ul li a:hover {
text-decoration: underline;
}
.footer p {
font-size: 0.9rem;
color: #6c757d;
}
/* Responsive Layout for Mobile Devices */
@media (max-width: 768px) {
.hero-section h1 {
font-size: 2rem;
}
.hero-section p {
font-size: 1rem;
}
}
/* General Styling */
.learning-hub {
background-color: #f8f9fa;
}
.card-link {
text-decoration: none;
color: inherit;
}
.card img {
transition: transform 0.3s ease;
}
.card img:hover {
transform: scale(1.1);
}
.card h4 {
font-size: 1.25rem;
font-weight: bold;
}
/* HTML Card Styling */
.html-card {
background-color: #f16529;
color: white;
}
/* CSS Card Styling */
.css-card {
background-color: #2965f1;
color: white;
}
/* JavaScript Card Styling */
.js-card {
background-color: #f7df1e;
color: black;
}
</style>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
<div class="container">
<a class="navbar-brand" href="">
<i class="fas fa-code" style="color: #28a745;"></i>
<span style="color: #007bff;">Code</span>
<span style="color: #28a745;">Editor</span>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto" id="navLinks">
<li class="nav-item active">
<a class="nav-link" href="">
<i class="fas fa-home me-2"></i> Home
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="editor.html">
<i class="fas fa-pencil-alt me-2"></i> Editor
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="resources.html">
<i class="fas fa-book me-2"></i> Resources
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="documentation.html">
<i class="fas fa-file-alt me-2"></i> Documentation
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="challenges.html">
<i class="fas fa-trophy me-2"></i> Challenges
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact-us.html">
<i class="fas fa-envelope me-2"></i> Contact
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<!-- Hero Section -->
<section class="hero-section">
<div class="container text-center">
<h1>Online Code Editor</h1>
<p>Write, run, and experiment with HTML, CSS, and JavaScript code in real-time. Perfect for learning or
rapid development!</p>
<!-- Two buttons with custom spacing -->
<div class="cta-buttons">
<a href="login.html" class="cta-btn">
<i class="fas fa-sign-in-alt"></i> Login
</a>
<a href="signup.html" class="cta-btn">
<i class="fas fa-user-plus"></i> Sign Up
</a>
</div>
</div>
</section>
<!-- Quick Start Guide Section -->
<section class="quick-start-guide py-5 bg-light">
<div class="container text-center">
<h2 class="mb-4">Quick Start Guide</h2>
<p class="mb-4">Get started with our code editor in just a few simple steps.</p>
<div class="row justify-content-center">
<!-- Step 1 -->
<div class="col-md-4 mb-4">
<div class="card shadow-sm">
<div class="card-body text-center">
<i class="fas fa-keyboard mb-3 text-primary" style="font-size: 40px;"></i>
<h4>Step 1: Write Code</h4>
<p>Open the editor and start writing your HTML, CSS, or JavaScript code in real-time.</p>
</div>
</div>
</div>
<!-- Step 2 -->
<div class="col-md-4 mb-4">
<div class="card shadow-sm">
<div class="card-body text-center">
<i class="fas fa-desktop mb-3 text-info" style="font-size: 40px;"></i>
<h4>Step 2: Preview Your Work</h4>
<p>See live changes instantly. Our editor displays your code's result as you type.</p>
</div>
</div>
</div>
<!-- Step 3 -->
<div class="col-md-4 mb-4">
<div class="card shadow-sm">
<div class="card-body text-center">
<i class="fas fa-share-alt mb-3 text-success" style="font-size: 40px;"></i>
<h4>Step 3: Save or Share</h4>
<p>Once you’re done, save your work or share your code with others to collaborate.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section class="features-section text-center">
<div class="container">
<h2 class="mb-5">Key Features</h2>
<div class="row">
<div class="col-md-4 feature-item">
<i class="fas fa-code"></i>
<h4>Write Code Anytime</h4>
<p>Write your HTML, CSS, and JavaScript code and get instant feedback with live preview.</p>
</div>
<div class="col-md-4 feature-item">
<i class="fas fa-play"></i>
<h4>Live Preview</h4>
<p>See the results of your code as you type. Perfect for web developers and learners alike!</p>
</div>
<div class="col-md-4 feature-item">
<i class="fas fa-save"></i>
<h4>Save and Resume</h4>
<p>Save your code, resume later, or share your code with others for collaboration.</p>
</div>
<div class="col-md-4 feature-item">
<i class="fas fa-download"></i>
<h4>Download Code</h4>
<p>Export your HTML, CSS, and JavaScript code to your device as a .zip file for offline use.</p>
</div>
<div class="col-md-4 feature-item">
<i class="fas fa-align-left"></i>
<h4>Format Code</h4>
<p>Automatically format your code for better readability and organization with one click.</p>
</div>
<div class="col-md-4 feature-item">
<i class="fas fa-upload"></i>
<h4>Load Code</h4>
<p>Quickly load previously saved code files and continue editing seamlessly.</p>
</div>
</div>
</div>
</section>
<section class="features-section text-center">
<div class="container">
<h2 class="mb-5">Integrations</h2>
<div class="row">
<div class="col-md-4 feature-item">
<i class="fab fa-github"></i>
<h4>GitHub Integration</h4>
<p>Sync your projects directly with GitHub repositories for seamless collaboration.</p>
</div>
<div class="col-md-4 feature-item">
<i class="fas fa-cloud-upload-alt"></i>
<h4>Cloud Storage</h4>
<p>Save and load your code files from Google Drive, OneDrive, and Dropbox.</p>
</div>
<div class="col-md-4 feature-item">
<i class="fas fa-code-branch"></i>
<h4>Framework Support</h4>
<p>Supports React, Angular, Vue, and more for quick prototyping and testing.</p>
</div>
</div>
</div>
</section>
<section class="features-section text-center bg-light">
<div class="container">
<h2 class="mb-5">Our Impact</h2>
<div class="row">
<div class="col-md-4 feature-item">
<i class="fas fa-users"></i>
<h4>50,000+</h4>
<p>Registered Users</p>
</div>
<div class="col-md-4 feature-item">
<i class="fas fa-project-diagram"></i>
<h4>200,000+</h4>
<p>Projects Created</p>
</div>
<div class="col-md-4 feature-item">
<i class="fas fa-play"></i>
<h4>1,000,000+</h4>
<p>Code Runs</p>
</div>
</div>
</div>
</section>
<!-- Learning Hub Section -->
<section class="learning-hub py-5 bg-white">
<div class="container text-center">
<h2 class="mb-4">Learning Hub</h2>
<p class="mb-4">Access curated learning resources to enhance your skills in web development.</p>
<div class="row justify-content-center">
<!-- HTML Card -->
<div class="col-md-4 mb-4">
<a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank" class="card-link">
<div class="card shadow-sm border-0 html-card">
<div class="card-body text-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/6/61/HTML5_logo_and_wordmark.svg" alt="HTML Logo" class="mb-3" style="width: 60px;">
<h4 class="text-uppercase">Learn HTML</h4>
<p>Master the structure of web pages with comprehensive HTML resources.</p>
</div>
</div>
</a>
</div>
<!-- CSS Card -->
<div class="col-md-4 mb-4">
<a href="https://developer.mozilla.org/en-US/docs/Web/CSS" target="_blank" class="card-link">
<div class="card shadow-sm border-0 css-card">
<div class="card-body text-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d5/CSS3_logo_and_wordmark.svg" alt="CSS Logo" class="mb-3" style="width: 60px;">
<h4 class="text-uppercase">Learn CSS</h4>
<p>Enhance your design skills by diving into CSS tutorials and guides.</p>
</div>
</div>
</a>
</div>
<!-- JavaScript Card -->
<div class="col-md-4 mb-4">
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" class="card-link">
<div class="card shadow-sm border-0 js-card">
<div class="card-body text-center">
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png" alt="JavaScript Logo" class="mb-3" style="width: 60px;">
<h4 class="text-uppercase">Learn JavaScript</h4>
<p>Get hands-on with JavaScript to build dynamic and interactive web pages.</p>
</div>
</div>
</a>
</div>
</div>
</div>
</section>
<!-- Custom CSS for Hover Effect -->
<style>
.hover-shadow-lg:hover {
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
transform: translateY(-5px);
transition: all 0.3s ease-in-out;
}
</style>
<!-- Font Awesome for Icons -->
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<footer class="footer">
<div class="container">
<div class="row">
<!-- Learn More Section -->
<div class="col-md-6">
<h5>Learn more</h5>
<ul class="list-unstyled">
<li><a href="/terms.html">Terms</a></li>
<li><a href="/privacy-policy.html">Privacy Policy</a></li>
<li><a href="/faq.html">FAQ</a></li>
<li><a href="/resources.html">Resources</a></li>
<li><a href="/plans.html">Pricing</a></li>
<li><a href="/contact-us.html">Contact Us</a></li>
<li><a href="/knowledge.html">Knowledge Base</a></li>
</ul>
</div>
<!-- Tools & API Section -->
<div class="col-md-6">
<h5>Tools & API</h5>
<ul class="list-unstyled">
<li><a href="/api.html">API</a></li>
<li><a href="/documentation.html">Documentation</a></li>
<li><a href="/changelog.html">Changelog</a></li>
<li><a href="/disclaimer.html">Disclaimer</a></li>
<li><a href="/community.html">Community</a></li>
<li><a href="/code.html">Code Palette</a></li>
<li><a href="/challenges.html">Code Challenges</a></li>
</ul>
</div>
</div>
<footer mt-5 bg-light py-3">
<div class="container text-center">
<p class="mb-0">Copyright © 2024 Code Editor. <a href="https://tholumuzi.co.za">All rights
reserved.</a></p>
</div>
</footer>
<script src="./src/app.js></script>
<script type="module" src="scripts/auth.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<!-- Bootstrap JS and FontAwesome for icons -->
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.2/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<!-- CodeMirror JS for syntax highlighting -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/mode/htmlmixed/htmlmixed.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/mode/css/css.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/mode/javascript/javascript.min.js"></script>
<!-- JSZip for download -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<!-- js-beautify for formatting -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.7/beautify.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.7/beautify-css.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.7/beautify-html.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>