Commit Graph

31 Commits

Author SHA1 Message Date
Jeffrey
15c3194eb6 refactor: codebase audit — remove orphaned blocks, unify design tokens
- Delete 5 orphaned blocks: ArchiveBlock, CallToAction, Content, Form, RelatedPosts
  - Remove Form import from RenderBlocks
  - Delete Media-BACKUP.txt
  - Extract fdCardRadius, fdCardRadiusSm to fdTheme — adopted across 15 blocks
  - Extract fdContainer to fdTheme — adopted across 29 blocks
  - Add fdSepiaOverlay, fd-sepia CSS token — replaces hardcoded #8B7D3C
  - Replace #153350 with via-fd-navy-700 in navyGradient
  - Replace #e2e8f0 with fd-gray-light in calculator blocks
2026-03-13 13:22:16 +01:00
Jeffrey
f673837c18 perf: lighthouse fixes — remove Geist fonts, optimize popup image, fix hydration, CSP, SEO 2026-03-03 11:58:08 +01:00
Jeffrey
e05cacb37c feat: PostSettings global, fix stale migrations, shadow tokens 2026-03-02 16:02:38 +01:00
Jeffrey
707f76291e fixed the white box with shadow, shadow styling on several blocks 2026-03-02 15:33:21 +01:00
Jeffrey
5090c0f743 fix: FAQ answer alignment + font size, ServicesGrid button 2026-03-02 10:45:08 +01:00
Jeffrey
89f6ab505d feat: mobile typography overhaul + layout fixes
Typography:
- Raise all fd-* token minimums in globals.css for larger mobile text
  (fd-h1: 28→40px, fd-h2: 22→32px, fd-h3: 18→22px, body-lg: 15→18px, body: 14→16px)
- Strip all text-[x] sm:text-fd-* overrides from 25 block components
  — tokens now handle full range, no block-level hacks
- Change RichText enableGutter default to false — fixes rich text
  indenting in FAQ, TextBlock, posts, and form confirmations

Layout fixes (mobile):
- FDContactBlock: 3-column grid on all screen sizes
- FDHeroBlock: full-width buttons on mobile
- FDServicesGridBlock: px-3 padding on description text under images
- FDWideCardBlock: image now padded inside card, object-contain,
  no longer bleeds edge-to-edge
- FDCtaSideImageBlock: consistent mobile order (heading → image →
  body → button) regardless of imagePosition setting; extra mt-4
  between body and button on mobile
- FDTestimonialBlock: quote text sizes migrated to fd-h3/fd-body-lg tokens
2026-02-26 10:32:23 +01:00
Jeffrey
68d6e68cba updated todo with instructions to implement english EN 2026-02-24 15:24:30 +01:00
Jeffrey
f48b60bb5d feat: i18n infrastructure — EN route, DeepL endpoint, locale switcher, calculator localized fields 2026-02-24 15:02:56 +01:00
Jeffrey
791ad8dbc0 fix: rich text prose alignment, testimonial padding, 3-col grids, VPS max values 2026-02-24 13:43:36 +01:00
Jeffrey
21e3778397 feat: anchor links, smooth scroll, back-to-top 2026-02-24 10:10:29 +01:00
Jeffrey
f838dc1c6e Design system polish: borders, radius, typography, calculator, overlay, announcement bar + new services calculator 2026-02-21 12:33:22 +01:00
Jeffrey
cab4779f7d feat: footer cert marks + social icons 2026-02-20 13:22:07 +01:00
Jeffrey
14a383abd2 fix: admin mobile drawer scroll, theme-color viewport export, custom.scss 2026-02-20 12:30:07 +01:00
Jeffrey
097615569b fix: mobile audit — gray token, FDImage props, border radius, padding 2026-02-20 10:11:02 +01:00
Jeffrey
de4b1a5d81 feat: dark mode across all blocks, header, posts, 404 2026-02-20 08:58:52 +01:00
Jeffrey
0bf56a1388 feat: OS-based dark mode across all blocks 2026-02-20 07:57:47 +01:00
Jeffrey
f1462cf7c3 feat: FDButton component with dark/light hover, fix yellow button on navy 2026-02-19 20:45:11 +01:00
Jeffrey
1ab4e41c00 fix: cast SEO plugin fields override as Field[] to resolve 2026-02-19 19:55:08 +01:00
Jeffrey
84e8efd4e9 fix: resolve all TypeScript errors
- Fix heading/titleClass references in FDAlternateHeroBlock, FDDataTableBlock, FDLocationsGridBlock, FDPartnersLogosBlock, FDServiceChooserBlock, FDStatisticsBlock
- Fix service.title in FDServiceChooserBlock nested type
- Remove hero field references from [slug]/page.tsx
- Fix PopupAnnouncement adminOnly import path
- Add Page type import to [slug]/page.tsx
2026-02-18 16:30:14 +01:00
Jeffrey
9ec054e88b fixed hero layout synta page as page 2026-02-18 16:14:35 +01:00
Jeffrey
0b7303e97f fix: remove missing PageClient import from posts pagination page 2026-02-18 16:11:07 +01:00
Jeffrey
ccdc739c22 feat: redesign posts listing and detail pages
- posts/page.tsx: new layout matching design PDF - title+date above image, 3-col grid, no card borders
- posts/[slug]/page.tsx: editorial layout with hero image, fd-prose richtext, left-aligned CTA
2026-02-18 15:47:55 +01:00
Jeffrey
dc00f0c060 feat: cookie banner full-width, posts listing + detail redesign, richtext fix
- CookieConsent: full-width edge-to-edge bar, no rounded corners
- SiteSettings: acceptedDays/declinedDays fields for configurable consent expiry
- layout.tsx: clean single siteSettings fetch, proper CookieConsent props
- posts/[slug]/page.tsx: redesigned editorial layout matching PDF mockup
- posts/page.tsx: new FD-styled card grid with hero image, summary, date
- RichText: fixed prop from content= to data=, added fd-prose className
2026-02-18 15:28:39 +01:00
Jeffrey
3a8f58682d fix: cookie banner design and settings 2026-02-18 14:13:25 +01:00
Jeffrey
0712c0cc9d feat: custom 404 page with modem illustration, light variant 2026-02-18 13:26:56 +01:00
Jeffrey
f5857f1298 feat: dynamic sitemap and robots.txt at app root 2026-02-18 12:27:55 +01:00
Jeffrey
839773c271 fix: RichText imports, formatDateTime Swedish locale, posts page styling 2026-02-18 10:21:57 +01:00
Jeffrey
5ea9588223 feat: schema freeze — standardize field names, richText fields, localization, admin labels 2026-02-18 10:07:14 +01:00
Jeffrey
5cf9186ee2 Enhanced FDContactFormBlock with dark mode, remove search, add FormBlock to pages 2026-02-17 17:51:39 +01:00
jeffrey
dc24717388 Initial commit: Fiber Direkt website with Payload CMS 2026-02-17 10:43:13 +00:00
Jeffrey
44699d4fed feat: initial commit 2026-02-11 07:19:33 +01:00