diff --git a/PROGRESS.md b/PROGRESS.md index fc7206d..258d7b4 100644 --- a/PROGRESS.md +++ b/PROGRESS.md @@ -40,6 +40,7 @@ - Home page shows a rolling feed of latest listings; navbar + CTA link to browse. - Listing creation form captures address details, coordinates, amenities (incl. EV/AC), and cover image choice. - Documentation moved to `docs/`; PlantUML diagrams rendered to SVG and embedded in docs pages (draw.io sources kept for architecture/infra). +- UI polish: navbar buttons gained icons, consistent button sizing, and form fields restyled for alignment. - HTTPS redirect middleware applied to staging/prod ingress. - FI/EN localization with navbar language toggle; UI strings translated; Approvals link shows pending count badge. - Soft rejection/removal states for users/listings with timestamps; owner listing removal; login redirects home; listing visibility hides removed/not-published. diff --git a/app/components/NavBar.tsx b/app/components/NavBar.tsx index c9e0dd4..7778682 100644 --- a/app/components/NavBar.tsx +++ b/app/components/NavBar.tsx @@ -6,6 +6,78 @@ import { useI18n } from './I18nProvider'; type SessionUser = { id: string; email: string; role: string; status: string }; +function Icon({ name }: { name: string }) { + const common = { width: 16, height: 16, stroke: 'currentColor', fill: 'none', strokeWidth: 1.6, strokeLinecap: 'round', strokeLinejoin: 'round' }; + switch (name) { + case 'profile': + return ( + + + + + ); + case 'list': + return ( + + + + + + + + + ); + case 'plus': + return ( + + + + + ); + case 'logout': + return ( + + + + + + ); + case 'login': + return ( + + + + + + ); + case 'users': + return ( + + + + + + + ); + case 'check': + return ( + + + + ); + case 'globe': + return ( + + + + + + ); + default: + return null; + } +} + export default function NavBar() { const { t, locale, setLocale } = useI18n(); const [user, setUser] = useState(null); @@ -62,7 +134,7 @@ export default function NavBar() { {t('brand')} - {t('navBrowse')} + {t('navBrowse')}