openfree commited on
Commit
bb6d6df
Β·
verified Β·
1 Parent(s): 00fa890

Upload index.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +213 -19
index.html CHANGED
@@ -1,19 +1,213 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ko">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Daily Focus - ν•˜λ£¨ 5λΆ„μ˜ 집쀑λ ₯</title>
7
+ <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ font-family: 'Arial', sans-serif;
13
+ }
14
+
15
+ body {
16
+ background: #f5f6fa;
17
+ color: #2d3436;
18
+ }
19
+
20
+ .container {
21
+ max-width: 800px;
22
+ margin: 0 auto;
23
+ padding: 20px;
24
+ }
25
+
26
+ header {
27
+ text-align: center;
28
+ padding: 40px 0;
29
+ background: linear-gradient(135deg, #6c5ce7, #a8e6cf);
30
+ color: white;
31
+ border-radius: 15px;
32
+ margin-bottom: 30px;
33
+ box-shadow: 0 4px 15px rgba(0,0,0,0.1);
34
+ }
35
+
36
+ .timer-container {
37
+ background: white;
38
+ padding: 30px;
39
+ border-radius: 15px;
40
+ box-shadow: 0 4px 15px rgba(0,0,0,0.1);
41
+ text-align: center;
42
+ margin-bottom: 30px;
43
+ }
44
+
45
+ .timer {
46
+ font-size: 4em;
47
+ font-weight: bold;
48
+ color: #6c5ce7;
49
+ margin: 20px 0;
50
+ }
51
+
52
+ .controls button {
53
+ padding: 12px 25px;
54
+ margin: 0 10px;
55
+ border: none;
56
+ border-radius: 25px;
57
+ background: #6c5ce7;
58
+ color: white;
59
+ font-size: 1.1em;
60
+ cursor: pointer;
61
+ transition: all 0.3s ease;
62
+ }
63
+
64
+ .controls button:hover {
65
+ background: #5849c4;
66
+ transform: translateY(-2px);
67
+ }
68
+
69
+ .stats-container {
70
+ display: grid;
71
+ grid-template-columns: repeat(3, 1fr);
72
+ gap: 20px;
73
+ margin-bottom: 30px;
74
+ }
75
+
76
+ .stat-card {
77
+ background: white;
78
+ padding: 20px;
79
+ border-radius: 15px;
80
+ text-align: center;
81
+ box-shadow: 0 4px 15px rgba(0,0,0,0.1);
82
+ }
83
+
84
+ .stat-value {
85
+ font-size: 1.8em;
86
+ font-weight: bold;
87
+ color: #6c5ce7;
88
+ margin: 10px 0;
89
+ }
90
+
91
+ .progress-container {
92
+ background: white;
93
+ padding: 30px;
94
+ border-radius: 15px;
95
+ box-shadow: 0 4px 15px rgba(0,0,0,0.1);
96
+ }
97
+
98
+ .progress-bar {
99
+ width: 100%;
100
+ height: 20px;
101
+ background: #dfe6e9;
102
+ border-radius: 10px;
103
+ overflow: hidden;
104
+ margin: 20px 0;
105
+ }
106
+
107
+ .progress {
108
+ width: 0%;
109
+ height: 100%;
110
+ background: linear-gradient(135deg, #6c5ce7, #a8e6cf);
111
+ transition: width 0.3s ease;
112
+ }
113
+
114
+ @media (max-width: 600px) {
115
+ .stats-container {
116
+ grid-template-columns: 1fr;
117
+ }
118
+ }
119
+ </style>
120
+ </head>
121
+ <body>
122
+ <div class="container">
123
+ <header>
124
+ <h1>Daily Focus</h1>
125
+ <p>ν•˜λ£¨ 5λΆ„μ˜ μ§‘μ€‘μœΌλ‘œ μ‹œμž‘ν•˜λŠ” μŠ΅κ΄€ λ§Œλ“€κΈ°</p>
126
+ </header>
127
+
128
+ <div class="timer-container">
129
+ <div class="timer">05:00</div>
130
+ <div class="controls">
131
+ <button id="startBtn">μ‹œμž‘</button>
132
+ <button id="resetBtn">리셋</button>
133
+ </div>
134
+ </div>
135
+
136
+ <div class="stats-container">
137
+ <div class="stat-card">
138
+ <h3>연속 일수</h3>
139
+ <div class="stat-value">7일</div>
140
+ </div>
141
+ <div class="stat-card">
142
+ <h3>총 집쀑 μ‹œκ°„</h3>
143
+ <div class="stat-value">35λΆ„</div>
144
+ </div>
145
+ <div class="stat-card">
146
+ <h3>달성λ₯ </h3>
147
+ <div class="stat-value">89%</div>
148
+ </div>
149
+ </div>
150
+
151
+ <div class="progress-container">
152
+ <h3>이번 달 λͺ©ν‘œ 달성도</h3>
153
+ <div class="progress-bar">
154
+ <div class="progress" style="width: 70%"></div>
155
+ </div>
156
+ </div>
157
+ </div>
158
+
159
+ <script>
160
+ let timer;
161
+ let timeLeft = 300; // 5 minutes in seconds
162
+ let isRunning = false;
163
+
164
+ const timerDisplay = document.querySelector('.timer');
165
+ const startBtn = document.getElementById('startBtn');
166
+ const resetBtn = document.getElementById('resetBtn');
167
+
168
+ function updateTimer() {
169
+ const minutes = Math.floor(timeLeft / 60);
170
+ const seconds = timeLeft % 60;
171
+ timerDisplay.textContent = `${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')}`;
172
+ }
173
+
174
+ function startTimer() {
175
+ if (!isRunning) {
176
+ isRunning = true;
177
+ startBtn.textContent = 'μΌμ‹œμ •μ§€';
178
+ timer = setInterval(() => {
179
+ timeLeft--;
180
+ updateTimer();
181
+ if (timeLeft === 0) {
182
+ clearInterval(timer);
183
+ isRunning = false;
184
+ startBtn.textContent = 'μ‹œμž‘';
185
+ alert('5λΆ„ 집쀑 μ™„λ£Œ! μ˜€λŠ˜λ„ μˆ˜κ³ ν•˜μ…¨μŠ΅λ‹ˆλ‹€.');
186
+ }
187
+ }, 1000);
188
+ } else {
189
+ clearInterval(timer);
190
+ isRunning = false;
191
+ startBtn.textContent = 'μ‹œμž‘';
192
+ }
193
+ }
194
+
195
+ function resetTimer() {
196
+ clearInterval(timer);
197
+ isRunning = false;
198
+ timeLeft = 300;
199
+ updateTimer();
200
+ startBtn.textContent = 'μ‹œμž‘';
201
+ }
202
+
203
+ startBtn.addEventListener('click', startTimer);
204
+ resetBtn.addEventListener('click', resetTimer);
205
+
206
+ // Initialize progress animation
207
+ document.addEventListener('DOMContentLoaded', () => {
208
+ const progress = document.querySelector('.progress');
209
+ progress.style.width = '70%';
210
+ });
211
+ </script>
212
+ </body>
213
+ </html>