-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (84 loc) · 2.85 KB
/
Copy pathindex.html
File metadata and controls
88 lines (84 loc) · 2.85 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NeuroFeed | Adaptive Recommendation</title>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" href="/favicon.svg" />
<link rel="apple-touch-icon" href="/favicon.svg" />
<meta name="theme-color" content="#FFE066" />
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
margin: 0;
min-height: 100vh;
color: #111;
position: relative;
}
/* 使用固定定位的伪元素来实现 iOS 兼容的固定背景 */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
/* High quality abstract wallpaper */
background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
/* 确保背景固定在视口 */
will-change: transform;
/* iOS Safari 兼容性:使用 transform 来确保固定定位 */
transform: translateZ(0);
-webkit-transform: translateZ(0);
}
/* Smooth scrolling */
html {
scroll-behavior: smooth;
}
/* Custom scrollbar - Updated for visibility on glass cards */
.custom-scrollbar {
scrollbar-width: thin;
scrollbar-color: rgba(0,0,0,0.3) transparent;
}
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: transparent;
margin: 4px 0;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background-color: rgba(0,0,0,0.25);
border-radius: 20px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background-color: rgba(0,0,0,0.4);
}
</style>
<script type="importmap">
{
"imports": {
"react": "https://esm.sh/react@^19.2.3",
"react-dom/client": "https://esm.sh/react-dom@^19.2.3/client",
"react-dom": "https://esm.sh/react-dom@^19.2.3",
"lucide-react": "https://esm.sh/lucide-react@^0.562.0",
"framer-motion": "https://esm.sh/framer-motion@11.1.7?external=react,react-dom",
"react-dom/": "https://esm.sh/react-dom@^19.2.3/",
"react/": "https://esm.sh/react@^19.2.3/"
}
}
</script>
<link rel="stylesheet" href="/index.css">
</head>
<body>
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
</body>
</html>