Skip to content

Commit 035db08

Browse files
fix(website): 🖼️ update image paths to be relative for static assets
* Changed image source paths in `footer.tsx`, `hero-section.tsx`, and `layout.tsx` from `/`-prefixed to relative paths. * Ensures compatibility with static site hosting environments where root-relative paths may not resolve correctly.
1 parent 354fb00 commit 035db08

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎website/src/app/layout.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const metadata: Metadata = {
6767
siteName: "Crownpeak DQM React Component",
6868
images: [
6969
{
70-
url: "/og-image.png",
70+
url: "og-image.png",
7171
width: 1200,
7272
height: 630,
7373
alt: "Crownpeak DQM React Component - Digital Quality Management",
@@ -78,7 +78,7 @@ export const metadata: Metadata = {
7878
card: "summary_large_image",
7979
title: "Crownpeak DQM React Component",
8080
description: "Integrate Digital Quality Management directly into your React application.",
81-
images: ["/og-image.png"],
81+
images: ["og-image.png"],
8282
creator: "@crownpeak",
8383
},
8484
alternates: {

‎website/src/components/sections/footer.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function Footer() {
4343
{/* Brand */}
4444
<div className="md:col-span-1">
4545
<div className="flex items-center gap-3 mb-4">
46-
<Image className="rounded-xs" src="/crownpeak_icon.png" alt="DQM React Logo" width={40} height={40} />
46+
<Image className="rounded-xs" src="crownpeak_icon.png" alt="DQM React Logo" width={40} height={40} />
4747
<div>
4848
<p className="font-bold text-white">DQM React</p>
4949
<p className="text-xs text-slate-400">by Crownpeak</p>

‎website/src/components/sections/hero-section.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function HeroSection({ onOpenDemo }: HeroSectionProps) {
6767
className="text-5xl md:text-7xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-white via-indigo-200 to-purple-200"
6868
>
6969
<span className="inline-flex gap-2 items-center justify-center">
70-
<Image src="/logo_crownpeak.svg" alt="Crownpeak Logo" width={350} height={100} style={{top: 10, position: 'relative'}} />
70+
<Image src="logo_crownpeak.svg" alt="Crownpeak Logo" width={350} height={100} style={{top: 10, position: 'relative'}} />
7171
{t('hero.title')}
7272
</span>
7373
<br />

0 commit comments

Comments
 (0)