forked from AnujShrivastava01/AnimateItNow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.html
More file actions
78 lines (71 loc) · 2.22 KB
/
editor.html
File metadata and controls
78 lines (71 loc) · 2.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AnimateItNow - Live Editor</title>
<link rel="icon" type="image/png" href="images/logo.png" />
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="editor.css" />
</head>
<body class="bg-gray-50 text-gray-900 min-h-screen">
<header id="header-section" class="bg-white shadow p-4 flex items-center justify-between">
<h1 class="text-2xl font-bold text-blue-600">AnimateItNow</h1>
<div class="flex gap-2">
<button
id="resetBtn"
class="text-blue-600 hover:text-blue-800 text-2xl font-bold px-4 py-2"
title="Reset"
>
↻
</button>
<button
id="runBtn"
class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-[6px] rounded-md text-sm font-semibold"
>
Run
</button>
</div>
</header>
<main class="p-6 space-y-6">
<div class="flex flex-row gap-4">
<!-- HTML Editor -->
<div class="flex-1">
<div class="editor-label html-label">HTML</div>
<textarea
id="htmlCode"
class="editor-area html-area"
placeholder="Write HTML here..."
></textarea>
</div>
<!-- CSS Editor -->
<div class="flex-1">
<div class="editor-label css-label">CSS</div>
<textarea
id="cssCode"
class="editor-area css-area"
placeholder="Write CSS here..."
></textarea>
</div>
<!-- JS Editor -->
<div class="flex-1">
<div class="editor-label js-label">JavaScript</div>
<textarea
id="jsCode"
class="editor-area js-area"
placeholder="Write JavaScript here..."
></textarea>
</div>
</div>
<!-- Output -->
<div>
<h2 class="Output-line">Output</h2>
<iframe
id="output"
class="w-full h-[300px] border border-gray-300 rounded bg-white"
></iframe>
</div>
</main>
<script src="editor.js"></script>
</body>
</html>