A Christmas tree in the packages page gift box

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-24 16:04:36 +00:00
co-authored by Claude Opus 5.5
parent 382bd31271
commit 2d1373edd6
3 changed files with 50 additions and 1 deletions
+3 -1
View File
@@ -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() {
<PackageCards packages={packages} canPay={canPay} giftLinks />
<section className="card gift-banner" aria-labelledby="gift-title">
<div>
{xmas && <ChristmasTree />}
<div className="gift-banner-text">
<h2 id="gift-title">{xmas ? "Karácsonyi ajándék a csillagokból" : "Ajándékba is adhatod"}</h2>
<p className="muted">
A három fő csomag bármelyikét megveheted másnak: e-mailben elküldjük neki egy nyomtatható utalvánnyal, vagy
+3
View File
@@ -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; }