diff --git a/public/images/wedding-bg.jpg b/public/images/wedding-bg.jpg new file mode 100644 index 0000000..64802dd Binary files /dev/null and b/public/images/wedding-bg.jpg differ diff --git a/src/assets/birds.png b/src/assets/birds.png new file mode 100644 index 0000000..cab5acd Binary files /dev/null and b/src/assets/birds.png differ diff --git a/src/assets/birds.webp b/src/assets/birds.webp new file mode 100644 index 0000000..fa8e966 Binary files /dev/null and b/src/assets/birds.webp differ diff --git a/src/components/GiftCard.astro b/src/components/GiftCard.astro deleted file mode 100644 index 475aa4d..0000000 --- a/src/components/GiftCard.astro +++ /dev/null @@ -1,39 +0,0 @@ ---- -interface Props { - code: string; - index: number; -} -const { code, index } = Astro.props; ---- - -
-
-

Gift code {index + 1}

-

{code}

-
- -
- - diff --git a/src/data/gift.json b/src/data/gift.json new file mode 100644 index 0000000..7a8ba14 --- /dev/null +++ b/src/data/gift.json @@ -0,0 +1,39 @@ +{ + "couple": { + "name1": "Elza", + "name2": "Ainārs", + "weddingDate": "2026.05.25" + }, + "heading": "With love, on your special day", + "message": "Wishing you a lifetime of joy, laughter, and adventure together. May your home be filled with warmth and your hearts with happiness. This small gift comes with all our love.", + "signature": "With love, from us", + "giftCards": [ + { + "id": 1, + "name": "IKEA Gift Card", + "description": "For your new home together", + "emoji": "🏑", + "url": "https://example.com/ikea-gift" + }, + { + "id": 2, + "name": "Booking.com", + "description": "Your first trip as a married couple", + "emoji": "✈️", + "url": "https://example.com/booking-gift" + }, + { + "id": 3, + "name": "Amazon Gift Card", + "description": "Whatever your hearts desire", + "emoji": "🎁", + "url": "https://example.com/amazon-gift" + } + ], + "payment": { + "label": "Or a little something extra", + "description": "Straight to you, with love", + "emoji": "πŸ’Έ", + "url": "https://revolut.me/example" + } +} diff --git a/src/data/gifts.json b/src/data/gifts.json deleted file mode 100644 index 4deeaf2..0000000 --- a/src/data/gifts.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "couple": { - "names": "Anna & Tomas", - "date": "July 19, 2025", - "from": "Armands" - }, - "store": { - "name": "ZARA Home", - "url": "https://www.zarahome.com", - "codes": [ - { "id": 1, "code": "GIFT-A1B2-C3D4" }, - { "id": 2, "code": "GIFT-E5F6-G7H8" }, - { "id": 3, "code": "GIFT-I9J0-K1L2" } - ] - }, - "payment": { - "label": "A little extra, with love", - "description": "If you'd prefer something personal, here's a direct contribution.", - "url": "https://revolut.me/example", - "buttonText": "Send via Revolut" - } -} diff --git a/src/env.d.ts b/src/env.d.ts deleted file mode 100644 index 9bc5cb4..0000000 --- a/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 69e91c9..333e555 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,99 +1,445 @@ --- -import GiftCard from "../components/GiftCard.astro"; -import gifts from "../data/gifts.json"; -import "../styles/global.css"; +import data from '../data/gift.json'; +const { couple, heading, message, signature, giftCards, payment } = data; -const { couple, store, payment } = gifts; +import { Image } from 'astro:assets'; +import birds from '../assets/birds.webp'; --- - + - - - - A gift for {couple.names} - - -