Injamul77 commited on
Commit
6a8bcc4
·
verified ·
1 Parent(s): 712623d

Give it a modern futuristic design

Browse files
Files changed (3) hide show
  1. components/navbar.js +33 -9
  2. index.html +18 -21
  3. style.css +229 -19
components/navbar.js CHANGED
@@ -27,8 +27,11 @@ class CustomNavbar extends HTMLElement {
27
  font-weight: bold;
28
  font-size: 1.5rem;
29
  text-decoration: none;
 
 
 
30
  }
31
- .nav-links {
32
  display: flex;
33
  gap: 2rem;
34
  align-items: center;
@@ -38,12 +41,33 @@ class CustomNavbar extends HTMLElement {
38
  text-decoration: none;
39
  padding: 0.5rem 1rem;
40
  border-radius: 0.375rem;
41
- transition: background-color 0.2s;
 
 
 
 
 
42
  }
43
  .nav-link:hover {
44
- background-color: rgba(255, 255, 255, 0.1);
 
 
45
  }
46
- @media (max-width: 768px) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  .nav-links {
48
  gap: 1rem;
49
  }
@@ -55,11 +79,11 @@ class CustomNavbar extends HTMLElement {
55
  </style>
56
  <nav>
57
  <div class="nav-container">
58
- <a href="index.html" class="logo">
59
- <i data-feather="activity" class="mr-2"></i>
60
- LifeTracker Pro
61
- </a>
62
- <div class="nav-links">
63
  <a href="index.html" class="nav-link">Dashboard</a>
64
  <a href="stats.html" class="nav-link">Statistics</a>
65
  <a href="settings.html" class="nav-link">Settings</a>
 
27
  font-weight: bold;
28
  font-size: 1.5rem;
29
  text-decoration: none;
30
+ font-family: 'Orbitron', sans-serif;
31
+ text-transform: uppercase;
32
+ letter-spacing: 1px;
33
  }
34
+ .nav-links {
35
  display: flex;
36
  gap: 2rem;
37
  align-items: center;
 
41
  text-decoration: none;
42
  padding: 0.5rem 1rem;
43
  border-radius: 0.375rem;
44
+ transition: all 0.3s ease;
45
+ position: relative;
46
+ font-family: 'Orbitron', sans-serif;
47
+ text-transform: uppercase;
48
+ letter-spacing: 1px;
49
+ font-size: 0.9rem;
50
  }
51
  .nav-link:hover {
52
+ background: rgba(255, 255, 255, 0.1);
53
+ box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
54
+ transform: translateY(-2px);
55
  }
56
+ .nav-link::after {
57
+ content: '';
58
+ position: absolute;
59
+ bottom: -2px;
60
+ left: 50%;
61
+ width: 0;
62
+ height: 2px;
63
+ background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
64
+ transition: all 0.3s ease;
65
+ transform: translateX(-50%);
66
+ }
67
+ .nav-link:hover::after {
68
+ width: 80%;
69
+ }
70
+ @media (max-width: 768px) {
71
  .nav-links {
72
  gap: 1rem;
73
  }
 
79
  </style>
80
  <nav>
81
  <div class="nav-container">
82
+ <a href="index.html" class="logo glow-text">
83
+ <i data-feather="activity" class="mr-2"></i>
84
+ <span class="text-transparent bg-clip-text bg-gradient-to-r from-neon-blue to-neon-purple">LIFETRACKER PRO</span>
85
+ </a>
86
+ <div class="nav-links">
87
  <a href="index.html" class="nav-link">Dashboard</a>
88
  <a href="stats.html" class="nav-link">Statistics</a>
89
  <a href="settings.html" class="nav-link">Settings</a>
index.html CHANGED
@@ -11,38 +11,35 @@
11
  </head>
12
  <body class="bg-gray-50">
13
  <custom-navbar></custom-navbar>
14
-
15
  <main class="container mx-auto px-4 py-8">
16
  <!-- Dashboard Header -->
17
- <div class="mb-8 text-center">
18
- <h1 class="text-4xl font-bold text-gray-800 mb-2">Daily Life Dashboard</h1>
19
- <p class="text-gray-600">Track your daily activities and progress</p>
 
20
  </div>
21
-
22
  <!-- Activity Tracking Section -->
23
- <section class="mb-12">
24
- <h2 class="text-2xl font-semibold text-gray-800 mb-6 flex items-center">
25
- <i data-feather="activity" class="mr-2"></i>
26
- Daily Activities
27
  </h2>
28
-
29
- <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
30
  <!-- Sleep Tracker -->
31
- <div class="bg-white rounded-xl shadow-md p-6">
32
- <div class="flex items-center justify-between mb-4">
33
- <h3 class="text-lg font-semibold text-gray-800">Sleep</h3>
34
- <i data-feather="moon" class="text-blue-500"></i>
35
  </div>
36
- <div class="text-3xl font-bold text-blue-600 mb-2">0h 0m</div>
37
- <div class="w-full bg-gray-200 rounded-full h-2">
38
  <div class="bg-blue-500 h-2 rounded-full" style="width: 0%"></div>
39
  </div>
40
- <button class="mt-4 w-full bg-blue-500 text-white py-2 rounded-lg hover:bg-blue-600 transition-colors">
41
- Log Sleep
42
  </button>
43
  </div>
44
-
45
- <!-- Work Tracker -->
46
  <div class="bg-white rounded-xl shadow-md p-6">
47
  <div class="flex items-center justify-between mb-4">
48
  <h3 class="text-lg font-semibold text-gray-800">Work</h3>
 
11
  </head>
12
  <body class="bg-gray-50">
13
  <custom-navbar></custom-navbar>
 
14
  <main class="container mx-auto px-4 py-8">
15
  <!-- Dashboard Header -->
16
+ <div class="mb-12 text-center">
17
+ <h1 class="text-5xl font-bold mb-4 glow-text">DAILY LIFE DASHBOARD</h1>
18
+ <p class="text-xl text-gray-400">TRACK YOUR ACTIVITIES IN REAL-TIME</p>
19
+ <div class="mt-4 h-1 w-24 bg-gradient-to-r from-neon-blue to-neon-purple mx-auto rounded-full"></div>
20
  </div>
 
21
  <!-- Activity Tracking Section -->
22
+ <section class="mb-16">
23
+ <h2 class="text-3xl font-semibold mb-8 flex items-center justify-center">
24
+ <i data-feather="activity" class="mr-3 text-neon-blue"></i>
25
+ <span class="glow-text">DAILY ACTIVITIES</span>
26
  </h2>
27
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
 
28
  <!-- Sleep Tracker -->
29
+ <div class="bg-white rounded-xl p-6 pulse">
30
+ <div class="flex items-center justify-between mb-6">
31
+ <h3 class="text-xl font-semibold">SLEEP</h3>
32
+ <i data-feather="moon" class="text-neon-blue" style="width: 28px; height: 28px;"></i>
33
  </div>
34
+ <div class="text-4xl font-bold text-neon-blue mb-4 glow-text">0h 0m</div>
35
+ <div class="w-full bg-gray-200 rounded-full h-2 mb-6">
36
  <div class="bg-blue-500 h-2 rounded-full" style="width: 0%"></div>
37
  </div>
38
+ <button class="w-full bg-gradient-to-r from-neon-blue to-blue-600 text-white py-3 rounded-xl font-mono tracking-wider hover:shadow-lg transition-all">
39
+ LOG SLEEP
40
  </button>
41
  </div>
42
+ <!-- Work Tracker -->
 
43
  <div class="bg-white rounded-xl shadow-md p-6">
44
  <div class="flex items-center justify-between mb-4">
45
  <h3 class="text-lg font-semibold text-gray-800">Work</h3>
style.css CHANGED
@@ -1,27 +1,159 @@
1
- /* Custom Styles for LifeTracker Pro */
2
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  body {
5
  font-family: 'Inter', sans-serif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  }
7
 
8
  .container {
9
  max-width: 1200px;
10
  }
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  /* Custom checkbox styles */
13
  .workout-checkbox {
14
- width: 20px;
15
- height: 20px;
16
- border: 2px solid #d1d5db;
17
- border-radius: 4px;
18
  cursor: pointer;
19
- transition: all 0.2s ease;
 
 
 
20
  }
21
 
22
  .workout-checkbox.checked {
23
- background-color: #3b82f6;
24
- border-color: #3b82f6;
25
  }
26
 
27
  .workout-checkbox.checked::after {
@@ -31,27 +163,105 @@ body {
31
  display: flex;
32
  align-items: center;
33
  justify-content: center;
34
- font-size: 12px;
 
35
  }
36
 
37
- /* Progress bar animation */
38
- .progress-bar {
39
- transition: width 0.3s ease-in-out;
 
 
 
40
  }
41
 
42
- /* Hover effects */
43
- .hover-lift {
44
- transition: transform 0.2s ease;
 
45
  }
46
 
47
- .hover-lift:hover {
48
- transform: translateY(-2px);
 
 
 
49
  }
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  /* Responsive adjustments */
52
  @media (max-width: 768px) {
53
  .container {
54
  padding-left: 1rem;
55
  padding-right: 1rem;
56
  }
57
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /* Futuristic Styles for LifeTracker Pro */
3
+ @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Roboto+Mono:wght@300;400;500&family=Inter:wght@300;400;500;600;700&display=swap');
4
+
5
+ :root {
6
+ --neon-blue: #00d9ff;
7
+ --neon-purple: #bd00ff;
8
+ --neon-pink: #ff00c8;
9
+ --neon-green: #00ff9d;
10
+ --dark-bg: #0a0a14;
11
+ --dark-card: #13131f;
12
+ --dark-border: #252536;
13
+ --glow-blue: 0 0 10px rgba(0, 217, 255, 0.7), 0 0 20px rgba(0, 217, 255, 0.4);
14
+ --glow-purple: 0 0 10px rgba(189, 0, 255, 0.7), 0 0 20px rgba(189, 0, 255, 0.4);
15
+ --glow-pink: 0 0 10px rgba(255, 0, 200, 0.7), 0 0 20px rgba(255, 0, 200, 0.4);
16
+ --glow-green: 0 0 10px rgba(0, 255, 157, 0.7), 0 0 20px rgba(0, 255, 157, 0.4);
17
+ }
18
 
19
  body {
20
  font-family: 'Inter', sans-serif;
21
+ background: var(--dark-bg);
22
+ color: #ffffff;
23
+ min-height: 100vh;
24
+ overflow-x: hidden;
25
+ }
26
+
27
+ /* Cyberpunk gradient background */
28
+ body::before {
29
+ content: '';
30
+ position: fixed;
31
+ top: 0;
32
+ left: 0;
33
+ right: 0;
34
+ height: 100%;
35
+ background: linear-gradient(45deg,
36
+ rgba(0, 217, 255, 0.1) 0%,
37
+ rgba(189, 0, 255, 0.1) 25%,
38
+ rgba(255, 0, 200, 0.1) 50%,
39
+ rgba(0, 255, 157, 0.1) 75%);
40
+ pointer-events: none;
41
+ z-index: -1;
42
  }
43
 
44
  .container {
45
  max-width: 1200px;
46
  }
47
 
48
+ /* Futuristic typography */
49
+ h1, h2, h3, h4, h5, h6 {
50
+ font-family: 'Orbitron', sans-serif;
51
+ text-transform: uppercase;
52
+ letter-spacing: 1px;
53
+ background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
54
+ -webkit-background-clip: text;
55
+ -webkit-text-fill-color: transparent;
56
+ text-shadow: var(--glow-blue);
57
+ }
58
+
59
+ /* Activity cards */
60
+ .bg-white {
61
+ background: var(--dark-card) !important;
62
+ border: 1px solid var(--dark-border);
63
+ border-radius: 16px;
64
+ backdrop-filter: blur(10px);
65
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
66
+ transition: all 0.3s ease;
67
+ position: relative;
68
+ overflow: hidden;
69
+ }
70
+
71
+ .bg-white::before {
72
+ content: '';
73
+ position: absolute;
74
+ top: -2px;
75
+ left: -2px;
76
+ right: -2px;
77
+ bottom: -2px;
78
+ background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink), var(--neon-green));
79
+ z-index: -1;
80
+ border-radius: 18px;
81
+ animation: border-glow 3s ease-in-out infinite alternate;
82
+ }
83
+
84
+ .bg-white:hover {
85
+ transform: translateY(-5px) scale(1.02);
86
+ box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
87
+ }
88
+
89
+ /* Progress bars */
90
+ .w-full.bg-gray-200 {
91
+ background: rgba(255, 255, 255, 0.1) !important;
92
+ border-radius: 20px;
93
+ height: 6px;
94
+ }
95
+
96
+ .bg-blue-500, .bg-green-500, .bg-purple-500, .bg-red-500 {
97
+ border-radius: 20px;
98
+ height: 6px;
99
+ position: relative;
100
+ overflow: hidden;
101
+ }
102
+
103
+ .bg-blue-500 { background: linear-gradient(90deg, var(--neon-blue), #0088ff); box-shadow: var(--glow-blue); }
104
+ .bg-green-500 { background: linear-gradient(90deg, var(--neon-green), #00cc88); box-shadow: var(--glow-green); }
105
+ .bg-purple-500 { background: linear-gradient(90deg, var(--neon-purple), #aa00ff); box-shadow: var(--glow-purple); }
106
+ .bg-red-500 { background: linear-gradient(90deg, var(--neon-pink), #ff0066); box-shadow: var(--glow-pink); }
107
+
108
+ /* Buttons */
109
+ button {
110
+ font-family: 'Orbitron', sans-serif !important;
111
+ border: none !important;
112
+ border-radius: 12px !important;
113
+ text-transform: uppercase;
114
+ letter-spacing: 1px;
115
+ font-weight: 600 !important;
116
+ transition: all 0.3s ease !important;
117
+ position: relative;
118
+ overflow: hidden;
119
+ }
120
+
121
+ button::before {
122
+ content: '';
123
+ position: absolute;
124
+ top: 0;
125
+ left: -100%;
126
+ width: 100%;
127
+ height: 100%;
128
+ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
129
+ transition: left 0.5s ease;
130
+ }
131
+
132
+ button:hover::before {
133
+ left: 100%;
134
+ }
135
+
136
+ button:hover {
137
+ transform: translateY(-2px);
138
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
139
+ }
140
+
141
  /* Custom checkbox styles */
142
  .workout-checkbox {
143
+ width: 24px;
144
+ height: 24px;
145
+ border: 2px solid var(--neon-blue);
146
+ border-radius: 6px;
147
  cursor: pointer;
148
+ transition: all 0.3s ease;
149
+ position: relative;
150
+ background: rgba(0, 217, 255, 0.1);
151
+ box-shadow: var(--glow-blue);
152
  }
153
 
154
  .workout-checkbox.checked {
155
+ background-color: var(--neon-blue);
156
+ border-color: var(--neon-blue);
157
  }
158
 
159
  .workout-checkbox.checked::after {
 
163
  display: flex;
164
  align-items: center;
165
  justify-content: center;
166
+ font-size: 14px;
167
+ text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
168
  }
169
 
170
+ /* Workout items */
171
+ .flex.items-center.p-3 {
172
+ background: rgba(255, 255, 255, 0.05) !important;
173
+ border: 1px solid var(--dark-border);
174
+ border-radius: 12px;
175
+ transition: all 0.3s ease;
176
  }
177
 
178
+ .flex.items-center.p-3:hover {
179
+ background: rgba(255, 255, 255, 0.1) !important;
180
+ border-color: var(--neon-blue);
181
+ transform: translateX(5px);
182
  }
183
 
184
+ /* Progress stats */
185
+ .bg-gray-50 {
186
+ background: rgba(255, 255, 255, 0.05) !important;
187
+ border: 1px solid var(--dark-border);
188
+ border-radius: 16px;
189
  }
190
 
191
+ /* Animations */
192
+ @keyframes border-glow {
193
+ 0% { opacity: 0.5; }
194
+ 100% { opacity: 1; }
195
+ }
196
+
197
+ @keyframes pulse {
198
+ 0% { transform: scale(1); }
199
+ 50% { transform: scale(1.05); }
200
+ 100% { transform: scale(1); }
201
+ }
202
+
203
+ /* Grid enhancements */
204
+ .grid {
205
+ gap: 1.5rem;
206
+ }
207
+
208
+ /* Text enhancements */
209
+ .text-gray-800 {
210
+ color: #ffffff !important;
211
+ }
212
+
213
+ .text-gray-600 {
214
+ color: rgba(255, 255, 255, 0.7) !important;
215
+ }
216
+
217
+ .text-blue-600 { color: var(--neon-blue) !important; text-shadow: var(--glow-blue); }
218
+ .text-green-600 { color: var(--neon-green) !important; text-shadow: var(--glow-green); }
219
+ .text-purple-600 { color: var(--neon-purple) !important; text-shadow: var(--glow-purple); }
220
+ .text-red-600 { color: var(--neon-pink) !important; text-shadow: var(--glow-pink); }
221
+
222
  /* Responsive adjustments */
223
  @media (max-width: 768px) {
224
  .container {
225
  padding-left: 1rem;
226
  padding-right: 1rem;
227
  }
228
+
229
+ .grid {
230
+ gap: 1rem;
231
+ }
232
+
233
+ h1 {
234
+ font-size: 2rem !important;
235
+ }
236
+
237
+ h2 {
238
+ font-size: 1.5rem !important;
239
+ }
240
+ }
241
+
242
+ /* Special effects for futuristic feel */
243
+ .glow-text {
244
+ text-shadow: 0 0 10px currentColor;
245
+ }
246
+
247
+ .pulse {
248
+ animation: pulse 2s infinite ease-in-out;
249
+ }
250
+
251
+ /* Custom scrollbar */
252
+ ::-webkit-scrollbar {
253
+ width: 8px;
254
+ }
255
+
256
+ ::-webkit-scrollbar-track {
257
+ background: var(--dark-bg);
258
+ }
259
+
260
+ ::-webkit-scrollbar-thumb {
261
+ background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
262
+ border-radius: 4px;
263
+ }
264
+
265
+ ::-webkit-scrollbar-thumb:hover {
266
+ background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
267
+ }