2 커밋

작성자 SHA1 메시지 날짜
  hasziq f790879779 Replace storefront with latest design, product colours and mobile banners 2 일 전
  hasziq aecaf59f89 Add ADUCKTIVE storefront with enhanced products and responsive campaign banners 2 일 전

+ 7
- 0
.gitignore 파일 보기

@@ -3,3 +3,10 @@ dist/
3 3
 test-results/
4 4
 playwright-report/
5 5
 .DS_Store
6
+
7
+# Local credentials and environment files
8
+.env
9
+.env.*
10
+!.env.example
11
+*.pem
12
+*.key

BIN
public/campaigns/emart-update.webp 파일 보기


BIN
public/campaigns/family-pack.jpg 파일 보기


BIN
public/campaigns/new-banner.webp 파일 보기


BIN
public/campaigns/oh-some.jpg 파일 보기


BIN
public/campaigns/pandamart-fiesta.png 파일 보기


BIN
public/campaigns/rosyam-mart.webp 파일 보기


+ 8
- 2
src/CampaignCarousel.tsx 파일 보기

@@ -7,6 +7,12 @@ const campaigns = [
7 7
   { title: "Find us at selected AEON stores", src: "/campaigns/aeon.webp", alt: "ADUCKTIVE campaign announcing availability at selected AEON stores, with the duck mascot and snack range. Open the full banner to read the listed locations." },
8 8
   { title: "Get your crunch at emart24", src: "/campaigns/emart24.webp", alt: "ADUCKTIVE original and spicy salted egg cornflakes mini packs. Get your salted egg snacks at emart24." },
9 9
   { title: "Bold flavours. Taste adventure.", src: "/campaigns/bold-flavours.jpg", alt: "ADUCKTIVE snack range: bold flavours, savoury snacks, taste adventure. Cornflakes, rolls and mushroom crisps pictured with their product information." },
10
+  { title: "Snack happiness every day", src: "/campaigns/new-banner.webp", alt: "A family sharing ADUCKTIVE snacks together. Snack happiness every day." },
11
+  { title: "Bold flavours at OH!SOME", src: "/campaigns/oh-some.jpg", alt: "ADUCKTIVE tempeh chips, mushroom crisps and cornflakes. Now available at OH!SOME." },
12
+  { title: "Family pack. Dua pilihan, satu keceriaan.", src: "/campaigns/family-pack.jpg", alt: "ADUCKTIVE original and spicy salted egg cornflakes family packs. Open the full banner for promotional details." },
13
+  { title: "Office snack fiesta with pandamart", src: "/campaigns/pandamart-fiesta.png", alt: "Lapar kat office? ADUCKTIVE snacks on pandamart. Open the full banner for promotional details." },
14
+  { title: "More salted egg favourites at emart24", src: "/campaigns/emart-update.webp", alt: "ADUCKTIVE spicy and original salted egg cornflakes mini packs at emart24." },
15
+  { title: "Find us at ST Rosyam Mart", src: "/campaigns/rosyam-mart.webp", alt: "ADUCKTIVE snacks now available at ST Rosyam Mart. Open the full banner to read the listed locations." },
10 16
 ];
11 17
 
