From 0f7f7cb5451fd998cc37b11e46b0538da7e2f9e6 Mon Sep 17 00:00:00 2001 From: Carlo Scaglione Date: Mon, 18 May 2026 19:38:08 +0200 Subject: [PATCH] Creazione pagina per vedere tutte le recensioni, aggiunto il pulsante per vedere la pagina e aggiunto il css del pulsante. Da scegliere il testo per il pulsante, migliorare il suo css, creare lo script per vedere le recensioni --- src/lib/content/defaults.ts | 1 + src/routes/+page.svelte | 3 +++ src/routes/recensioni/+page.svelte | 0 src/site.css | 25 +++++++++++++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 src/routes/recensioni/+page.svelte diff --git a/src/lib/content/defaults.ts b/src/lib/content/defaults.ts index 94ee472..be41bcc 100644 --- a/src/lib/content/defaults.ts +++ b/src/lib/content/defaults.ts @@ -125,6 +125,7 @@ export const DEFAULT_SLOTS: CopySlot[] = [ { id: 'testi.kicker', section: 'Testimonials', label: 'Kicker', kind: 'inline', value: 'Cosa dicono di me' }, { id: 'testi.title', section: 'Testimonials', label: 'Title', kind: 'inline', value: 'I miei ospiti parlano.' }, { id: 'testi.sub', section: 'Testimonials', label: 'Subtitle', kind: 'inline', value: 'Non solo clienti — una vera famiglia pelosa.' }, + { id: 'testo.btn', section: 'Testimonials', label: 'Button', kind: 'inline', value: 'TEST RECENSIONI' }, { id: 'contact.headline', section: 'Contact', label: 'Headline', kind: 'inline', value: 'Affida il tuo cane a chi lo vive davvero.' }, { id: 'contact.form_title', section: 'Contact', label: 'Form — title', kind: 'inline', value: 'Scrivimi ora' }, diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 04f04b7..7bb7abf 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -304,6 +304,9 @@ {/each} + diff --git a/src/routes/recensioni/+page.svelte b/src/routes/recensioni/+page.svelte new file mode 100644 index 0000000..e69de29 diff --git a/src/site.css b/src/site.css index 4db8479..6f6137e 100644 --- a/src/site.css +++ b/src/site.css @@ -353,6 +353,31 @@ font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; } +.btn-review-link{ + display: flex; + width: 100%; + justify-content: center; +} + +.btn-all-review { + display: inline-flex; + justify-content: center; + align-items: center; + text-align: center; + gap: 8px; + margin-top: 15px; + width: 180px; + background: var(--navy); color: #fff; + padding: 18px 36px; font-weight: 700; font-size: 13px; + text-transform: uppercase; letter-spacing: 0.06em; + border-radius: 9999px; + transition: opacity 0.2s, transform 0.15s; +} +.btn-all-review:hover { + opacity: 0.88; + transform: translateY(-1px); +} + /* ===== CONTACT ===== */ .contact-section { padding: 96px 0; background: #fff; } .contact-headline { text-align: center; margin-bottom: 56px; }