Skip to content

Commit af1a66e

Browse files
committed
feat: changing the only the ui of the Merch page (#1314)
1 parent 01ac4b9 commit af1a66e

7 files changed

Lines changed: 218 additions & 156 deletions

File tree

src/components/merch/FilterBar.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,18 @@
7171
}
7272

7373
.category-button.active {
74-
background: linear-gradient(135deg, #667eea 0%, #5b47d6 100%);
75-
border-color: #667eea;
74+
background: var(--ifm-color-primary);
75+
border-color: var(--ifm-color-primary);
7676
color: #ffffff !important;
7777
font-weight: 600;
78-
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
78+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
7979
}
8080

8181
.category-button.active:hover {
82-
background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%);
83-
border-color: #818cf8;
82+
background: var(--ifm-color-primary-dark);
83+
border-color: var(--ifm-color-primary-dark);
8484
transform: translateX(4px);
85-
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
85+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
8686
}
8787

8888
.category-icon {
@@ -124,9 +124,9 @@
124124

125125
.sort-select:focus {
126126
outline: none;
127-
border-color: #667eea;
127+
border-color: var(--ifm-color-primary);
128128
background-color: #ffffff;
129-
box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 2px 8px rgba(102, 126, 234, 0.2);
129+
box-shadow: 0 0 0 4px rgba(46, 133, 85, 0.15), 0 2px 8px rgba(46, 133, 85, 0.2);
130130
}
131131

132132
/* Responsive Design */

src/components/merch/FilterBar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { Filter, SlidersHorizontal } from "lucide-react";
2+
import { Filter, SlidersHorizontal, ShoppingBag, Shirt, Component, Backpack } from "lucide-react";
33
import "./FilterBar.css";
44

55
interface FilterBarProps {
@@ -10,10 +10,10 @@ interface FilterBarProps {
1010
}
1111

1212
const categories = [
13-
{ id: "all", label: "All Products", icon: "🛍️" },
14-
{ id: "t-shirts", label: "T-Shirts", icon: "👕" },
15-
{ id: "hoodies", label: "Hoodies", icon: "🧥" },
16-
{ id: "accessories", label: "Accessories", icon: "🎒" },
13+
{ id: "all", label: "All Products", icon: <ShoppingBag size={18} /> },
14+
{ id: "t-shirts", label: "T-Shirts", icon: <Shirt size={18} /> },
15+
{ id: "hoodies", label: "Hoodies", icon: <Component size={18} /> },
16+
{ id: "accessories", label: "Accessories", icon: <Backpack size={18} /> },
1717
];
1818

1919
const sortOptions = [

src/components/merch/ProductCard.css

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
.product-card:hover {
1616
transform: translateY(-4px);
17-
box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
18-
border-color: rgba(102, 126, 234, 0.3);
17+
box-shadow: 0 12px 24px rgba(46, 133, 85, 0.15);
18+
border-color: rgba(46, 133, 85, 0.3);
1919
}
2020

2121
/* Image Section */
@@ -70,13 +70,13 @@
7070
justify-content: center;
7171
cursor: pointer;
7272
transition: all 0.2s ease;
73-
color: #667eea;
74-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
73+
color: var(--ifm-color-primary);
74+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
7575
}
7676

7777
.overlay-button:hover {
7878
transform: scale(1.1);
79-
background: linear-gradient(135deg, #667eea 0%, #06b6d4 100%);
79+
background: var(--ifm-color-primary);
8080
color: white;
8181
}
8282

@@ -114,7 +114,7 @@
114114
position: absolute;
115115
top: 12px;
116116
left: 12px;
117-
background: linear-gradient(135deg, #667eea 0%, #5b47d6 100%);
117+
background: var(--ifm-color-primary);
118118
color: white;
119119
padding: 4px 10px;
120120
border-radius: 6px;
@@ -123,7 +123,7 @@
123123
text-transform: uppercase;
124124
letter-spacing: 0.5px;
125125
z-index: 3;
126-
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
126+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
127127
}
128128

129129
/* Content Section */
@@ -206,7 +206,7 @@
206206
display: flex;
207207
align-items: baseline;
208208
font-weight: 700;
209-
color: #5b47d6;
209+
color: var(--ifm-font-color-base);
210210
}
211211

212212
.price-currency {
@@ -223,7 +223,7 @@
223223
justify-content: center;
224224
gap: 0.5rem;
225225
padding: 0.625rem 1rem;
226-
background: linear-gradient(135deg, #667eea 0%, #5b47d6 100%);
226+
background: var(--ifm-color-primary);
227227
color: white;
228228
border: none;
229229
border-radius: 8px;
@@ -232,13 +232,13 @@
232232
cursor: pointer;
233233
transition: all 0.2s ease;
234234
white-space: nowrap;
235-
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
235+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
236236
}
237237

238238
.product-card-button:hover {
239-
background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%);
239+
background: var(--ifm-color-primary-dark);
240240
transform: translateY(-1px);
241-
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
241+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
242242
}
243243

244244
.product-card-button:active {

src/components/merch/ProductImageViewer.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
}
103103

104104
.control-button {
105-
background: linear-gradient(135deg, #667eea 0%, #5b47d6 100%);
105+
background: var(--ifm-color-primary);
106106
border: none;
107107
color: white;
108108
border-radius: 8px;
@@ -114,13 +114,13 @@
114114
justify-content: center;
115115
min-width: 44px;
116116
height: 44px;
117-
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
117+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
118118
}
119119

120120
.control-button:hover:not(:disabled) {
121-
background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%);
121+
background: var(--ifm-color-primary-dark);
122122
transform: translateY(-1px);
123-
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
123+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
124124
}
125125

126126
.control-button:active:not(:disabled) {

src/components/merch/ShoppingCart.css

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,20 @@
108108

109109
.cart-continue-button {
110110
padding: 0.75rem 1.5rem;
111-
background: linear-gradient(135deg, #667eea 0%, #5b47d6 100%);
111+
background: var(--ifm-color-primary);
112112
color: white;
113113
border: none;
114114
border-radius: 8px;
115115
font-weight: 600;
116116
cursor: pointer;
117117
transition: all 0.2s ease;
118-
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
118+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
119119
}
120120

121121
.cart-continue-button:hover {
122-
background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%);
122+
background: var(--ifm-color-primary-dark);
123123
transform: translateY(-1px);
124-
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
124+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
125125
}
126126

127127
/* Cart Items */
@@ -175,7 +175,7 @@
175175
.cart-item-price {
176176
font-size: 0.875rem;
177177
font-weight: 700;
178-
color: #5b47d6;
178+
color: var(--ifm-font-color-base);
179179
margin: 0;
180180
}
181181

@@ -211,7 +211,7 @@
211211
}
212212

213213
.quantity-controls button:hover:not(:disabled) {
214-
background: linear-gradient(135deg, #667eea 0%, #5b47d6 100%);
214+
background: var(--ifm-color-primary);
215215
color: white;
216216
}
217217

@@ -300,14 +300,14 @@
300300
border-top: 2px solid var(--ifm-color-emphasis-200);
301301
font-size: 1.125rem;
302302
font-weight: 700;
303-
color: #5b47d6;
303+
color: var(--ifm-font-color-base);
304304
}
305305

306306
/* Checkout Button */
307307
.cart-checkout-button {
308308
width: 100%;
309309
padding: 1rem;
310-
background: linear-gradient(135deg, #667eea 0%, #5b47d6 100%);
310+
background: var(--ifm-color-primary);
311311
color: white;
312312
border: none;
313313
border-radius: 8px;
@@ -320,13 +320,13 @@
320320
gap: 0.5rem;
321321
transition: all 0.2s ease;
322322
margin-bottom: 0.75rem;
323-
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
323+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
324324
}
325325

326326
.cart-checkout-button:hover {
327-
background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%);
327+
background: var(--ifm-color-primary-dark);
328328
transform: translateY(-1px);
329-
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
329+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
330330
}
331331

332332
.cart-checkout-button:active {

0 commit comments

Comments
 (0)