12 18
 export function CampaignCarousel({ children }: { children: ReactNode }) {
@@ -27,8 +33,8 @@ export function CampaignCarousel({ children }: { children: ReactNode }) {
27 33
       onTouchStart={event => { const point = event.touches[0]; touch.current = { x: point.clientX, y: point.clientY }; }}
28 34
       onTouchCancel={() => { touch.current = null; }}
29 35
       onTouchEnd={event => { if (!touch.current) return; const point = event.changedTouches[0]; const dx = point.clientX - touch.current.x; const dy = point.clientY - touch.current.y; touch.current = null; if (Math.abs(dx) > 55 && Math.abs(dx) > Math.abs(dy) * 1.5) move(dx < 0 ? 1 : -1); }}>
30
-      <div className="campaign-slide campaign-original" role="group" aria-roledescription="slide" aria-label="1 of 5: Your snack-time manifesto" hidden={active !== 0}>{children}</div>
31
-      {campaigns.slice(1).map((campaign, index) => <div className="campaign-slide campaign-image-slide" role="group" aria-roledescription="slide" aria-label={`${index + 2} of 5: ${campaign.title}`} key={campaign.src} hidden={active !== index + 1}>
36
+      <div className="campaign-slide campaign-original" role="group" aria-roledescription="slide" aria-label={`1 of ${campaigns.length}: Your snack-time manifesto`} hidden={active !== 0}>{children}<div className="campaign-original-footer">A little crunch. A lot of main character.</div></div>
37
+      {campaigns.slice(1).map((campaign, index) => <div className="campaign-slide campaign-image-slide" role="group" aria-roledescription="slide" aria-label={`${index + 2} of ${campaigns.length}: ${campaign.title}`} key={campaign.src} hidden={active !== index + 1}>
32 38
         <img src={campaign.src} alt={campaign.alt} width={1920} height={1080} loading="lazy"/>
33 39
         <a className="campaign-full-image" href={campaign.src} target="_blank" rel="noreferrer">View full banner <ExternalLink size={14}/></a>
34 40
       </div>)}

+ 73
- 2
src/bold.css 파일 보기

@@ -241,11 +241,34 @@ summary:focus-visible,
241 241
 .tone-3 {
242 242
   background: #f6cbd3;
243 243
 }
244
+/* Catalogue grades: preserve packaging whites on every coloured card. */
245
+.product-picture {
246
+  --catalogue-brightness: 1.03;
247
+  --catalogue-contrast: 1.06;
248
+  --catalogue-saturation: 1.10;
249
+}
250
+.product-picture[data-category="Cornflakes"] {
251
+  --catalogue-contrast: 1.07;
252
+  --catalogue-saturation: 1.12;
253
+}
254
+.product-picture[data-category="Mushroom crisps"] {
255
+  --catalogue-brightness: 1.02;
256
+}
257
+.product-picture[data-category="Tempeh chips"] {
258
+  --catalogue-brightness: 1.04;
259
+  --catalogue-contrast: 1.08;
260
+  --catalogue-saturation: 1.13;
261
+}
244 262
 .product-picture img {
245
-  mix-blend-mode: multiply;
263
+  mix-blend-mode: normal;
264
+  filter: brightness(var(--catalogue-brightness))
265
+    contrast(var(--catalogue-contrast))
266
+    saturate(var(--catalogue-saturation));
246 267
 }
268
+/* Lifestyle hover photos need a gentler grade to retain natural highlights. */
247 269
 .product-picture .secondary-image {
248 270
   mix-blend-mode: normal;
271
+  filter: brightness(1.02) contrast(1.04) saturate(1.08);
249 272
 }
250 273
 .product-meta {
251 274
   font-size: 11px;
@@ -682,9 +705,18 @@ summary:focus-visible,
682 705
   object-fit: contain;
683 706
   position: relative;
684 707
   transform: rotate(-10deg) scale(1.13) translateY(12px);
685
-  mix-blend-mode: multiply;
708
+  /* Keep pale packaging clean instead of tinting it with the card background. */
709
+  mix-blend-mode: normal;
710
+  filter: brightness(var(--pack-brightness, 1.03))
711
+    contrast(var(--pack-contrast, 1.06))
712
+    saturate(var(--pack-saturation, 1.12))
713
+    drop-shadow(0 10px 8px rgb(83 35 18 / 12%));
686 714
   transition: transform 0.4s;
687 715
 }
716
+/* Individual grades preserve the red jar, golden pouch and cream tempeh pack. */
717
+.cornflake .flavour-art { --pack-brightness: 1.03; --pack-contrast: 1.07; --pack-saturation: 1.12; }
718
+.mushroom .flavour-art { --pack-brightness: 1.02; --pack-contrast: 1.06; --pack-saturation: 1.10; }
719
+.tempeh .flavour-art { --pack-brightness: 1.04; --pack-contrast: 1.08; --pack-saturation: 1.13; }
688 720
 .mushroom .flavour-art img {
689 721
   transform: rotate(9deg) scale(1.06) translateY(12px);
690 722
 }
@@ -3366,3 +3398,42 @@ summary:focus-visible,
3366 3398
 @keyframes campaign-appear { from { opacity:.45; } to { opacity:1; } }
3367 3399
 @media(max-width:767px) { .campaign-controls { flex-direction:column; align-items:flex-start; padding:18px 20px; gap:10px; }.campaign-navigation { width:100%; justify-content:space-between; gap:12px; }.campaign-caption .eyebrow { font-size:8px; }.campaign-caption p { font-size:12px; }.campaign-navigation > button { width:40px; height:40px; }.campaign-dots button { width:32px; }.campaign-full-image { padding:12px 20px; font-size:10px; } }
3368 3400
 @media(prefers-reduced-motion:reduce) { .campaign-slide:not([hidden]) { animation:none; } }
3401
+
3402
+/* Keep every mobile campaign in the same landscape frame. */
3403
+.campaign-original-footer { display: none; }
3404
+@media (max-width: 767px) {
3405
+  .campaign-carousel { container-type: inline-size; }
3406
+  .campaign-caption { min-height: 48px; }
3407
+  .campaign-navigation { gap: 8px; }
3408
+  .campaign-navigation > button { flex-shrink: 0; }
3409
+  .campaign-dots { flex: 1; justify-content: center; flex-wrap: wrap; }
3410
+  .campaign-dots button { width: 28px; height: 32px; }
3411
+  .campaign-original .snack-manifesto {
3412
+    aspect-ratio: 16 / 9;
3413
+    height: auto;
3414
+    min-height: 0;
3415
+    padding: 5cqw 19cqw 3cqw;
3416
+    --snapshot-drift: 0px !important;
3417
+    --snapshot-turn: 0deg !important;
3418
+  }
3419
+  .campaign-original .snack-manifesto > .eyebrow {
3420
+    font-size: 1.45cqw; padding: 1cqw 2cqw; margin-bottom: 3cqw;
3421
+    white-space: nowrap;
3422
+  }
3423
+  .campaign-original .snack-manifesto h2 { font-size: 6.2cqw; line-height: 1.1; }
3424
+  .campaign-original .manifesto-photo { width: 10cqw; height: 5cqw; margin: 0 1cqw; border-width: 1px; }
3425
+  .campaign-original .snack-manifesto > p:last-of-type { font-size: 1.9cqw; line-height: 1.6; margin-top: 3cqw; }
3426
+  .campaign-original .manifesto-snapshots { position: absolute; inset: 0; height: auto; max-width: none; margin: 0; pointer-events: none; }
3427
+  .campaign-original .manifesto-snapshot { width: 17cqw; padding: 1cqw 1cqw 0; box-shadow: 1cqw 1.5cqw 0 #a9242714; }
3428
+  .campaign-original .snapshot-left { left: 3%; top: 28%; }
3429
+  .campaign-original .snapshot-right { right: 3%; top: 35%; }
3430
+  .campaign-original .manifesto-snapshot span { font-size: 1cqw; padding: 1.5cqw 0; }
3431
+  .campaign-original .manifesto-seal { right: 5%; top: 15%; width: 10cqw; height: 10cqw; font-size: 2.4cqw; outline-width: 2px; }
3432
+  .campaign-original .manifesto-seal em { font-size: 1.5cqw; }
3433
+  .campaign-original .snack-manifesto .manifesto-sparkle { left: 7%; top: 14%; width: 3.5cqw; height: 3.5cqw; }
3434
+  .campaign-original .manifesto-heart { right: 23%; bottom: 10%; width: 3cqw; height: 3cqw; }
3435
+  .campaign-original .manifesto-orbit { inset: 3cqw 10%; }
3436
+  .campaign-original .manifesto-orbit::after { inset: 2cqw -4cqw; }
3437
+  .campaign-original-footer, .campaign-full-image { min-height: 44px; box-sizing: border-box; }
3438
+  .campaign-original-footer { display: flex; align-items: center; justify-content: flex-end; padding: 12px 20px; font-size: 10px; }
3439
+}

+ 1
- 1
src/components.tsx 파일 보기

@@ -264,7 +264,7 @@ export function ProductCard({ product: p }: { product: Product }) {
264 264
   const { add, wishlist, toggleWish } = useStore();
265 265
   return (
266 266
     <article className="product-card">
267
-      <div className={`product-picture tone-${p.id % 4}`}>
267
+      <div className={`product-picture tone-${p.id % 4}`} data-category={p.category}>
268 268
         <Link
269 269
           className="product-image-link"
270 270
           href={"/product/" + p.slug}

Loading…
취소
저장