Skip to content

Commit 9811e57

Browse files
Roystbeefterragon-labs[bot]
andcommitted
refactor(ui): use local image paths instead of external URLs
Replaced all external image URLs with local image paths in Hero and PhotoGallery components to improve loading performance and reliability. Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
1 parent f4bbdb9 commit 9811e57

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

components/Hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function Hero() {
1919
>
2020
<div className="relative inline-block">
2121
<ImageWithFallback
22-
src="https://rarepupper.com/images/profile.png"
22+
src="/images/profile.png"
2323
alt="Tortie the chihuahua-rat terrier mix"
2424
className="object-cover mx-auto border-8 border-white rounded-full shadow-2xl w-80 h-80"
2525
/>

components/PhotoGallery.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@ import { ImageWithFallback } from './figma/ImageWithFallback';
44

55
const photos = [
66
{
7-
src: 'https://rarepupper.com/images/head-back.png',
7+
src: '/images/head-back.png',
88
caption: 'Professional head-tilting pose',
99
hearts: 347,
1010
},
1111
{
12-
src: 'https://rarepupper.com/images/sleepy.png',
12+
src: '/images/sleepy.png',
1313
caption: 'Tongue-out sleeping beauty',
1414
hearts: 892,
1515
},
1616
{
17-
src: 'https://rarepupper.com/images/pawing.png',
17+
src: '/images/pawing.png',
1818
caption: 'String cheese appreciation moment',
1919
hearts: 1205,
2020
},
2121
{
22-
src: 'https://rarepupper.com/images/laundry.png',
22+
src: '/images/laundry.png',
2323
caption: 'Blanket burrow headquarters',
2424
hearts: 654,
2525
},
2626
{
27-
src: 'https://rarepupper.com/images/tortugas.png',
27+
src: '/images/tortugas.png',
2828
caption: 'Tortuga and the tortugas',
2929
hearts: 428,
3030
},
3131
{
32-
src: 'https://rarepupper.com/images/leafs.png',
32+
src: '/images/leafs.png',
3333
caption: 'Leaf hunting expedition',
3434
hearts: 733,
3535
},

0 commit comments

Comments
 (0)