i need complete redesign of bento cards style , this design is very simple, make it more beautiful, more original and more professional using latest tendencies
Browse files- index.html +45 -48
- script.js +13 -1
- style.css +68 -64
index.html
CHANGED
|
@@ -27,56 +27,53 @@
|
|
| 27 |
</div>
|
| 28 |
</section>
|
| 29 |
<div class="bento-grid">
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
</div>
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
</div>
|
| 47 |
-
</
|
| 48 |
-
</
|
| 49 |
-
|
| 50 |
-
<div class="bento-row">
|
| 51 |
-
<a href="/polarization.html" class="bento-card" style="background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);">
|
| 52 |
-
<div class="gradient-overlay"></div>
|
| 53 |
-
<div class="card-content">
|
| 54 |
-
<i data-feather="sun" class="card-icon"></i>
|
| 55 |
-
<h3>Polarization</h3>
|
| 56 |
-
<p>Advanced UV protection & privacy technology</p>
|
| 57 |
-
</div>
|
| 58 |
-
</a>
|
| 59 |
-
|
| 60 |
-
<a href="/carpet-care.html" class="bento-card" style="background: linear-gradient(135deg, #10B981 0%, #059669 100%);">
|
| 61 |
-
<div class="gradient-overlay"></div>
|
| 62 |
-
<div class="card-content">
|
| 63 |
-
<i data-feather="layers" class="card-icon"></i>
|
| 64 |
-
<h3>Carpet Care</h3>
|
| 65 |
-
<p>Deep clean with eco-friendly solutions</p>
|
| 66 |
-
</div>
|
| 67 |
-
</a>
|
| 68 |
-
|
| 69 |
-
<a href="/store.html" class="bento-card" style="background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);">
|
| 70 |
-
<div class="gradient-overlay"></div>
|
| 71 |
-
<div class="card-content">
|
| 72 |
-
<i data-feather="shopping-bag" class="card-icon"></i>
|
| 73 |
-
<h3>Store</h3>
|
| 74 |
-
<p>Premium car care products for professionals</p>
|
| 75 |
-
</div>
|
| 76 |
-
</a>
|
| 77 |
-
</div>
|
| 78 |
-
</div>
|
| 79 |
-
</main>
|
| 80 |
|
| 81 |
<custom-footer></custom-footer>
|
| 82 |
|
|
|
|
| 27 |
</div>
|
| 28 |
</section>
|
| 29 |
<div class="bento-grid">
|
| 30 |
+
<!-- Row 1 -->
|
| 31 |
+
<div class="bento-row">
|
| 32 |
+
<a href="/car-wash.html" class="bento-card bg-gradient-to-br from-blue-500 to-indigo-600">
|
| 33 |
+
<div class="card-content">
|
| 34 |
+
<i data-feather="droplet" class="card-icon"></i>
|
| 35 |
+
<h3>Car Wash</h3>
|
| 36 |
+
<p>Spotless exterior cleaning</p>
|
| 37 |
+
</div>
|
| 38 |
+
</a>
|
| 39 |
+
|
| 40 |
+
<a href="/detailing.html" class="bento-card bg-gradient-to-br from-purple-500 to-pink-500">
|
| 41 |
+
<div class="card-content">
|
| 42 |
+
<i data-feather="star" class="card-icon"></i>
|
| 43 |
+
<h3>Detailing</h3>
|
| 44 |
+
<p>Showroom perfection</p>
|
| 45 |
+
</div>
|
| 46 |
+
</a>
|
| 47 |
</div>
|
| 48 |
+
|
| 49 |
+
<!-- Row 2 -->
|
| 50 |
+
<div class="bento-row">
|
| 51 |
+
<a href="/polarization.html" class="bento-card bg-gradient-to-br from-amber-500 to-orange-500">
|
| 52 |
+
<div class="card-content">
|
| 53 |
+
<i data-feather="sun" class="card-icon"></i>
|
| 54 |
+
<h3>Polarization</h3>
|
| 55 |
+
<p>UV protection & privacy</p>
|
| 56 |
+
</div>
|
| 57 |
+
</a>
|
| 58 |
+
|
| 59 |
+
<a href="/carpet-care.html" class="bento-card bg-gradient-to-br from-emerald-500 to-teal-600">
|
| 60 |
+
<div class="card-content">
|
| 61 |
+
<i data-feather="layers" class="card-icon"></i>
|
| 62 |
+
<h3>Carpet Care</h3>
|
| 63 |
+
<p>Deep clean interior fabrics</p>
|
| 64 |
+
</div>
|
| 65 |
+
</a>
|
| 66 |
+
|
| 67 |
+
<a href="/store.html" class="bento-card bg-gradient-to-br from-rose-500 to-red-500">
|
| 68 |
+
<div class="card-content">
|
| 69 |
+
<i data-feather="shopping-bag" class="card-icon"></i>
|
| 70 |
+
<h3>Store</h3>
|
| 71 |
+
<p>Premium car care products</p>
|
| 72 |
+
</div>
|
| 73 |
+
</a>
|
| 74 |
</div>
|
| 75 |
+
</div>
|
| 76 |
+
</main>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
<custom-footer></custom-footer>
|
| 79 |
|
script.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
// Advanced UI Interactions
|
| 3 |
document.addEventListener('DOMContentLoaded', () => {
|
| 4 |
// Animate elements on scroll
|
|
@@ -31,7 +43,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 31 |
tooltipTriggerList.map(function (tooltipTriggerEl) {
|
| 32 |
return new bootstrap.Tooltip(tooltipTriggerEl);
|
| 33 |
});
|
| 34 |
-
|
| 35 |
console.log('SparkleMatic Auto Elegance loaded');
|
| 36 |
});
|
| 37 |
|
|
|
|
| 1 |
|
| 2 |
+
// Add particles to bento cards
|
| 3 |
+
function addParticlesToCards() {
|
| 4 |
+
const cards = document.querySelectorAll('.bento-card');
|
| 5 |
+
cards.forEach(card => {
|
| 6 |
+
for (let i = 0; i < 4; i++) {
|
| 7 |
+
const particle = document.createElement('div');
|
| 8 |
+
particle.classList.add('particle');
|
| 9 |
+
card.appendChild(particle);
|
| 10 |
+
}
|
| 11 |
+
});
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
// Advanced UI Interactions
|
| 15 |
document.addEventListener('DOMContentLoaded', () => {
|
| 16 |
// Animate elements on scroll
|
|
|
|
| 43 |
tooltipTriggerList.map(function (tooltipTriggerEl) {
|
| 44 |
return new bootstrap.Tooltip(tooltipTriggerEl);
|
| 45 |
});
|
| 46 |
+
addParticlesToCards();
|
| 47 |
console.log('SparkleMatic Auto Elegance loaded');
|
| 48 |
});
|
| 49 |
|
style.css
CHANGED
|
@@ -59,92 +59,100 @@ h1, h2, h3, h4, h5 {
|
|
| 59 |
transform: scale(1.05);
|
| 60 |
}
|
| 61 |
.bento-grid {
|
| 62 |
-
max-width:
|
| 63 |
-
margin:
|
| 64 |
padding: 0 2rem;
|
| 65 |
-
perspective: 1000px;
|
| 66 |
-
}
|
| 67 |
-
|
| 68 |
-
.bento-row {
|
| 69 |
display: grid;
|
| 70 |
-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
| 71 |
gap: 1.5rem;
|
| 72 |
-
|
|
|
|
| 73 |
}
|
| 74 |
|
| 75 |
.bento-card {
|
| 76 |
position: relative;
|
| 77 |
-
border-radius:
|
| 78 |
padding: 2.5rem;
|
| 79 |
-
min-height: 280px;
|
| 80 |
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
| 81 |
overflow: hidden;
|
| 82 |
display: flex;
|
| 83 |
flex-direction: column;
|
| 84 |
-
justify-content:
|
| 85 |
-
box-shadow: 0
|
|
|
|
| 86 |
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 87 |
-
text-decoration: none;
|
| 88 |
-
background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
|
| 89 |
backdrop-filter: blur(16px);
|
| 90 |
-
|
|
|
|
| 91 |
}
|
| 92 |
|
| 93 |
.bento-card::before {
|
| 94 |
content: '';
|
| 95 |
position: absolute;
|
| 96 |
inset: 0;
|
| 97 |
-
background: linear-gradient(135deg, rgba(255,255,255,0.
|
| 98 |
-
z-index: -1;
|
| 99 |
-
opacity: 0;
|
| 100 |
-
transition: opacity 0.4s ease;
|
| 101 |
-
}
|
| 102 |
-
|
| 103 |
-
.bento-card::after {
|
| 104 |
-
content: '';
|
| 105 |
-
position: absolute;
|
| 106 |
-
inset: 0;
|
| 107 |
-
background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.3), transparent 70%);
|
| 108 |
z-index: -1;
|
| 109 |
opacity: 0;
|
| 110 |
transition: opacity 0.4s ease;
|
| 111 |
}
|
| 112 |
|
| 113 |
.bento-card:hover {
|
| 114 |
-
transform: translateY(-8px)
|
| 115 |
-
box-shadow: 0
|
| 116 |
-
border-color: rgba(255, 255, 255, 0.2);
|
| 117 |
}
|
| 118 |
|
| 119 |
-
.bento-card:hover::before
|
| 120 |
-
.bento-card:hover::after {
|
| 121 |
opacity: 1;
|
| 122 |
}
|
| 123 |
|
| 124 |
-
.bento-card:
|
| 125 |
grid-column: span 2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
}
|
| 127 |
|
| 128 |
.bento-card:nth-child(4) {
|
| 129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
}
|
| 131 |
|
| 132 |
.card-content {
|
| 133 |
position: relative;
|
| 134 |
z-index: 2;
|
| 135 |
color: white;
|
| 136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
}
|
| 138 |
|
| 139 |
.card-content h3 {
|
| 140 |
font-size: 1.75rem;
|
| 141 |
font-weight: 700;
|
| 142 |
margin-bottom: 0.75rem;
|
| 143 |
-
|
|
|
|
| 144 |
-webkit-background-clip: text;
|
| 145 |
-
background-clip: text;
|
| 146 |
-webkit-text-fill-color: transparent;
|
| 147 |
-
text-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
| 148 |
}
|
| 149 |
|
| 150 |
.card-content p {
|
|
@@ -152,49 +160,45 @@ h1, h2, h3, h4, h5 {
|
|
| 152 |
line-height: 1.6;
|
| 153 |
opacity: 0.9;
|
| 154 |
margin-bottom: 1.5rem;
|
| 155 |
-
font-weight: 300;
|
| 156 |
-
}
|
| 157 |
-
|
| 158 |
-
.card-icon {
|
| 159 |
-
width: 56px;
|
| 160 |
-
height: 56px;
|
| 161 |
-
margin-bottom: 1.5rem;
|
| 162 |
-
stroke-width: 1.5;
|
| 163 |
-
filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
|
| 164 |
-
transition: transform 0.4s ease;
|
| 165 |
-
}
|
| 166 |
-
|
| 167 |
-
.bento-card:hover .card-icon {
|
| 168 |
-
transform: scale(1.1) rotate(5deg);
|
| 169 |
}
|
| 170 |
|
| 171 |
-
.bento-card .
|
| 172 |
position: absolute;
|
| 173 |
top: 0;
|
| 174 |
left: 0;
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
background: linear-gradient(135deg, rgba(
|
| 178 |
-
z-index:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
}
|
| 180 |
|
| 181 |
@media (max-width: 1024px) {
|
| 182 |
-
.bento-
|
| 183 |
-
grid-
|
| 184 |
}
|
| 185 |
|
| 186 |
-
.bento-card:nth-child(
|
| 187 |
-
grid-
|
| 188 |
}
|
| 189 |
}
|
| 190 |
|
| 191 |
@media (max-width: 768px) {
|
| 192 |
-
.bento-
|
| 193 |
grid-template-columns: 1fr;
|
| 194 |
}
|
| 195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
.bento-card {
|
| 197 |
-
|
| 198 |
}
|
| 199 |
|
| 200 |
.card-content h3 {
|
|
@@ -202,7 +206,7 @@ h1, h2, h3, h4, h5 {
|
|
| 202 |
}
|
| 203 |
|
| 204 |
.card-icon {
|
| 205 |
-
width:
|
| 206 |
-
height:
|
| 207 |
}
|
| 208 |
}
|
|
|
|
| 59 |
transform: scale(1.05);
|
| 60 |
}
|
| 61 |
.bento-grid {
|
| 62 |
+
max-width: 1200px;
|
| 63 |
+
margin: 6rem auto;
|
| 64 |
padding: 0 2rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
display: grid;
|
|
|
|
| 66 |
gap: 1.5rem;
|
| 67 |
+
grid-template-columns: repeat(3, 1fr);
|
| 68 |
+
grid-auto-rows: minmax(200px, auto);
|
| 69 |
}
|
| 70 |
|
| 71 |
.bento-card {
|
| 72 |
position: relative;
|
| 73 |
+
border-radius: 1.5rem;
|
| 74 |
padding: 2.5rem;
|
|
|
|
| 75 |
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
| 76 |
overflow: hidden;
|
| 77 |
display: flex;
|
| 78 |
flex-direction: column;
|
| 79 |
+
justify-content: space-between;
|
| 80 |
+
box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.3);
|
| 81 |
+
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
|
| 82 |
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
|
|
|
|
|
| 83 |
backdrop-filter: blur(16px);
|
| 84 |
+
text-decoration: none;
|
| 85 |
+
z-index: 1;
|
| 86 |
}
|
| 87 |
|
| 88 |
.bento-card::before {
|
| 89 |
content: '';
|
| 90 |
position: absolute;
|
| 91 |
inset: 0;
|
| 92 |
+
background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
z-index: -1;
|
| 94 |
opacity: 0;
|
| 95 |
transition: opacity 0.4s ease;
|
| 96 |
}
|
| 97 |
|
| 98 |
.bento-card:hover {
|
| 99 |
+
transform: translateY(-8px) scale(1.02);
|
| 100 |
+
box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.4);
|
|
|
|
| 101 |
}
|
| 102 |
|
| 103 |
+
.bento-card:hover::before {
|
|
|
|
| 104 |
opacity: 1;
|
| 105 |
}
|
| 106 |
|
| 107 |
+
.bento-card:nth-child(1) {
|
| 108 |
grid-column: span 2;
|
| 109 |
+
grid-row: span 1;
|
| 110 |
+
background: linear-gradient(135deg, rgba(59, 113, 254, 0.2) 0%, rgba(123, 97, 255, 0.2) 100%);
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
.bento-card:nth-child(2) {
|
| 114 |
+
background: linear-gradient(135deg, rgba(167, 51, 255, 0.2) 0%, rgba(255, 92, 177, 0.2) 100%);
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.bento-card:nth-child(3) {
|
| 118 |
+
background: linear-gradient(135deg, rgba(251, 146, 60, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
|
| 119 |
}
|
| 120 |
|
| 121 |
.bento-card:nth-child(4) {
|
| 122 |
+
background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
.bento-card:nth-child(5) {
|
| 126 |
+
background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
|
| 127 |
}
|
| 128 |
|
| 129 |
.card-content {
|
| 130 |
position: relative;
|
| 131 |
z-index: 2;
|
| 132 |
color: white;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
.card-icon {
|
| 136 |
+
width: 64px;
|
| 137 |
+
height: 64px;
|
| 138 |
+
margin-bottom: 1.5rem;
|
| 139 |
+
stroke-width: 1.5;
|
| 140 |
+
filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
|
| 141 |
+
transition: transform 0.4s ease;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
.bento-card:hover .card-icon {
|
| 145 |
+
transform: scale(1.1) rotate(5deg);
|
| 146 |
}
|
| 147 |
|
| 148 |
.card-content h3 {
|
| 149 |
font-size: 1.75rem;
|
| 150 |
font-weight: 700;
|
| 151 |
margin-bottom: 0.75rem;
|
| 152 |
+
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
| 153 |
+
background: linear-gradient(90deg, white, rgba(255,255,255,0.8));
|
| 154 |
-webkit-background-clip: text;
|
|
|
|
| 155 |
-webkit-text-fill-color: transparent;
|
|
|
|
| 156 |
}
|
| 157 |
|
| 158 |
.card-content p {
|
|
|
|
| 160 |
line-height: 1.6;
|
| 161 |
opacity: 0.9;
|
| 162 |
margin-bottom: 1.5rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
}
|
| 164 |
|
| 165 |
+
.bento-card .shine {
|
| 166 |
position: absolute;
|
| 167 |
top: 0;
|
| 168 |
left: 0;
|
| 169 |
+
right: 0;
|
| 170 |
+
bottom: 0;
|
| 171 |
+
background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
|
| 172 |
+
z-index: 0;
|
| 173 |
+
opacity: 0;
|
| 174 |
+
transition: opacity 0.4s ease;
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
.bento-card:hover .shine {
|
| 178 |
+
opacity: 1;
|
| 179 |
}
|
| 180 |
|
| 181 |
@media (max-width: 1024px) {
|
| 182 |
+
.bento-grid {
|
| 183 |
+
grid-template-columns: repeat(2, 1fr);
|
| 184 |
}
|
| 185 |
|
| 186 |
+
.bento-card:nth-child(1) {
|
| 187 |
+
grid-column: span 2;
|
| 188 |
}
|
| 189 |
}
|
| 190 |
|
| 191 |
@media (max-width: 768px) {
|
| 192 |
+
.bento-grid {
|
| 193 |
grid-template-columns: 1fr;
|
| 194 |
}
|
| 195 |
|
| 196 |
+
.bento-card:nth-child(1) {
|
| 197 |
+
grid-column: span 1;
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
.bento-card {
|
| 201 |
+
padding: 2rem;
|
| 202 |
}
|
| 203 |
|
| 204 |
.card-content h3 {
|
|
|
|
| 206 |
}
|
| 207 |
|
| 208 |
.card-icon {
|
| 209 |
+
width: 56px;
|
| 210 |
+
height: 56px;
|
| 211 |
}
|
| 212 |
}
|