Skip to content

Commit 6f94f80

Browse files
author
Regan Maharjan
committed
Fix image paths: change src/assets/ to /assets/ for production
1 parent 761ee64 commit 6f94f80

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

build/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Regan Maharjan Portfolio Website</title>
8-
<script type="module" crossorigin src="/assets/index-CLC_v-eX.js"></script>
8+
<script type="module" crossorigin src="/assets/index-X01Mc_ez.js"></script>
99
<link rel="stylesheet" crossorigin href="/assets/index-CMvESu3i.css">
1010
</head>
1111

src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function Footer() {
2828
{/* Nepal image silhouette - cropped at bottom 15% */}
2929
<div className="w-full relative z-10 overflow-hidden" style={{ height: '85%', minHeight: '221px' }}>
3030
<img
31-
src="src/assets/nepalimage.jpg"
31+
src="/assets/nepalimage.jpg"
3232
alt="Layered Himalayan mountains with fog, Kathmandu skyline, prayer flags, and stupas"
3333
className="w-full h-full object-cover object-top"
3434
/>

src/components/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function Navigation() {
3333
{/* Logo with Ray Logo */}
3434
<Link to="/" className="flex items-center group" aria-label="Home">
3535
<motion.img
36-
src="src/assets/raylogo.png"
36+
src="/assets/raylogo.png"
3737
alt="Regan Maharjan logo"
3838
className="w-auto bg-transparent transition-all duration-300"
3939
style={{ background: 'transparent', height: '85px' }}

src/data/content.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ const contentData = {
11241124
"images": [
11251125
{
11261126
"id": 1,
1127-
"url": "src/assets/2023-10-16_04-43-42_417.jpeg",
1127+
"url": "/assets/2023-10-16_04-43-42_417.jpeg",
11281128
"title": "Breath of Autumn",
11291129
"category": "Portraits",
11301130
"description": "A serene moment of stillness surrounded by fall colors",
@@ -1134,7 +1134,7 @@ const contentData = {
11341134
},
11351135
{
11361136
"id": 2,
1137-
"url": "src/assets/2023-11-19_02-55-09_562.jpeg",
1137+
"url": "/assets/2023-11-19_02-55-09_562.jpeg",
11381138
"title": "Lakeside Pathway",
11391139
"category": "Travel",
11401140
"description": "A wooden trail winding beside a vibrant blue lake",
@@ -1144,7 +1144,7 @@ const contentData = {
11441144
},
11451145
{
11461146
"id": 3,
1147-
"url": "src/assets/2023-11-19_04-58-06_481.jpeg",
1147+
"url": "/assets/2023-11-19_04-58-06_481.jpeg",
11481148
"title": "Frozen Highway",
11491149
"category": "Nature",
11501150
"description": "A winding road cutting through tall pines and snowy cliffs",
@@ -1154,7 +1154,7 @@ const contentData = {
11541154
},
11551155
{
11561156
"id": 4,
1157-
"url": "src/assets/2024-06-29_00-29-58_012.jpeg",
1157+
"url": "/assets/2024-06-29_00-29-58_012.jpeg",
11581158
"title": "Redwood Sanctuary",
11591159
"category": "Nature",
11601160
"description": "Ancient redwood trunks glowing under filtered sunlight",
@@ -1164,7 +1164,7 @@ const contentData = {
11641164
},
11651165
{
11661166
"id": 5,
1167-
"url": "src/assets/2024-07-06_10-46-05_797.jpeg",
1167+
"url": "/assets/2024-07-06_10-46-05_797.jpeg",
11681168
"title": "Half Dome Sunrise",
11691169
"category": "Travel",
11701170
"description": "Golden morning light falling on Half Dome",
@@ -1174,7 +1174,7 @@ const contentData = {
11741174
},
11751175
{
11761176
"id": 6,
1177-
"url": "src/assets/macha.jpg",
1177+
"url": "/assets/macha.jpg",
11781178
"title": "Alpine Majesty",
11791179
"category": [
11801180
"Travel",
@@ -1187,7 +1187,7 @@ const contentData = {
11871187
},
11881188
{
11891189
"id": 7,
1190-
"url": "src/assets/taksindu.jpg",
1190+
"url": "/assets/taksindu.jpg",
11911191
"title": "Glacial Walls",
11921192
"category": "Nature",
11931193
"description": "Sheer snowy cliffs rising above a frozen valley",
@@ -1197,7 +1197,7 @@ const contentData = {
11971197
},
11981198
{
11991199
"id": 8,
1200-
"url": "src/assets/yose.jpg",
1200+
"url": "/assets/yose.jpg",
12011201
"title": "Valley View",
12021202
"category": "Nature",
12031203
"description": "A panoramic look across Yosemite Valley",
@@ -1207,7 +1207,7 @@ const contentData = {
12071207
},
12081208
{
12091209
"id": 9,
1210-
"url": "src/assets/ZVE00854.jpg",
1210+
"url": "/assets/ZVE00854.jpg",
12111211
"title": "Autumn Reflections",
12121212
"category": "Nature",
12131213
"description": "Fall colors mirrored in a calm lake",
@@ -1217,7 +1217,7 @@ const contentData = {
12171217
},
12181218
{
12191219
"id": 10,
1220-
"url": "src/assets/ZVE02104.jpg",
1220+
"url": "/assets/ZVE02104.jpg",
12211221
"title": "Blue Horizon",
12221222
"category": "Travel",
12231223
"description": "A lakeside scene beneath snow capped mountains",
@@ -1227,7 +1227,7 @@ const contentData = {
12271227
},
12281228
{
12291229
"id": 11,
1230-
"url": "src/assets/hawkhill.png",
1230+
"url": "/assets/hawkhill.png",
12311231
"title": "Hawk Hill Horizon",
12321232
"category": "Nature",
12331233
"description": "A calm pastel sunrise above the ocean",
@@ -1237,7 +1237,7 @@ const contentData = {
12371237
},
12381238
{
12391239
"id": 12,
1240-
"url": "src/assets/lantang.png",
1240+
"url": "/assets/lantang.png",
12411241
"title": "Langtang Ridge",
12421242
"category": "Travel",
12431243
"description": "Sharp Himalayan ridges leading toward a massive snow peak",
@@ -1247,7 +1247,7 @@ const contentData = {
12471247
},
12481248
{
12491249
"id": 13,
1250-
"url": "src/assets/annapurna.png",
1250+
"url": "/assets/annapurna.png",
12511251
"title": "Annapurna Trail",
12521252
"category": "Travel",
12531253
"description": "Trekkers walking along a golden hillside beneath snowy mountains",
@@ -1257,7 +1257,7 @@ const contentData = {
12571257
},
12581258
{
12591259
"id": 14,
1260-
"url": "src/assets/tshorolpa.png",
1260+
"url": "/assets/tshorolpa.png",
12611261
"title": "Tsho Rolpa Glacier Lake",
12621262
"category": "Nature",
12631263
"description": "A frozen glacial lake surrounded by sharp snow covered mountains",
@@ -1267,7 +1267,7 @@ const contentData = {
12671267
},
12681268
{
12691269
"id": 15,
1270-
"url": "src/assets/ZVE02111.jpg",
1270+
"url": "/assets/ZVE02111.jpg",
12711271
"title": "Hidden Cove",
12721272
"category": "Nature",
12731273
"description": "A peaceful blue cove framed by pines and rocky shoreline",

0 commit comments

Comments
 (0)