-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (51 loc) · 1.76 KB
/
index.html
File metadata and controls
58 lines (51 loc) · 1.76 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
<!-- public/index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<script>
(function() {
// 1) Tenta recuperar preferência explícita do usuário
const saved = localStorage.getItem('theme') // 'dark' ou 'light'
// 2) Se não houver, usa preferência do sistema
const osPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches
const theme = saved || (osPrefersDark ? 'dark' : 'light')
document.documentElement.classList.add(theme)
})()
</script>
<meta charset="UTF-8" />
<title>Recovery Dex Aggregator</title>
<!-- Responsividade -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Favicon e Manifest (opcional) -->
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<link rel="manifest" href="/manifest.json" />
<!-- Google Fonts – Poppins (mesmo usado no Uniswap) -->
<link
rel="preconnect"
href="https://fonts.googleapis.com"
/>
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin
/>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<!-- Arquivo global gerado por merge-css.js
(no build o Vite reescreve o caminho) -->
<link rel="stylesheet" href="/src/styles/Global.module.css" />
</head>
<!--
▸ Para ativar o modo dark basta trocar a classe abaixo
<body class="dark">
…ou controlar via script/Context API:
document.documentElement.classList.toggle('dark', isDark);
-->
<body>
<div id="root"></div>
<!-- Entrypoint React / Vite -->
<script type="module" src="/src/index.jsx"></script>
</body>
</html>