From 2d1373edd6bc55cf6dabf371fb22153cb3c72c0a Mon Sep 17 00:00:00 2001 From: feco Date: Tue, 24 Nov 2026 16:04:36 +0000 Subject: [PATCH] A Christmas tree in the packages page gift box Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL --- services/frontend/src/app/csomagok/page.tsx | 4 +- services/frontend/src/app/globals.css | 3 ++ .../frontend/src/components/ChristmasTree.tsx | 44 +++++++++++++++++++ 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 services/frontend/src/components/ChristmasTree.tsx diff --git a/services/frontend/src/app/csomagok/page.tsx b/services/frontend/src/app/csomagok/page.tsx index 417f6fe..2f26f79 100644 --- a/services/frontend/src/app/csomagok/page.tsx +++ b/services/frontend/src/app/csomagok/page.tsx @@ -6,6 +6,7 @@ import { PackageCards } from "@/components/PackageCards"; import { RedeemCode } from "@/components/RedeemCode"; import { payMethod } from "@/lib/payments"; import { isChristmasTime } from "@/lib/season"; +import { ChristmasTree } from "@/components/ChristmasTree"; import { backendGet, requireMe } from "@/lib/server"; import type { Package, PublicConfig } from "@/lib/types"; @@ -101,7 +102,8 @@ export default async function PackagesPage() {
-
+ {xmas && } +

{xmas ? "Karácsonyi ajándék a csillagokból" : "Ajándékba is adhatod"}

A három fő csomag bármelyikét megveheted másnak: e-mailben elküldjük neki egy nyomtatható utalvánnyal, vagy diff --git a/services/frontend/src/app/globals.css b/services/frontend/src/app/globals.css index 8cd377c..ff02edc 100644 --- a/services/frontend/src/app/globals.css +++ b/services/frontend/src/app/globals.css @@ -1534,6 +1534,8 @@ span.tarot-fan-card { cursor: default; } .gift-banner h2 { font-size: 24px; } .gift-banner p { margin: 6px 0 0; } .gift-banner .btn { flex: none; } +.gift-banner-text { flex: 1; } +.gift-banner .xmas-tree { flex: none; filter: drop-shadow(0 0 10px rgba(217, 180, 106, 0.25)); } .gift-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; } .gift-aside { display: flex; flex-direction: column; gap: 16px; } .gift-sample { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; } @@ -1586,6 +1588,7 @@ span.tarot-fan-card { cursor: default; } } @media (max-width: 640px) { .gift-banner { flex-direction: column; align-items: stretch; } + .gift-banner .xmas-tree { align-self: center; } .gift-packages, .gift-ways { grid-template-columns: 1fr; } .gift-packages .gift-option-head { flex-direction: row; align-items: baseline; justify-content: space-between; } .gift-aside { flex-direction: column; } diff --git a/services/frontend/src/components/ChristmasTree.tsx b/services/frontend/src/components/ChristmasTree.tsx new file mode 100644 index 0000000..c2bfe72 --- /dev/null +++ b/services/frontend/src/components/ChristmasTree.tsx @@ -0,0 +1,44 @@ +/** A Christmas tree in the site's gold line style, with a star on top. */ +export function ChristmasTree({ size = 64 }: { size?: number }) { + return ( + + ); +}