-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (100 loc) · 4.8 KB
/
index.html
File metadata and controls
100 lines (100 loc) · 4.8 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Fancy QR</title>
<link rel="stylesheet" href="./examples/style.css" />
</head>
<body class="p-4 min-h-screen bg-gradient-to-br from-blue-100 to-purple-100 h-screen">
<h1 class="text-2xl font-bold mb-6">Fancy QR</h1>
<div class="flex flex-col md:flex-row gap-8 h-[calc(100vh-100px)]">
<!-- Preview Section -->
<div id="preview-tabs" class="flex-1 min-w-0 md:min-w-[400px] bg-white rounded-lg shadow-md p-4">
<div class="border-b border-gray-200">
<nav class="flex gap-4" aria-label="Tabs">
<button class="tab-btn active px-4 py-2 text-sm font-medium border-b-2 border-transparent hover:border-gray-300 hover:text-gray-700 data-[active=true]:border-blue-500 data-[active=true]:text-blue-600"
data-tab="preview">
Preview
</button>
<button
class="tab-btn px-4 py-2 text-sm font-medium border-b-2 border-transparent hover:border-gray-300 hover:text-gray-700 data-[active=true]:border-blue-500 data-[active=true]:text-blue-600"
data-tab="code">
Code
</button>
</nav>
</div>
<div class="mt-4">
<div id="preview" class="tab-content p-4 flex justify-center items-center h-full"></div>
<div id="code" class="tab-content hidden p-4 flex justify-center items-center h-full">
<pre class="bg-gray-900 text-green-300 p-4 rounded-lg overflow-x-auto text-sm">
<code id="code-output"></code>
</pre>
</div>
</div>
</div>
<div id="asset-tabs" class="flex-1 min-w-0 md:min-w-[300px] bg-white rounded-lg shadow-md p-4">
<div class="border-b border-gray-200">
<nav class="flex gap-4" aria-label="Tabs">
<button
class="tab-btn active px-4 py-2 text-sm font-medium border-b-2 border-transparent hover:border-gray-300 hover:text-gray-700 data-[active=true]:border-blue-500 data-[active=true]:text-blue-600"
data-tab="outer-finder">
Outer Finder
</button>
<button
class="tab-btn px-4 py-2 text-sm font-medium border-b-2 border-transparent hover:border-gray-300 hover:text-gray-700 data-[active=true]:border-blue-500 data-[active=true]:text-blue-600"
data-tab="inner-finder">
Inner Finder
</button>
<button
class="tab-btn px-4 py-2 text-sm font-medium border-b-2 border-transparent hover:border-gray-300 hover:text-gray-700 data-[active=true]:border-blue-500 data-[active=true]:text-blue-600"
data-tab="data">
Data
</button>
</nav>
</div>
<div id="assets" class="mt-4">
<div id="outer-finder" class="tab-content flex flex-col gap-4 block" data-active="true">
<div class="flex gap-4">
<select id="gradient-type">
<option value="linear">Linear</option>
<option value="radial" selected>Radial</option>
</select>
<input type="color" id="gradient-from" value="#ff0000" />
<input type="color" id="gradient-to" value="#0000ff" />
</div>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4">
</div>
</div>
<div id="inner-finder" class="tab-content flex flex-col gap-4 hidden">
<div class="flex gap-4">
<select id="gradient-type">
<option value="linear">Linear</option>
<option value="radial" selected>Radial</option>
</select>
<input type="color" id="gradient-from" value="#ff0000" />
<input type="color" id="gradient-to" value="#0000ff" />
</div>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4">
</div>
</div>
<div id="data" class="tab-content flex flex-col gap-4 hidden">
<div class="flex gap-4">
<select id="gradient-type">
<option value="linear">Linear</option>
<option value="radial" selected>Radial</option>
</select>
<input type="color" id="gradient-from" value="#ff0000" />
<input type="color" id="gradient-to" value="#0000ff" />
</div>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4">
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.tailwindcss.com"></script>
<script type="module" src="./examples/sample.ts"></script>
</body>
</html>