Spaces:
Sleeping
Sleeping
Update src/style.css
Browse files- src/style.css +38 -5
src/style.css
CHANGED
|
@@ -41,7 +41,7 @@ p, li {
|
|
| 41 |
100% { background-position: 0% 50%; }
|
| 42 |
}
|
| 43 |
|
| 44 |
-
/* === Cards === */
|
| 45 |
.stat-cards {
|
| 46 |
display: flex;
|
| 47 |
justify-content: space-between;
|
|
@@ -49,23 +49,55 @@ p, li {
|
|
| 49 |
margin: 2rem 0;
|
| 50 |
flex-wrap: wrap;
|
| 51 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
.stat-card {
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
| 55 |
background: linear-gradient(135deg, #f1fdf9, #ffffff);
|
| 56 |
padding: 1.5rem;
|
| 57 |
border-radius: 16px;
|
| 58 |
box-shadow: 0 6px 18px rgba(0,0,0,0.06);
|
| 59 |
text-align: center;
|
| 60 |
transition: transform 0.3s ease;
|
| 61 |
-
|
| 62 |
}
|
|
|
|
| 63 |
.stat-card:hover {
|
| 64 |
-
transform: scale(
|
| 65 |
}
|
|
|
|
| 66 |
.stat-icon {
|
| 67 |
font-size: 30px;
|
| 68 |
margin-bottom: 0.4rem;
|
|
|
|
| 69 |
}
|
| 70 |
.stat-label {
|
| 71 |
color: #666;
|
|
@@ -76,6 +108,7 @@ p, li {
|
|
| 76 |
font-weight: bold;
|
| 77 |
color: #004c97;
|
| 78 |
}
|
|
|
|
| 79 |
.stat-change {
|
| 80 |
font-size: 0.9rem;
|
| 81 |
font-weight: 500;
|
|
|
|
| 41 |
100% { background-position: 0% 50%; }
|
| 42 |
}
|
| 43 |
|
| 44 |
+
/* === Cards with Animated Border === */
|
| 45 |
.stat-cards {
|
| 46 |
display: flex;
|
| 47 |
justify-content: space-between;
|
|
|
|
| 49 |
margin: 2rem 0;
|
| 50 |
flex-wrap: wrap;
|
| 51 |
}
|
| 52 |
+
|
| 53 |
+
.card-container {
|
| 54 |
+
position: relative;
|
| 55 |
+
width: 100%;
|
| 56 |
+
max-width: 260px;
|
| 57 |
+
height: 240px;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
.card-background {
|
| 61 |
+
position: absolute;
|
| 62 |
+
top: -4px;
|
| 63 |
+
left: -4px;
|
| 64 |
+
width: calc(100% + 8px);
|
| 65 |
+
height: calc(100% + 8px);
|
| 66 |
+
background: linear-gradient(270deg, #36BA01, #004c97, #36BA01);
|
| 67 |
+
background-size: 400% 400%;
|
| 68 |
+
animation: gradientMove 5s ease infinite;
|
| 69 |
+
border-radius: 16px;
|
| 70 |
+
z-index: 0;
|
| 71 |
+
transition: transform 0.4s ease;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.card-background:hover {
|
| 75 |
+
transform: scale(1.07);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
.stat-card {
|
| 79 |
+
position: absolute;
|
| 80 |
+
top: 0;
|
| 81 |
+
left: 0;
|
| 82 |
+
width: 100%;
|
| 83 |
+
height: 100%;
|
| 84 |
background: linear-gradient(135deg, #f1fdf9, #ffffff);
|
| 85 |
padding: 1.5rem;
|
| 86 |
border-radius: 16px;
|
| 87 |
box-shadow: 0 6px 18px rgba(0,0,0,0.06);
|
| 88 |
text-align: center;
|
| 89 |
transition: transform 0.3s ease;
|
| 90 |
+
z-index: 1;
|
| 91 |
}
|
| 92 |
+
|
| 93 |
.stat-card:hover {
|
| 94 |
+
transform: scale(0.99);
|
| 95 |
}
|
| 96 |
+
|
| 97 |
.stat-icon {
|
| 98 |
font-size: 30px;
|
| 99 |
margin-bottom: 0.4rem;
|
| 100 |
+
color: #004c97;
|
| 101 |
}
|
| 102 |
.stat-label {
|
| 103 |
color: #666;
|
|
|
|
| 108 |
font-weight: bold;
|
| 109 |
color: #004c97;
|
| 110 |
}
|
| 111 |
+
|
| 112 |
.stat-change {
|
| 113 |
font-size: 0.9rem;
|
| 114 |
font-weight: 500;
|