Skip to content

Commit 4a56d41

Browse files
committed
fix: fix path
1 parent 48efb84 commit 4a56d41

File tree

7 files changed

+215
-109
lines changed

7 files changed

+215
-109
lines changed

src/components/InstitutionLogos.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
// InstitutionLogos component for displaying organization logos
3+
import { getAssetPath } from '../utils/assetPath';
34
---
45

56
<section class="mb-8">
@@ -11,7 +12,7 @@
1112
class="flex flex-col items-center group transition-all duration-300 bg-white bg-opacity-30 backdrop-blur-sm rounded-lg p-3 shadow-lg hover:bg-opacity-60"
1213
>
1314
<img
14-
src="/logos/InternRobotics.png"
15+
src={getAssetPath("logos/InternRobotics.png")}
1516
alt="Intern Robotics Logo"
1617
class="h-12 mb-2 object-contain"
1718
/>
@@ -23,7 +24,7 @@
2324
class="flex flex-col items-center group transition-all duration-300 bg-white bg-opacity-30 backdrop-blur-sm rounded-lg p-3 shadow-lg hover:bg-opacity-60"
2425
>
2526
<img
26-
src="/logos/ailab.png"
27+
src={getAssetPath("logos/ailab.png")}
2728
alt="Shanghai AI Laboratory Logo"
2829
class="h-12 mb-2 object-contain"
2930
/>

src/components/ModelOverview.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
// ModelOverview component for displaying the model architecture
3+
import { getAssetPath } from '../utils/assetPath';
34
---
45

56
<section class="bg-white rounded-lg shadow-sm p-6 mb-6 max-w-6xl mx-auto">
@@ -8,7 +9,7 @@
89
</h2>
910
<div class="flex justify-center">
1011
<img
11-
src="/model.png"
12+
src={getAssetPath("model.png")}
1213
alt="InternVLA-M1 Model Architecture"
1314
class="max-w-full h-auto rounded-lg"
1415
/>

src/components/ReasoningDemo.astro

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
// ReasoningDemo component using VideoCarousel directly
33
44
import VideoCarousel from "./VideoCarousel.astro";
5+
import { getAssetPath } from '../utils/assetPath';
56
67
const simulationDemoVideos = [
78
{
89
title: "",
9-
src: "/sim-demo/sim.mp4",
10+
src: getAssetPath("sim-demo/sim.mp4"),
1011
description: "",
1112
autoplay: true,
1213
},
@@ -15,43 +16,43 @@ const simulationDemoVideos = [
1516
const pickAndPlaceDemoVideos = [
1617
{
1718
title: "",
18-
src: "/pnp-demo/C0660_4x.mp4",
19+
src: getAssetPath("pnp-demo/C0660_4x.mp4"),
1920
description: "",
2021
autoplay: true,
2122
},
2223
{
2324
title: "",
24-
src: "/pnp-demo/C0663_4x.mp4",
25+
src: getAssetPath("pnp-demo/C0663_4x.mp4"),
2526
description: "",
2627
autoplay: false,
2728
},
2829
{
2930
title: "",
30-
src: "/pnp-demo/C0666_4x.mp4",
31+
src: getAssetPath("pnp-demo/C0666_4x.mp4"),
3132
description: "",
3233
autoplay: false,
3334
},
3435
{
3536
title: "",
36-
src: "/pnp-demo/C0671_4x.mp4",
37+
src: getAssetPath("pnp-demo/C0671_4x.mp4"),
3738
description: "",
3839
autoplay: false,
3940
},
4041
{
4142
title: "",
42-
src: "/pnp-demo/C0672_4x.mp4",
43+
src: getAssetPath("pnp-demo/C0672_4x.mp4"),
4344
description: "",
4445
autoplay: false,
4546
},
4647
{
4748
title: "",
48-
src: "/pnp-demo/C0673_4x.mp4",
49+
src: getAssetPath("pnp-demo/C0673_4x.mp4"),
4950
description: "",
5051
autoplay: false,
5152
},
5253
{
5354
title: "",
54-
src: "/pnp-demo/C0656_4x.mp4",
55+
src: getAssetPath("pnp-demo/C0656_4x.mp4"),
5556
description: "",
5657
autoplay: false,
5758
},
@@ -60,27 +61,27 @@ const pickAndPlaceDemoVideos = [
6061
const longHorizonDemoVideos = [
6162
{
6263
title: "Make Sandwich",
63-
src: "/long-horizon-demo/make-sandwich.mp4",
64+
src: getAssetPath("long-horizon-demo/make-sandwich.mp4"),
6465
autoplay: false,
6566
},
6667
{
6768
title: "Purchase Goods",
68-
src: "/long-horizon-demo/purchase-goods.mp4",
69+
src: getAssetPath("long-horizon-demo/purchase-goods.mp4"),
6970
autoplay: false,
7071
},
7172
{
7273
title: "Sort Objects",
73-
src: "/long-horizon-demo/sort-objects.mp4",
74+
src: getAssetPath("long-horizon-demo/sort-objects.mp4"),
7475
autoplay: false,
7576
},
7677
{
7778
title: "Sort to Drawer",
78-
src: "/long-horizon-demo/sort-to-drawer.mp4",
79+
src: getAssetPath("long-horizon-demo/sort-to-drawer.mp4"),
7980
autoplay: false,
8081
},
8182
{
8283
title: "Math Calculation",
83-
src: "/long-horizon-demo/math-calculation.mp4",
84+
src: getAssetPath("long-horizon-demo/math-calculation.mp4"),
8485
autoplay: true,
8586
},
8687
];

0 commit comments

Comments
 (0)