Gift packages: buy a main package for someone, with a printable gift card
- /ajandek: the package, whom it is for and from whom, the recipient's address typed twice (or "I hand it over"), a message; paid on Stripe like any package, the invoice is the buyer's - On payment the gift gets its own code (not a promo code: it cannot be withdrawn, and it adds the whole package); redeemed on /bevaltas - The recipient's e-mail carries the message and the code, with the gift card attached as a PDF; the buyer's confirmation says it was a gift - /ajandekaim: codes, state, the card to download, sending it by e-mail (again, or to another address) up to three times - crates/gift-card draws the A4 card (example chart, questions avatar, QR code) as SVG and makes a PDF with krilla, fonts compiled in; the backend draws downloads on a blocking thread, the worker the e-mails - Telegram notices say "(ajándék)"; unpaid gifts go after a week Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -1511,3 +1511,73 @@ span.tarot-fan-card { cursor: default; }
|
||||
.sky-events li { grid-template-columns: 24px minmax(0, 1fr); }
|
||||
.sky-events li .num { grid-column: 2; }
|
||||
}
|
||||
|
||||
/* Gifts: the order form, "My gifts", the link on the package cards */
|
||||
.pkg-gift {
|
||||
align-self: center; display: inline-flex; align-items: center; min-height: 36px;
|
||||
font-size: 14px; color: var(--gold); text-decoration: none;
|
||||
}
|
||||
.pkg-gift:hover { color: var(--gold-hover); text-decoration: underline; }
|
||||
.gift-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; border-color: rgba(217, 180, 106, 0.35); }
|
||||
.gift-banner h2 { font-size: 24px; }
|
||||
.gift-banner p { margin: 6px 0 0; }
|
||||
.gift-banner .btn { flex: none; }
|
||||
.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; }
|
||||
.gift-sample img {
|
||||
width: 100%; max-width: 320px; height: auto; border-radius: 6px;
|
||||
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(217, 180, 106, 0.25);
|
||||
}
|
||||
.gift-how { gap: 10px; }
|
||||
.gift-how h2 { font-size: 22px; }
|
||||
.gift-how ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 14px; }
|
||||
.gift-how p { margin: 0; }
|
||||
.gift-form { gap: 22px; }
|
||||
.gift-set { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
||||
.gift-set legend { padding: 0; margin-bottom: 10px; }
|
||||
.gift-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
|
||||
.gift-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
||||
.gift-option {
|
||||
position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 14px 44px; cursor: pointer;
|
||||
border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel-2);
|
||||
}
|
||||
.gift-option:hover { border-color: #5a6790; }
|
||||
.gift-option.is-chosen { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
|
||||
.gift-option input { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
|
||||
.gift-option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
|
||||
.gift-option-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
|
||||
.gift-option-head strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
|
||||
.gift-packages .gift-option-head { flex-direction: column; align-items: flex-start; gap: 2px; }
|
||||
.gift-packages .gift-option-head .num { color: var(--gold); }
|
||||
.gift-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
|
||||
.gift-total { margin: 0; display: flex; flex-direction: column; gap: 2px; }
|
||||
.gift-total strong { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
|
||||
.gift-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
|
||||
.gift-item { gap: 14px; }
|
||||
.gift-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
|
||||
.gift-item-title { font-size: 24px; }
|
||||
.gift-item-for { font-style: italic; font-weight: 500; color: var(--gold); }
|
||||
.gift-code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
||||
.gift-code { font: 600 20px var(--font-body); letter-spacing: 1.5px; color: var(--ink); user-select: all; }
|
||||
.gift-to { margin: 0; color: var(--ink-2); }
|
||||
.gift-message {
|
||||
margin: 0; padding: 4px 0 4px 14px; border-left: 2px solid rgba(217, 180, 106, 0.5);
|
||||
font-family: var(--font-display); font-style: italic; font-size: 18px; color: var(--ink-2); white-space: pre-line;
|
||||
}
|
||||
.gift-send { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
|
||||
@media (max-width: 900px) {
|
||||
.gift-layout { grid-template-columns: 1fr; }
|
||||
.gift-aside { flex-direction: row; align-items: flex-start; }
|
||||
.gift-sample { flex: 0 0 180px; }
|
||||
.gift-how { flex: 1; }
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.gift-banner { flex-direction: column; align-items: stretch; }
|
||||
.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; }
|
||||
.gift-sample { flex: none; }
|
||||
.gift-sample img { max-width: 240px; }
|
||||
.gift-submit .btn { width: 100%; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user