-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
209 lines (195 loc) · 13.5 KB
/
Copy pathindex.html
File metadata and controls
209 lines (195 loc) · 13.5 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
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
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>FlowApp</title>
<link rel="manifest" href="./manifest.json">
<meta name="theme-color" content="#00A9E0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="FlowApp">
<link rel="apple-touch-icon" href="https://raw.githubusercontent.com/google/generative-ai-docs/main/site/en/gemma/images/gemma_logo.png">
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
/* CSS Variables for colors */
:root {
--sky-blue: #00A9E0;
--sky-blue-darker: #008FC4;
--dark-text: #3A4B5F;
--light-background: #FFFFFF;
--inactive-station-text: #707070;
--inactive-station-bg: #E9EEF2;
--subtle-border: rgba(200, 210, 220, 0.5);
}
/* Base Styles */
body {
font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #F4F7F9;
margin: 0;
padding: 10px;
display: flex;
justify-content: center;
align-items: center;
min-height: calc(100vh - 20px);
color: var(--dark-text);
overflow-x: hidden;
}
#root {
width: 100%;
max-width: 390px;
height: calc(100vh - 40px);
max-height: 850px;
background-color: var(--light-background);
border-radius: 30px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
}
/* Animations */
@keyframes floatAnimation { 0% { transform: translateY(0px) rotate(-0.5deg); } 50% { transform: translateY(-10px) rotate(0.5deg); } 100% { transform: translateY(0px) rotate(-0.5deg); } }
@keyframes waveAnimation { 0% { transform: translateX(0) translateY(0); } 100% { transform: translateX(-50px) translateY(10px); } }
@keyframes waveAnimation2 { 0% { transform: translateX(0) translateY(0); } 100% { transform: translateX(40px) translateY(5px); } }
@keyframes button-glow { 0% { box-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15); } 50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.7), 0 6px 18px rgba(0, 0, 0, 0.2); } 100% { box-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15); } }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes bar-grow { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
.bar-grow-animation { animation: bar-grow 0.8s ease-out forwards; transform-origin: bottom; }
.fade-enter { opacity: 0; transform: translateY(10px); }
.fade-enter-active { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out; }
.login-input::placeholder { color: rgba(255, 255, 255, 0.7); }
/* Layouts */
.app-container { display: flex; flex-direction: column; height: 100%; padding: 15px; box-sizing: border-box; overflow: hidden; }
.scrollable-content { flex-grow: 1; overflow-y: auto; padding-right: 5px; margin-right: -5px; transition: opacity 0.25s ease-out, transform 0.25s ease-out; }
.is-fading { opacity: 0; transform: translateY(10px); }
/* Splash & Login Screens */
.splash-screen { position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.splash-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, var(--sky-blue) 0%, var(--sky-blue-darker) 100%); z-index: 0; }
.login-background-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.25); z-index: 1; }
.parallax-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; animation: floatAnimation 5s ease-in-out infinite; }
.splash-content { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: space-around; align-items: center; text-align: center; flex-grow: 1; min-height: 0; width: 100%; padding: 40px 20px; box-sizing: border-box; }
.splash-intro { transition: opacity 0.8s ease-in 0.2s; }
.splash-subtitle { font-size: 16px; font-weight: 400; color: var(--light-background); margin-top: 10px; opacity: 0.9; }
.login-container { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; padding: 20px; box-sizing: border-box; flex-grow: 1; }
.login-title { font-size: 24px; font-weight: 700; color: var(--light-background); margin-bottom: 25px; text-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.login-form { display: flex; flex-direction: column; width: 100%; max-width: 300px; }
.login-input { padding: 15px; font-size: 16px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.5); margin-bottom: 20px; text-align: center; background: rgba(255, 255, 255, 0.15); color: var(--light-background); backdrop-filter: blur(5px); }
/* Main View Components */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 15px 0; flex-shrink: 0; }
.logo-header-container { display: flex; align-items: center; cursor: pointer; }
.header-controls-container { display: flex; align-items: center; gap: 10px; }
.station-selector-container { position: relative; display: flex; justify-content: space-around; margin: 0 0 15px 0; padding: 5px; border-radius: 30px; background: var(--inactive-station-bg); box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); flex-shrink: 0; }
.station-pill { position: absolute; top: 5px; bottom: 5px; background-color: var(--sky-blue); border-radius: 25px; box-shadow: 0 3px 8px rgba(0, 169, 224, 0.3); transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1); z-index: 0; }
.station-button { padding: 8px 15px; font-size: 15px; font-weight: 600; color: var(--inactive-station-text); background-color: transparent; border: none; border-radius: 25px; cursor: pointer; transition: color 0.4s ease; position: relative; z-index: 1; }
.station-button.active { color: var(--light-background); }
.content-area { padding: 20px; margin: 0 0 15px 0; border-radius: 20px; background: linear-gradient(180deg, #FFFFFF 0%, #FDFEFF 100%); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07); }
.content-title { font-size: 20px; font-weight: 700; color: var(--dark-text); margin-bottom: 15px; text-align: center; }
.content-text { font-size: 15px; line-height: 1.7; color: var(--dark-text); margin-bottom: 20px; }
.slider-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--subtle-border); }
.slider-label { font-size: 15px; font-weight: 500; color: var(--dark-text); margin-bottom: 15px; text-align: center; }
.slider-control-container { display: flex; align-items: center; gap: 15px; }
.slider-input { flex-grow: 1; accent-color: var(--sky-blue); cursor: pointer; }
.slider-value { font-size: 16px; font-weight: 600; color: var(--sky-blue); font-variant-numeric: tabular-nums; min-width: 50px; text-align: right; }
.simulation-results-container { padding-top: 10px; }
.simulation-title { font-size: 18px; font-weight: bold; color: var(--dark-text); margin-bottom: 10px; text-align: center; }
.gif-image { width: 100%; height: 180px; border-radius: 15px; object-fit: cover; display: block; }
.game-section { text-align: center; padding: 20px 0; border-top: 1px solid var(--subtle-border); margin-top: 20px; }
.score-text { margin-top: 15px; font-size: 16px; font-weight: 600; color: var(--dark-text); }
/* Summary View */
.summary-content { padding: 25px; margin: 0 0 15px 0; border-radius: 20px; background: var(--light-background); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); text-align: center; }
.points-scored-text { font-size: 22px; font-weight: 700; color: var(--dark-text); margin-bottom: 5px; }
.points-value { font-size: 48px; font-weight: 700; color: var(--sky-blue); margin: 10px 0 25px 0; }
.graph-container { width: 100%; height: 150px; display: flex; justify-content: space-around; align-items: flex-end; gap: 10px; padding: 10px; border-top: 1px solid var(--subtle-border); margin-top: 20px;}
.graph-bar { width: 15%; background-color: var(--sky-blue); border-radius: 5px 5px 0 0; }
.feedback-box { margin-top: 20px; padding: 15px; background: rgba(0, 169, 224, 0.05); border-radius: 15px; min-height: 50px; display: flex; justify-content: center; align-items: center; }
.feedback-text { color: var(--dark-text); font-size: 15px; font-style: italic; line-height: 1.6; }
/* Buttons */
.go-button { padding: 15px 45px; font-size: 18px; font-weight: 600; color: var(--sky-blue); background: var(--light-background); border: none; border-radius: 30px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: transform 0.2s ease, box-shadow 0.2s ease; animation: button-glow 3s infinite ease-in-out; }
.go-button:active { transform: scale(0.95); }
.navigation-button { display: block; width: calc(100% - 40px); margin: 20px auto 10px auto; padding: 15px 20px; font-size: 17px; font-weight: 600; color: var(--light-background); background: linear-gradient(180deg, var(--sky-blue) 0%, var(--sky-blue-darker) 100%); border: none; border-radius: 25px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 169, 224, 0.3); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.navigation-button:active { transform: scale(0.97); }
.login-button { display: block; width: 100%; padding: 15px 20px; font-size: 17px; font-weight: 600; color: var(--light-background); background: transparent; border: 2px solid var(--light-background); border-radius: 25px; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease; }
.login-button:active { transform: scale(0.97); background-color: rgba(255, 255, 255, 0.1); }
.game-button { padding: 12px 30px; font-size: 16px; font-weight: 600; color: var(--light-background); background: linear-gradient(180deg, var(--sky-blue) 0%, var(--sky-blue-darker) 100%); border: none; border-radius: 25px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 169, 224, 0.3); transition: transform 0.2s ease; }
.game-button:active { transform: scale(0.97); }
.fullscreen-button {
background: rgba(0, 0, 0, 0.05);
border: 1px solid var(--subtle-border);
color: var(--dark-text);
padding: 0;
width: 38px;
height: 38px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s ease, transform 0.1s ease;
}
.fullscreen-button:hover {
background: rgba(0, 0, 0, 0.1);
}
.fullscreen-button:active {
transform: scale(0.92);
background-color: rgba(0, 0, 0, 0.12);
}
.fullscreen-button svg {
width: 20px;
height: 20px;
}
/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: rgba(0, 169, 224, 0.05); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0, 169, 224, 0.4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 169, 224, 0.6); }
/* Sponsor Bar */
.sponsor-bar {
position: relative;
z-index: 3;
background-color: var(--light-background);
padding: 15px 20px;
box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
flex-shrink: 0;
display: flex;
justify-content: center;
align-items: center;
}
.sponsor-logos-container {
display: flex;
justify-content: space-around;
align-items: center;
width: 100%;
gap: 20px;
}
.sponsor-logo {
max-width: 45%;
height: auto;
max-height: 60px;
object-fit: contain;
}
</style>
<script type="importmap">
{
"imports": {
"react": "https://esm.sh/react@18.2.0",
"react-dom/client": "https://esm.sh/react-dom@18.2.0/client",
"react-dom/": "https://esm.sh/react-dom@18.2.0/",
"react/": "https://esm.sh/react@18.2.0/",
"path": "https://aistudiocdn.com/path@^0.12.7",
"vite": "https://aistudiocdn.com/vite@^7.1.6",
"@vitejs/plugin-react": "https://aistudiocdn.com/@vitejs/plugin-react@^5.0.3",
"url": "https://aistudiocdn.com/url@^0.11.4",
"@vitejs/plugin-basic-ssl": "https://aistudiocdn.com/@vitejs/plugin-basic-ssl@^2.1.0"
}
}
</script>
<link rel="stylesheet" href="/index.css">
</head>
<body>
<div id="root"></div>
<script type="module" src="./index.js"></script>
<script type="module" src="/index.tsx"></script>
</body>
</html>