diff --git a/PROGRESS.md b/PROGRESS.md index 1e8f105..519bea6 100644 --- a/PROGRESS.md +++ b/PROGRESS.md @@ -67,3 +67,4 @@ - Home hero cleaned up (removed sample/browse CTAs), hero FI text updated, and health check link moved to About page runtime section. - Listing creation form now supports editing all locales at once with language tabs, per-locale readiness badges, and an AI JSON helper to translate and apply copy across languages; API accepts multiple translations in one request. - Added Swedish locale support across the app, language selector is now a flag dropdown (FI/SV/EN), and the new listing form/AI helper handle all three languages. +- Site navbar now shows the new logo above the lomavuokraus.fi brand text on every page. diff --git a/app/components/NavBar.tsx b/app/components/NavBar.tsx index e3bf67e..1b14534 100644 --- a/app/components/NavBar.tsx +++ b/app/components/NavBar.tsx @@ -1,8 +1,10 @@ 'use client'; import Link from 'next/link'; +import Image from 'next/image'; import { useEffect, useState, type SVGProps } from 'react'; import { useI18n } from './I18nProvider'; +import logo from '../../img/logo.png'; type SessionUser = { id: string; email: string; role: string; status: string }; @@ -139,7 +141,8 @@ export default function NavBar() {
- {t('brand')} + Lomavuokraus.fi logo + {t('brand')} {t('navBrowse')} diff --git a/app/globals.css b/app/globals.css index db5bd49..fef21e5 100644 --- a/app/globals.css +++ b/app/globals.css @@ -24,6 +24,27 @@ body { min-height: 100vh; } +.brand { + display: inline-flex; + flex-direction: column; + align-items: center; + gap: 6px; + font-weight: 800; + font-size: 16px; + color: var(--text); + text-decoration: none; + line-height: 1.1; + transition: color 120ms ease; +} + +.brand:hover { + color: var(--accent); +} + +.brand-text { + text-align: center; +} + main { padding: 48px 20px 80px; max-width: 1100px;