Skip to content

Commit ed9b560

Browse files
(SP: 1) [Frontend] Fix styles shop home page, buttons (#191)
1 parent 272951e commit ed9b560

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

frontend/app/[locale]/shop/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default async function HomePage({
9797
<div className="mt-8">
9898
<Link
9999
href="/shop/products"
100-
className="inline-flex items-center gap-2 rounded-md bg-accent px-6 py-3 text-sm font-semibold uppercase tracking-wide text-accent-foreground transition-colors hover:bg-accent/90"
100+
className="inline-flex items-center gap-2 rounded-md bg-[color:var(--shop-cta-bg)] px-6 py-3 text-sm font-semibold uppercase tracking-wide text-[color:var(--shop-cta-fg)] transition-opacity hover:opacity-90"
101101
aria-label="Browse all products"
102102
>
103103
Browse all products

frontend/app/globals.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,13 @@
203203
--color-ring: var(--foreground);
204204

205205
--card: var(--background);
206+
/* CTA button: light theme (section is black) -> pink bg + white text */
207+
--shop-cta-bg: #ff2d55;
208+
--shop-cta-fg: oklch(0.985 0 0);
209+
206210
}
207211

212+
208213
.dark .shop-scope {
209214
/* dark: shop accent = magenta */
210215
--accent: var(--accent-primary);
@@ -221,6 +226,10 @@
221226
/* keep borders closer to previous shop look, derived (no hex) */
222227
--border: color-mix(in oklab, var(--foreground) 18%, var(--background));
223228
--input: color-mix(in oklab, var(--foreground) 18%, var(--background));
229+
/* CTA button: dark theme (section becomes white) -> black bg + white text */
230+
--shop-cta-bg: var(--background);
231+
--shop-cta-fg: var(--foreground);
232+
224233
}
225234

226235
/* about-community */

frontend/components/shop/shop-hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function Hero({ headline, subheadline, ctaText, ctaLink }: HeroProps) {
2828
<div className="mt-10">
2929
<Link
3030
href={ctaLink}
31-
className="inline-flex items-center gap-2 rounded-md bg-foreground px-6 py-3 text-sm font-semibold uppercase tracking-wide text-background transition-colors hover:bg-foreground/90"
31+
className="inline-flex items-center gap-2 rounded-md bg-foreground px-6 py-3 text-sm font-semibold uppercase tracking-wide text-background transition-colors hover:bg-foreground/90 dark:bg-[color:var(--accent-primary)] dark:hover:bg-[color:var(--accent-hover)] dark:text-[color:var(--foreground)]"
3232
>
3333
<span>{ctaText}</span>
3434
<span aria-hidden="true"></span>

0 commit comments

Comments
 (0)