make it in the white and purple type of theme
Browse files- components/air-quality-card.js +12 -12
- style.css +17 -18
components/air-quality-card.js
CHANGED
|
@@ -9,10 +9,10 @@ class AirQualityCard extends HTMLElement {
|
|
| 9 |
background: var(--card-bg);
|
| 10 |
border-radius: 16px;
|
| 11 |
padding: 1.5rem;
|
| 12 |
-
box-shadow: 0 0 30px rgba(
|
| 13 |
border: 1px solid var(--primary);
|
| 14 |
backdrop-filter: blur(10px);
|
| 15 |
-
color: var(--primary);
|
| 16 |
font-family: 'Poppins', sans-serif;
|
| 17 |
position: relative;
|
| 18 |
overflow: hidden;
|
|
@@ -24,7 +24,7 @@ class AirQualityCard extends HTMLElement {
|
|
| 24 |
left: -50%;
|
| 25 |
width: 200%;
|
| 26 |
height: 200%;
|
| 27 |
-
background: radial-gradient(circle, rgba(
|
| 28 |
animation: rotate 20s linear infinite;
|
| 29 |
z-index: -1;
|
| 30 |
}
|
|
@@ -38,10 +38,10 @@ animation: rotate 20s linear infinite;
|
|
| 38 |
font-size: 1.5rem;
|
| 39 |
font-weight: 700;
|
| 40 |
margin-bottom: 1.5rem;
|
| 41 |
-
color: var(--primary);
|
| 42 |
display: flex;
|
| 43 |
align-items: center;
|
| 44 |
-
text-shadow: 0 0 10px rgba(
|
| 45 |
}
|
| 46 |
|
| 47 |
.card-title i {
|
|
@@ -59,19 +59,19 @@ animation: rotate 20s linear infinite;
|
|
| 59 |
background: rgba(0, 0, 0, 0.4);
|
| 60 |
border-radius: 12px;
|
| 61 |
padding: 1rem;
|
| 62 |
-
border: 1px solid rgba(
|
| 63 |
-
box-shadow: 0 0 15px rgba(
|
| 64 |
transition: all 0.3s ease;
|
| 65 |
}
|
| 66 |
|
| 67 |
.metric:hover {
|
| 68 |
transform: translateY(-5px);
|
| 69 |
-
box-shadow: 0 0 25px rgba(
|
| 70 |
}
|
| 71 |
|
| 72 |
.metric-title {
|
| 73 |
font-size: 0.9rem;
|
| 74 |
-
color: rgba(
|
| 75 |
margin-bottom: 0.5rem;
|
| 76 |
text-transform: uppercase;
|
| 77 |
letter-spacing: 1px;
|
|
@@ -93,7 +93,7 @@ margin-bottom: 0.5rem;
|
|
| 93 |
font-size: 1.8rem;
|
| 94 |
font-weight: 700;
|
| 95 |
color: white;
|
| 96 |
-
text-shadow: 0 0 10px rgba(
|
| 97 |
}
|
| 98 |
|
| 99 |
.metric-subtext {
|
|
@@ -116,9 +116,9 @@ margin-top: 0.5rem;
|
|
| 116 |
border-radius: 4px 4px 0 0;
|
| 117 |
transition: height 1s ease-out;
|
| 118 |
}
|
| 119 |
-
.co2-gauge { background: linear-gradient(to top, var(--success),
|
| 120 |
.smoke-gauge { background: linear-gradient(to top, var(--warning), var(--danger)); }
|
| 121 |
-
.aqi-gauge { background: linear-gradient(to top, #
|
| 122 |
.gauge-markers {
|
| 123 |
position: absolute;
|
| 124 |
bottom: 0;
|
|
|
|
| 9 |
background: var(--card-bg);
|
| 10 |
border-radius: 16px;
|
| 11 |
padding: 1.5rem;
|
| 12 |
+
box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
|
| 13 |
border: 1px solid var(--primary);
|
| 14 |
backdrop-filter: blur(10px);
|
| 15 |
+
color: var(--primary-dark);
|
| 16 |
font-family: 'Poppins', sans-serif;
|
| 17 |
position: relative;
|
| 18 |
overflow: hidden;
|
|
|
|
| 24 |
left: -50%;
|
| 25 |
width: 200%;
|
| 26 |
height: 200%;
|
| 27 |
+
background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
|
| 28 |
animation: rotate 20s linear infinite;
|
| 29 |
z-index: -1;
|
| 30 |
}
|
|
|
|
| 38 |
font-size: 1.5rem;
|
| 39 |
font-weight: 700;
|
| 40 |
margin-bottom: 1.5rem;
|
| 41 |
+
color: var(--primary-dark);
|
| 42 |
display: flex;
|
| 43 |
align-items: center;
|
| 44 |
+
text-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
|
| 45 |
}
|
| 46 |
|
| 47 |
.card-title i {
|
|
|
|
| 59 |
background: rgba(0, 0, 0, 0.4);
|
| 60 |
border-radius: 12px;
|
| 61 |
padding: 1rem;
|
| 62 |
+
border: 1px solid rgba(139, 92, 246, 0.2);
|
| 63 |
+
box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
|
| 64 |
transition: all 0.3s ease;
|
| 65 |
}
|
| 66 |
|
| 67 |
.metric:hover {
|
| 68 |
transform: translateY(-5px);
|
| 69 |
+
box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
|
| 70 |
}
|
| 71 |
|
| 72 |
.metric-title {
|
| 73 |
font-size: 0.9rem;
|
| 74 |
+
color: rgba(139, 92, 246, 0.8);
|
| 75 |
margin-bottom: 0.5rem;
|
| 76 |
text-transform: uppercase;
|
| 77 |
letter-spacing: 1px;
|
|
|
|
| 93 |
font-size: 1.8rem;
|
| 94 |
font-weight: 700;
|
| 95 |
color: white;
|
| 96 |
+
text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
|
| 97 |
}
|
| 98 |
|
| 99 |
.metric-subtext {
|
|
|
|
| 116 |
border-radius: 4px 4px 0 0;
|
| 117 |
transition: height 1s ease-out;
|
| 118 |
}
|
| 119 |
+
.co2-gauge { background: linear-gradient(to top, var(--success), #8b5cf6); }
|
| 120 |
.smoke-gauge { background: linear-gradient(to top, var(--warning), var(--danger)); }
|
| 121 |
+
.aqi-gauge { background: linear-gradient(to top, #a78bfa, var(--primary)); }
|
| 122 |
.gauge-markers {
|
| 123 |
position: absolute;
|
| 124 |
bottom: 0;
|
style.css
CHANGED
|
@@ -1,35 +1,35 @@
|
|
| 1 |
|
| 2 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
|
| 3 |
:root {
|
| 4 |
-
--primary: #
|
| 5 |
-
--primary-dark: #
|
| 6 |
-
--secondary: #
|
| 7 |
-
--danger: #
|
| 8 |
-
--warning: #
|
| 9 |
-
--success: #
|
| 10 |
-
--dark: #
|
| 11 |
-
--light: #
|
| 12 |
-
--muted: #
|
| 13 |
-
--card-bg: rgba(
|
| 14 |
-
--card-border: rgba(
|
| 15 |
}
|
| 16 |
|
| 17 |
body {
|
| 18 |
font-family: 'Poppins', sans-serif;
|
| 19 |
-
background: linear-gradient(135deg, #
|
| 20 |
min-height: 100vh;
|
| 21 |
-
color: #
|
| 22 |
}
|
| 23 |
.glass-card {
|
| 24 |
background: var(--card-bg);
|
| 25 |
backdrop-filter: blur(10px);
|
| 26 |
-webkit-backdrop-filter: blur(10px);
|
| 27 |
-
box-shadow: 0 4px 30px 0 rgba(
|
| 28 |
transition: all 0.3s ease;
|
| 29 |
border: 1px solid var(--card-border);
|
| 30 |
}
|
| 31 |
.glass-card:hover {
|
| 32 |
-
box-shadow: 0 8px 40px 0 rgba(
|
| 33 |
transform: translateY(-2px);
|
| 34 |
}
|
| 35 |
.led {
|
|
@@ -148,9 +148,8 @@ body {
|
|
| 148 |
::-webkit-scrollbar-track {
|
| 149 |
background: rgba(0, 0, 0, 0.1);
|
| 150 |
}
|
| 151 |
-
|
| 152 |
::-webkit-scrollbar-thumb {
|
| 153 |
-
background: rgba(
|
| 154 |
border-radius: 4px;
|
| 155 |
}
|
| 156 |
|
|
@@ -169,6 +168,6 @@ body {
|
|
| 169 |
|
| 170 |
/* Glow effects */
|
| 171 |
.glow-primary {
|
| 172 |
-
box-shadow: 0 0 15px rgba(
|
| 173 |
}
|
| 174 |
.g
|
|
|
|
| 1 |
|
| 2 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
|
| 3 |
:root {
|
| 4 |
+
--primary: #8b5cf6;
|
| 5 |
+
--primary-dark: #7c3aed;
|
| 6 |
+
--secondary: #d946ef;
|
| 7 |
+
--danger: #ef4444;
|
| 8 |
+
--warning: #f59e0b;
|
| 9 |
+
--success: #10b981;
|
| 10 |
+
--dark: #111827;
|
| 11 |
+
--light: #f9fafb;
|
| 12 |
+
--muted: #6b7280;
|
| 13 |
+
--card-bg: rgba(255, 255, 255, 0.9);
|
| 14 |
+
--card-border: rgba(139, 92, 246, 0.3);
|
| 15 |
}
|
| 16 |
|
| 17 |
body {
|
| 18 |
font-family: 'Poppins', sans-serif;
|
| 19 |
+
background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
|
| 20 |
min-height: 100vh;
|
| 21 |
+
color: #111827;
|
| 22 |
}
|
| 23 |
.glass-card {
|
| 24 |
background: var(--card-bg);
|
| 25 |
backdrop-filter: blur(10px);
|
| 26 |
-webkit-backdrop-filter: blur(10px);
|
| 27 |
+
box-shadow: 0 4px 30px 0 rgba(139, 92, 246, 0.1);
|
| 28 |
transition: all 0.3s ease;
|
| 29 |
border: 1px solid var(--card-border);
|
| 30 |
}
|
| 31 |
.glass-card:hover {
|
| 32 |
+
box-shadow: 0 8px 40px 0 rgba(139, 92, 246, 0.2);
|
| 33 |
transform: translateY(-2px);
|
| 34 |
}
|
| 35 |
.led {
|
|
|
|
| 148 |
::-webkit-scrollbar-track {
|
| 149 |
background: rgba(0, 0, 0, 0.1);
|
| 150 |
}
|
|
|
|
| 151 |
::-webkit-scrollbar-thumb {
|
| 152 |
+
background: rgba(139, 92, 246, 0.4);
|
| 153 |
border-radius: 4px;
|
| 154 |
}
|
| 155 |
|
|
|
|
| 168 |
|
| 169 |
/* Glow effects */
|
| 170 |
.glow-primary {
|
| 171 |
+
box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
|
| 172 |
}
|
| 173 |
.g
|