Polish home hero and move health link

This commit is contained in:
Tero Halla-aho 2025-11-27 23:09:14 +02:00
parent 780b471e36
commit 74331c1409
4 changed files with 9 additions and 15 deletions

View file

@ -64,3 +64,4 @@
- Added About and Pricing pages (FI/EN), moved highlights/runtime config to About, and linked footer navigation. - Added About and Pricing pages (FI/EN), moved highlights/runtime config to About, and linked footer navigation.
- Availability calendars: listings can store iCal URLs, merged into a combined availability calendar on detail pages; availability filtering added to search along with amenity filters; new migration `20251127_calendar_urls`. - Availability calendars: listings can store iCal URLs, merged into a combined availability calendar on detail pages; availability filtering added to search along with amenity filters; new migration `20251127_calendar_urls`.
- Browse amenity filters now show the same icons as listing detail; image `registry.halla-aho.net/thalla/lomavuokraus-web:e95d9e0` built/pushed and rolled out to staging. - Browse amenity filters now show the same icons as listing detail; image `registry.halla-aho.net/thalla/lomavuokraus-web:e95d9e0` built/pushed and rolled out to staging.
- Home hero cleaned up (removed sample/browse CTAs), hero FI text updated, and health check link moved to About page runtime section.

View file

@ -52,6 +52,11 @@ export default function AboutPage() {
<strong>Version</strong> <code>{appVersion}</code> <strong>Version</strong> <code>{appVersion}</code>
</span> </span>
</div> </div>
<div style={{ marginTop: 12 }}>
<a className="button secondary" href="/api/health" target="_blank" rel="noreferrer">
{t('ctaHealth')}
</a>
</div>
</section> </section>
</main> </main>
); );

View file

@ -1,9 +1,8 @@
'use client'; 'use client';
import Link from 'next/link';
import { SAMPLE_LISTING_SLUG } from '../lib/sampleListing';
import { useI18n } from './components/I18nProvider';
import { useEffect, useMemo, useState } from 'react'; import { useEffect, useMemo, useState } from 'react';
import Link from 'next/link';
import { useI18n } from './components/I18nProvider';
type LatestListing = { type LatestListing = {
id: string; id: string;
@ -59,17 +58,6 @@ export default function HomePage() {
<span className="eyebrow">{t('heroEyebrow')}</span> <span className="eyebrow">{t('heroEyebrow')}</span>
<h1>{t('heroTitle')}</h1> <h1>{t('heroTitle')}</h1>
<p>{t('heroBody')}</p> <p>{t('heroBody')}</p>
<div className="cta-row">
<Link className="button" href={`/listings/${SAMPLE_LISTING_SLUG}`}>
{t('ctaViewSample')}
</Link>
<Link className="button secondary" href="/listings">
{t('ctaBrowse')}
</Link>
<a className="button secondary" href="/api/health" target="_blank" rel="noreferrer">
{t('ctaHealth')}
</a>
</div>
</section> </section>
<section className="panel latest-panel"> <section className="panel latest-panel">

View file

@ -263,7 +263,7 @@ const allMessages = {
approvalsBadge: '{count}', approvalsBadge: '{count}',
heroEyebrow: 'lomavuokraus.fi', heroEyebrow: 'lomavuokraus.fi',
heroTitle: 'Löydä seuraava mökkilomasi', heroTitle: 'Löydä seuraava mökkilomasi',
heroBody: 'Nopea, moderni vuokramökkipalvelu. Rakennettu Next.js App Routerilla ja valmiina Kubernetes-ympäristöön.', heroBody: 'Selaa suomalaisten mökkien, huoneistojen ja villojen ilmoituksia suoraan omistajilta. Jokainen ilmoitus tarkistetaan ennen julkaisua, ja otat vuokranantajaan yhteyttä suoraan — yksinkertaista ja läpinäkyvää.',
ctaViewSample: 'Katso esimerkkikohde', ctaViewSample: 'Katso esimerkkikohde',
ctaHealth: 'Tarkista health-päätepiste', ctaHealth: 'Tarkista health-päätepiste',
ctaBrowse: 'Selaa kohteita', ctaBrowse: 'Selaa kohteita',