-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (56 loc) · 2.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Codify: Live Code Editor</title>
<!-- Tailwind CSS -->
<link href="./src/output.css" rel="stylesheet" />
<!-- Main script -->
<script type="module" src="/src/main.ts"></script>
</head>
<body>
<header
class="bg-zinc-800 text-white p-4 flex items-center justify-between"
>
<h1 class="text-2xl font-bold flex items-center gap-2 select-none">
<img
src="https://i.imgur.com/Ga7kKRX.png"
width="36px"
draggable="false"
/>Codify: Live Code Editor
</h1>
<button
id="exportButton"
class="bg-zinc-500 hover:bg-zinc-400 hover:text-black active:scale-95 text-black/80 font-semibold px-3 py-1 rounded-sm flex items-center gap-1.5 select-none"
title="Export current project to a file"
>
<span class="tabler--file-export"></span>
Export
</button>
</header>
<main
class="flex flex-col md:flex-row overflow-hidden"
style="height: calc(100vh - 4rem)"
>
<!-- Left panel: Code editors -->
<section
id="codeEditors"
class="editor-container flex flex-col w-full border-r border-zinc-300 overflow-hidden bg-zinc-950"
></section>
<!-- Resize handle -->
<div
id="resizeHandle"
class="w-2.5 bg-[#ddd] cursor-col-resize transition-[background-color] duration-[0.3s] ease-[ease] shrink-0 relative hover:bg-[#bbb] active:bg-[#bbb]"
></div>
<!-- Right panel: Preview -->
<section class="w-full h-full p-4">
<iframe id="preview" class="w-full h-full border"></iframe>
</section>
</main>
</body>
</html>