-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
196 lines (188 loc) · 6.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Franken UI</title>
<link rel="preconnect" href="https://rsms.me/" />
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
<style>
:root {
font-family: Inter, sans-serif;
font-feature-settings: "liga" 1, "calt" 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
:root {
font-family: InterVariable, sans-serif;
}
}
</style>
<!-- For stability in production, it's recommended that you hardcode the latest version in the CDN link. -->
<link
rel="stylesheet"
href="https://unpkg.com/franken-ui@internal/dist/css/core.min.css"
/>
<link
rel="stylesheet"
href="https://unpkg.com/franken-ui@internal/dist/css/utilities.min.css"
/>
<script>
const htmlElement = document.documentElement;
const __FRANKEN__ = JSON.parse(
localStorage.getItem("__FRANKEN__") || "{}"
);
if (
__FRANKEN__.mode === "dark" ||
(!__FRANKEN__.mode &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
htmlElement.classList.add("dark");
} else {
htmlElement.classList.remove("dark");
}
htmlElement.classList.add(__FRANKEN__.theme || "uk-theme-zinc");
htmlElement.classList.add(__FRANKEN__.radii || "uk-radii-md");
htmlElement.classList.add(__FRANKEN__.shadows || "uk-shadows-sm");
htmlElement.classList.add(__FRANKEN__.font || "uk-font-sm");
</script>
<script
type="module"
src="https://unpkg.com/franken-ui@internal/dist/js/core.iife.js"
></script>
<script
type="module"
src="https://unpkg.com/franken-ui@internal/dist/js/icon.iife.js"
></script>
</head>
<body class="bg-background text-foreground">
<!-- START CODING HERE -->
<div class="uk-container uk-container-xl mt-40 grid gap-y-8 md:grid-cols-2">
<div class="space-y-4">
<h1 class="uk-hero-sm font-bold">Franken UI: Dos</h1>
<p class="text-lg font-light">New coat, old boat.</p>
<div class="flex gap-x-1">
<a
class="uk-btn uk-btn-primary"
href="https://next.franken-ui.dev/docs/2.0/introduction"
>
Learn
</a>
<a
class="uk-btn uk-btn-default"
href="https://github.com/sponsors/sveltecult"
target="_blank"
>
<uk-icon icon="heart" cls-custom="mr-2 text-pink-500"></uk-icon>
Support
</a>
<div class="uk-inline">
<button
class="uk-btn uk-btn-default uk-btn-icon"
aria-label="Customize"
>
<uk-icon icon="palette"></uk-icon>
</button>
<div
class="uk-card uk-card-body uk-drop w-96"
data-uk-drop="mode: click; offset: 8"
>
<div class="uk-h3">Customize</div>
<p class="mb-4 mt-1 text-muted-foreground">
Customize your Franken UI experience.
</p>
<uk-theme-switcher id="theme-switcher">
<select hidden>
<optgroup data-key="theme" label="Theme">
<option data-hex="#52525b" value="uk-theme-zinc" selected>
Zinc
</option>
<option data-hex="#64748b" value="uk-theme-slate">
Slate
</option>
<option data-hex="#78716c" value="uk-theme-stone">
Stone
</option>
<option data-hex="#6b7280" value="uk-theme-gray">
Gray
</option>
<option data-hex="#737373" value="uk-theme-neutral">
Neutral
</option>
<option data-hex="#dc2626" value="uk-theme-red">Red</option>
<option data-hex="#e11d48" value="uk-theme-rose">
Rose
</option>
<option data-hex="#f97316" value="uk-theme-orange">
Orange
</option>
<option data-hex="#16a34a" value="uk-theme-green">
Green
</option>
<option data-hex="#2563eb" value="uk-theme-blue">
Blue
</option>
<option data-hex="#facc15" value="uk-theme-yellow">
Yellow
</option>
<option data-hex="#7c3aed" value="uk-theme-violet">
Violet
</option>
</optgroup>
<optgroup data-key="radii" label="Radii">
<option value="uk-radii-none">None</option>
<option value="uk-radii-sm">Small</option>
<option value="uk-radii-md" selected>Medium</option>
<option value="uk-radii-lg">Large</option>
</optgroup>
<optgroup data-key="shadows" label="Shadows">
<option value="uk-shadows-none">None</option>
<option value="uk-shadows-sm" selected>Small</option>
<option value="uk-shadows-md">Medium</option>
<option value="uk-shadows-lg">Large</option>
</optgroup>
<optgroup data-key="mode" label="Mode">
<option data-icon="sun" value="light">Light</option>
<option data-icon="moon" value="dark">Dark</option>
</optgroup>
</select>
</uk-theme-switcher>
</div>
</div>
</div>
</div>
<div class="">
<h2 class="uk-h3">Follow</h2>
<ul class="uk-list uk-list-hyphen mt-4">
<li>
<a
class="uk-link"
href="https://bsky.app/profile/sveltecult.bsky.social"
target="_blank"
>
https://bsky.app/profile/sveltecult.bsky.social
</a>
</li>
<li>
<a
class="uk-link"
href="https://github.com/sveltecult"
target="_blank"
>
https://github.com/sveltecult
</a>
</li>
<li>
<a
class="uk-link"
href="https://github.com/franken-ui"
target="_blank"
>
https://github.com/franken-ui
</a>
</li>
</ul>
</div>
</div>
<!-- END -->
</body>
</html>