Spaces:
Running
Running
I meant modern dark style
Browse files- index.html +9 -9
- style.css +66 -158
index.html
CHANGED
|
@@ -13,16 +13,16 @@
|
|
| 13 |
<custom-navbar></custom-navbar>
|
| 14 |
<main class="container mx-auto px-4 py-8">
|
| 15 |
<!-- Dashboard Header -->
|
| 16 |
-
<div class="mb-
|
| 17 |
-
<h1 class="text-
|
| 18 |
-
<p class="text-
|
| 19 |
-
<div class="mt-4 h-1 w-
|
| 20 |
</div>
|
| 21 |
-
|
| 22 |
-
<section class="mb-
|
| 23 |
-
<h2 class="text-
|
| 24 |
-
<i data-feather="activity" class="mr-3 text-
|
| 25 |
-
<span
|
| 26 |
</h2>
|
| 27 |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
|
| 28 |
<!-- Sleep Tracker -->
|
|
|
|
| 13 |
<custom-navbar></custom-navbar>
|
| 14 |
<main class="container mx-auto px-4 py-8">
|
| 15 |
<!-- Dashboard Header -->
|
| 16 |
+
<div class="mb-8 text-center">
|
| 17 |
+
<h1 class="text-4xl font-bold mb-4">Daily Life Dashboard</h1>
|
| 18 |
+
<p class="text-lg text-gray-600">Track your activities in real-time</p>
|
| 19 |
+
<div class="mt-4 h-1 w-20 bg-blue-600 mx-auto rounded-full"></div>
|
| 20 |
</div>
|
| 21 |
+
<!-- Activity Tracking Section -->
|
| 22 |
+
<section class="mb-12">
|
| 23 |
+
<h2 class="text-2xl font-semibold mb-6 flex items-center justify-center">
|
| 24 |
+
<i data-feather="activity" class="mr-3 text-blue-600"></i>
|
| 25 |
+
<span>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 -->
|
style.css
CHANGED
|
@@ -1,159 +1,95 @@
|
|
| 1 |
|
| 2 |
-
/*
|
| 3 |
-
@import url('https://fonts.googleapis.com/css2?family=
|
| 4 |
|
| 5 |
:root {
|
| 6 |
-
--
|
| 7 |
-
--
|
| 8 |
-
--
|
| 9 |
-
--
|
| 10 |
-
--
|
| 11 |
-
--
|
| 12 |
-
--
|
| 13 |
-
--
|
| 14 |
-
--
|
| 15 |
-
--
|
| 16 |
-
--
|
|
|
|
|
|
|
| 17 |
}
|
| 18 |
|
| 19 |
body {
|
| 20 |
font-family: 'Inter', sans-serif;
|
| 21 |
background: var(--dark-bg);
|
| 22 |
-
color:
|
| 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 |
-
/*
|
| 49 |
h1, h2, h3, h4, h5, h6 {
|
| 50 |
-
font-
|
| 51 |
-
|
| 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:
|
| 64 |
-
|
| 65 |
-
|
| 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(-
|
| 86 |
-
box-shadow: 0
|
|
|
|
| 87 |
}
|
| 88 |
-
|
| 89 |
/* Progress bars */
|
| 90 |
.w-full.bg-gray-200 {
|
| 91 |
background: rgba(255, 255, 255, 0.1) !important;
|
| 92 |
-
border-radius:
|
| 93 |
-
height:
|
| 94 |
}
|
| 95 |
|
| 96 |
.bg-blue-500, .bg-green-500, .bg-purple-500, .bg-red-500 {
|
| 97 |
-
border-radius:
|
| 98 |
-
height:
|
| 99 |
-
position: relative;
|
| 100 |
-
overflow: hidden;
|
| 101 |
}
|
| 102 |
|
| 103 |
-
.bg-blue-500 { background:
|
| 104 |
-
.bg-green-500 { background:
|
| 105 |
-
.bg-purple-500 { background:
|
| 106 |
-
.bg-red-500 { background:
|
| 107 |
-
|
| 108 |
/* Buttons */
|
| 109 |
button {
|
| 110 |
-
font-family: '
|
| 111 |
border: none !important;
|
| 112 |
-
border-radius:
|
| 113 |
-
|
| 114 |
-
|
| 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(-
|
| 138 |
-
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
| 139 |
}
|
| 140 |
-
|
| 141 |
/* Custom checkbox styles */
|
| 142 |
.workout-checkbox {
|
| 143 |
-
width:
|
| 144 |
-
height:
|
| 145 |
-
border: 2px solid var(--
|
| 146 |
-
border-radius:
|
| 147 |
cursor: pointer;
|
| 148 |
-
transition: all 0.
|
| 149 |
-
|
| 150 |
-
background: rgba(0, 217, 255, 0.1);
|
| 151 |
-
box-shadow: var(--glow-blue);
|
| 152 |
}
|
| 153 |
|
| 154 |
.workout-checkbox.checked {
|
| 155 |
-
background-color: var(--
|
| 156 |
-
border-color: var(--
|
| 157 |
}
|
| 158 |
|
| 159 |
.workout-checkbox.checked::after {
|
|
@@ -163,62 +99,44 @@ button:hover {
|
|
| 163 |
display: flex;
|
| 164 |
align-items: center;
|
| 165 |
justify-content: center;
|
| 166 |
-
font-size:
|
| 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.
|
| 173 |
border: 1px solid var(--dark-border);
|
| 174 |
-
border-radius:
|
| 175 |
-
transition: all 0.
|
| 176 |
}
|
| 177 |
|
| 178 |
.flex.items-center.p-3:hover {
|
| 179 |
-
background: rgba(255, 255, 255, 0.
|
| 180 |
-
border-color: var(--
|
| 181 |
-
transform: translateX(5px);
|
| 182 |
}
|
| 183 |
-
|
| 184 |
/* Progress stats */
|
| 185 |
.bg-gray-50 {
|
| 186 |
-
background: rgba(255, 255, 255, 0.
|
| 187 |
border: 1px solid var(--dark-border);
|
| 188 |
-
border-radius:
|
| 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:
|
| 206 |
}
|
| 207 |
|
| 208 |
/* Text enhancements */
|
| 209 |
.text-gray-800 {
|
| 210 |
-
color:
|
| 211 |
}
|
| 212 |
|
| 213 |
.text-gray-600 {
|
| 214 |
-
color:
|
| 215 |
}
|
| 216 |
|
| 217 |
-
.text-blue-600 { color: var(--
|
| 218 |
-
.text-green-600 { color: var(--
|
| 219 |
-
.text-purple-600 { color: var(--
|
| 220 |
-
.text-red-600 { color: var(--
|
| 221 |
-
|
| 222 |
/* Responsive adjustments */
|
| 223 |
@media (max-width: 768px) {
|
| 224 |
.container {
|
|
@@ -227,7 +145,7 @@ button:hover {
|
|
| 227 |
}
|
| 228 |
|
| 229 |
.grid {
|
| 230 |
-
gap:
|
| 231 |
}
|
| 232 |
|
| 233 |
h1 {
|
|
@@ -238,19 +156,9 @@ button:hover {
|
|
| 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:
|
| 254 |
}
|
| 255 |
|
| 256 |
::-webkit-scrollbar-track {
|
|
@@ -258,10 +166,10 @@ button:hover {
|
|
| 258 |
}
|
| 259 |
|
| 260 |
::-webkit-scrollbar-thumb {
|
| 261 |
-
background:
|
| 262 |
-
border-radius:
|
| 263 |
}
|
| 264 |
|
| 265 |
::-webkit-scrollbar-thumb:hover {
|
| 266 |
-
background:
|
| 267 |
}
|
|
|
|
| 1 |
|
| 2 |
+
/* Modern Dark Styles for LifeTracker Pro */
|
| 3 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 4 |
|
| 5 |
:root {
|
| 6 |
+
--dark-bg: #121212;
|
| 7 |
+
--dark-card: #1e1e1e;
|
| 8 |
+
--dark-border: #2d2d2d;
|
| 9 |
+
--primary-blue: #3b82f6;
|
| 10 |
+
--primary-green: #10b981;
|
| 11 |
+
--primary-purple: #8b5cf6;
|
| 12 |
+
--primary-red: #ef4444;
|
| 13 |
+
--text-primary: #ffffff;
|
| 14 |
+
--text-secondary: #a1a1aa;
|
| 15 |
+
--hover-blue: #2563eb;
|
| 16 |
+
--hover-green: #059669;
|
| 17 |
+
--hover-purple: #7c3aed;
|
| 18 |
+
--hover-red: #dc2626;
|
| 19 |
}
|
| 20 |
|
| 21 |
body {
|
| 22 |
font-family: 'Inter', sans-serif;
|
| 23 |
background: var(--dark-bg);
|
| 24 |
+
color: var(--text-primary);
|
| 25 |
min-height: 100vh;
|
| 26 |
overflow-x: hidden;
|
| 27 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
.container {
|
| 29 |
max-width: 1200px;
|
| 30 |
}
|
| 31 |
|
| 32 |
+
/* Modern typography */
|
| 33 |
h1, h2, h3, h4, h5, h6 {
|
| 34 |
+
font-weight: 600;
|
| 35 |
+
color: var(--text-primary);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
|
|
|
| 37 |
/* Activity cards */
|
| 38 |
.bg-white {
|
| 39 |
background: var(--dark-card) !important;
|
| 40 |
border: 1px solid var(--dark-border);
|
| 41 |
+
border-radius: 12px;
|
| 42 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 43 |
+
transition: all 0.2s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
}
|
| 45 |
|
| 46 |
.bg-white:hover {
|
| 47 |
+
transform: translateY(-2px);
|
| 48 |
+
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
|
| 49 |
+
border-color: var(--primary-blue);
|
| 50 |
}
|
|
|
|
| 51 |
/* Progress bars */
|
| 52 |
.w-full.bg-gray-200 {
|
| 53 |
background: rgba(255, 255, 255, 0.1) !important;
|
| 54 |
+
border-radius: 4px;
|
| 55 |
+
height: 4px;
|
| 56 |
}
|
| 57 |
|
| 58 |
.bg-blue-500, .bg-green-500, .bg-purple-500, .bg-red-500 {
|
| 59 |
+
border-radius: 4px;
|
| 60 |
+
height: 4px;
|
|
|
|
|
|
|
| 61 |
}
|
| 62 |
|
| 63 |
+
.bg-blue-500 { background: var(--primary-blue); }
|
| 64 |
+
.bg-green-500 { background: var(--primary-green); }
|
| 65 |
+
.bg-purple-500 { background: var(--primary-purple); }
|
| 66 |
+
.bg-red-500 { background: var(--primary-red); }
|
|
|
|
| 67 |
/* Buttons */
|
| 68 |
button {
|
| 69 |
+
font-family: 'Inter', sans-serif !important;
|
| 70 |
border: none !important;
|
| 71 |
+
border-radius: 8px !important;
|
| 72 |
+
font-weight: 500 !important;
|
| 73 |
+
transition: all 0.2s ease !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
button:hover {
|
| 77 |
+
transform: translateY(-1px);
|
|
|
|
| 78 |
}
|
|
|
|
| 79 |
/* Custom checkbox styles */
|
| 80 |
.workout-checkbox {
|
| 81 |
+
width: 20px;
|
| 82 |
+
height: 20px;
|
| 83 |
+
border: 2px solid var(--dark-border);
|
| 84 |
+
border-radius: 4px;
|
| 85 |
cursor: pointer;
|
| 86 |
+
transition: all 0.2s ease;
|
| 87 |
+
background: var(--dark-card);
|
|
|
|
|
|
|
| 88 |
}
|
| 89 |
|
| 90 |
.workout-checkbox.checked {
|
| 91 |
+
background-color: var(--primary-blue);
|
| 92 |
+
border-color: var(--primary-blue);
|
| 93 |
}
|
| 94 |
|
| 95 |
.workout-checkbox.checked::after {
|
|
|
|
| 99 |
display: flex;
|
| 100 |
align-items: center;
|
| 101 |
justify-content: center;
|
| 102 |
+
font-size: 12px;
|
|
|
|
| 103 |
}
|
|
|
|
| 104 |
/* Workout items */
|
| 105 |
.flex.items-center.p-3 {
|
| 106 |
+
background: rgba(255, 255, 255, 0.03) !important;
|
| 107 |
border: 1px solid var(--dark-border);
|
| 108 |
+
border-radius: 8px;
|
| 109 |
+
transition: all 0.2s ease;
|
| 110 |
}
|
| 111 |
|
| 112 |
.flex.items-center.p-3:hover {
|
| 113 |
+
background: rgba(255, 255, 255, 0.05) !important;
|
| 114 |
+
border-color: var(--primary-blue);
|
|
|
|
| 115 |
}
|
|
|
|
| 116 |
/* Progress stats */
|
| 117 |
.bg-gray-50 {
|
| 118 |
+
background: rgba(255, 255, 255, 0.03) !important;
|
| 119 |
border: 1px solid var(--dark-border);
|
| 120 |
+
border-radius: 8px;
|
| 121 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
/* Grid enhancements */
|
| 123 |
.grid {
|
| 124 |
+
gap: 1rem;
|
| 125 |
}
|
| 126 |
|
| 127 |
/* Text enhancements */
|
| 128 |
.text-gray-800 {
|
| 129 |
+
color: var(--text-primary) !important;
|
| 130 |
}
|
| 131 |
|
| 132 |
.text-gray-600 {
|
| 133 |
+
color: var(--text-secondary) !important;
|
| 134 |
}
|
| 135 |
|
| 136 |
+
.text-blue-600 { color: var(--primary-blue) !important; }
|
| 137 |
+
.text-green-600 { color: var(--primary-green) !important; }
|
| 138 |
+
.text-purple-600 { color: var(--primary-purple) !important; }
|
| 139 |
+
.text-red-600 { color: var(--primary-red) !important; }
|
|
|
|
| 140 |
/* Responsive adjustments */
|
| 141 |
@media (max-width: 768px) {
|
| 142 |
.container {
|
|
|
|
| 145 |
}
|
| 146 |
|
| 147 |
.grid {
|
| 148 |
+
gap: 0.75rem;
|
| 149 |
}
|
| 150 |
|
| 151 |
h1 {
|
|
|
|
| 156 |
font-size: 1.5rem !important;
|
| 157 |
}
|
| 158 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
/* Custom scrollbar */
|
| 160 |
::-webkit-scrollbar {
|
| 161 |
+
width: 6px;
|
| 162 |
}
|
| 163 |
|
| 164 |
::-webkit-scrollbar-track {
|
|
|
|
| 166 |
}
|
| 167 |
|
| 168 |
::-webkit-scrollbar-thumb {
|
| 169 |
+
background: var(--dark-border);
|
| 170 |
+
border-radius: 3px;
|
| 171 |
}
|
| 172 |
|
| 173 |
::-webkit-scrollbar-thumb:hover {
|
| 174 |
+
background: #3d3d3d;
|
| 175 |
}
|