diff --git a/next.config.ts b/next.config.ts index 9f7f4d4..4e48451 100644 --- a/next.config.ts +++ b/next.config.ts @@ -2,6 +2,7 @@ import { withPayload } from '@payloadcms/next/withPayload' import type { NextConfig } from 'next' const ONE_YEAR = 'public, max-age=31536000, immutable' +const ONE_DAY = 'public, max-age=86400, must-revalidate' const nextConfig: NextConfig = { output: 'standalone', @@ -9,10 +10,12 @@ const nextConfig: NextConfig = { async headers() { return [ { + // public/ images are mutable (replaced in-place) — allow daily revalidation source: '/images/:path*', - headers: [{ key: 'Cache-Control', value: ONE_YEAR }], + headers: [{ key: 'Cache-Control', value: ONE_DAY }], }, { + // _next/static/ assets have content-hashed filenames — safe to cache forever source: '/_next/static/:path*', headers: [{ key: 'Cache-Control', value: ONE_YEAR }], }, diff --git a/public/images/figma/hero-bg1-v2.webp b/public/images/figma/hero-bg1-v2.webp new file mode 100644 index 0000000..fa91b86 --- /dev/null +++ b/public/images/figma/hero-bg1-v2.webp @@ -0,0 +1,13 @@ + +
+ + + + + + + + + + +
diff --git a/public/images/figma/hero-bg2-v2.webp b/public/images/figma/hero-bg2-v2.webp new file mode 100644 index 0000000..d8f8c69 Binary files /dev/null and b/public/images/figma/hero-bg2-v2.webp differ diff --git a/public/images/figma/loc-dinopark-v2.webp b/public/images/figma/loc-dinopark-v2.webp new file mode 100644 index 0000000..4532532 Binary files /dev/null and b/public/images/figma/loc-dinopark-v2.webp differ diff --git a/public/images/figma/loc-divo-lis-v2.webp b/public/images/figma/loc-divo-lis-v2.webp new file mode 100644 index 0000000..3fdd455 Binary files /dev/null and b/public/images/figma/loc-divo-lis-v2.webp differ diff --git a/public/images/figma/loc-maze-v2.webp b/public/images/figma/loc-maze-v2.webp new file mode 100644 index 0000000..86d51ad Binary files /dev/null and b/public/images/figma/loc-maze-v2.webp differ diff --git a/public/images/figma/loc-playground-v2.webp b/public/images/figma/loc-playground-v2.webp new file mode 100644 index 0000000..e0165fe Binary files /dev/null and b/public/images/figma/loc-playground-v2.webp differ diff --git a/public/images/figma/loc-tir-v2.webp b/public/images/figma/loc-tir-v2.webp new file mode 100644 index 0000000..285ace1 Binary files /dev/null and b/public/images/figma/loc-tir-v2.webp differ diff --git a/public/images/figma/why-parents-video-v2.webp b/public/images/figma/why-parents-video-v2.webp new file mode 100644 index 0000000..c8908f8 Binary files /dev/null and b/public/images/figma/why-parents-video-v2.webp differ diff --git a/src/components/sections/Hero.tsx b/src/components/sections/Hero.tsx index 9742d87..e3415bf 100644 --- a/src/components/sections/Hero.tsx +++ b/src/components/sections/Hero.tsx @@ -2,7 +2,7 @@ import type { HomePageHero, Media } from '@/types/globals' import { BtnPrimary } from '@/components/ui/BtnPrimary' -const IMG_BG2 = '/images/figma/hero-bg2.webp' +const IMG_BG2 = '/images/figma/hero-bg2-v2.webp' interface HeroProps { hero?: HomePageHero | null diff --git a/src/components/sections/Locations.tsx b/src/components/sections/Locations.tsx index bf8dcc7..365708e 100644 --- a/src/components/sections/Locations.tsx +++ b/src/components/sections/Locations.tsx @@ -9,11 +9,11 @@ function getMediaUrl(img: Media | string | null | undefined): string | null { } const FALLBACK_IMAGES: Record = { - dynopark: '/images/figma/loc-dinopark.webp', - dyvolis: '/images/figma/loc-divo-lis.webp', - maze: '/images/figma/loc-maze.webp', - tir: '/images/figma/loc-tir.webp', - playground: '/images/figma/loc-playground.webp', + dynopark: '/images/figma/loc-dinopark-v2.webp', + dyvolis: '/images/figma/loc-divo-lis-v2.webp', + maze: '/images/figma/loc-maze-v2.webp', + tir: '/images/figma/loc-tir-v2.webp', + playground: '/images/figma/loc-playground-v2.webp', } const STATIC_LOCATIONS: LocationData[] = [ diff --git a/src/components/sections/WhyParents.tsx b/src/components/sections/WhyParents.tsx index ae466da..ad52235 100644 --- a/src/components/sections/WhyParents.tsx +++ b/src/components/sections/WhyParents.tsx @@ -4,7 +4,7 @@ import { useState, useRef, useEffect } from 'react' import type { HomePageWhyParentsItem, Media } from '@/types/globals' -const VIDEO_THUMBNAIL = '/images/figma/why-parents-video.webp' +const VIDEO_THUMBNAIL = '/images/figma/why-parents-video-v2.webp' const STATIC_ITEMS: HomePageWhyParentsItem[] = [ {