Skip to content

Commit b52072b

Browse files
authored
Fix assets path (#834)
1 parent ef8a2c3 commit b52072b

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

landing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.1",
55
"scripts": {
66
"dev": "astro dev",
7-
"build": "astro build",
7+
"build": "astro build && touch dist/.nojekyll",
88
"preview": "astro preview",
99
"astro": "astro"
1010
},

landing/src/components/DebugCasesSection.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ const debugCases = [
99
title: "Explore your component structure",
1010
description:
1111
"Quickly identify where issues originate by navigating your LiveView and component hierarchy.",
12-
imageUrl: "live-debugger/assets/step-1.png",
12+
imageUrl: "/live-debugger/assets/step-1.png",
1313
},
1414
{
1515
title: "Inspect state in real time",
1616
description:
1717
"Check the current state of affected components and see how it changes as you interact with your app.",
18-
imageUrl: "live-debugger/assets/step-2.png",
18+
imageUrl: "/live-debugger/assets/step-2.png",
1919
},
2020
{
2121
title: "Filter and focus on key callbacks",
2222
description:
2323
"Apply filters to isolate the most relevant callbacks for faster debugging.",
24-
imageUrl: "live-debugger/assets/step-3.png",
24+
imageUrl: "/live-debugger/assets/step-3.png",
2525
},
2626
{
2727
title: "Observe state transitions and behavior",
2828
description:
2929
"Watch how each callback impacts your component’s state and behavior.",
30-
imageUrl: "live-debugger/assets/step-4.png",
30+
imageUrl: "/live-debugger/assets/step-4.png",
3131
},
3232
];
3333
---

landing/src/components/GettingStartedSection.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const tabData = [
3030
class="absolute -bottom-25 -left-20 z-1 sm:-right-15 sm:-bottom-25 lg:-right-45 lg:-bottom-30"
3131
>
3232
<img
33-
src="live-debugger/assets/Vector.svg"
33+
src="/live-debugger/assets/Vector.svg"
3434
alt=""
3535
class="h-60 w-auto sm:h-80 md:h-100 lg:h-120"
3636
/>

landing/src/components/HeroSection.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Button } from "@/components/ui/button";
1919
>
2020
<p>Created by</p>
2121
<img
22-
src="live-debugger/assets/logo-swm.svg"
22+
src="/live-debugger/assets/logo-swm.svg"
2323
alt="Software Mansion"
2424
class="h-10 w-auto md:h-12"
2525
/>
@@ -50,7 +50,7 @@ import { Button } from "@/components/ui/button";
5050
class="animate-slide-in-up absolute -bottom-20 z-10 hidden sm:block lg:-bottom-25"
5151
>
5252
<img
53-
src="live-debugger/assets/Screenshot-1.png"
53+
src="/live-debugger/assets/Screenshot-1.png"
5454
alt="screenshot 1"
5555
class="h-auto sm:w-[552px] sm:max-w-[552px] md:mt-16 md:w-[936px] md:max-w-[936px] lg:mt-20 lg:w-[1100px] lg:max-w-[1100px]"
5656
/>
@@ -60,7 +60,7 @@ import { Button } from "@/components/ui/button";
6060
class="animate-fade-in absolute top-90 -right-10 z-1 sm:top-0 lg:-right-40"
6161
>
6262
<img
63-
src="live-debugger/assets/Vector.svg"
63+
src="/live-debugger/assets/Vector.svg"
6464
alt=""
6565
class="h-60 w-auto md:h-80 lg:h-100"
6666
/>
@@ -69,7 +69,7 @@ import { Button } from "@/components/ui/button";
6969
class="animate-fade-in absolute top-100 -left-5 z-1 hidden sm:block lg:-left-50"
7070
>
7171
<img
72-
src="live-debugger/assets/Vector.svg"
72+
src="/live-debugger/assets/Vector.svg"
7373
alt=""
7474
class="h-60 w-auto md:h-80 lg:h-100"
7575
/>

landing/src/components/RoadmapSection.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const accordionData = [
6868
url="https://github.com/software-mansion/live-debugger/issues/new/choose"
6969
>
7070
<img
71-
src={`live-debugger/assets/github-2.svg`}
71+
src={`/live-debugger/assets/github-2.svg`}
7272
class="h-13 w-13"
7373
alt={"github icon"}
7474
width="32"

landing/src/components/VideoSection.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import ContentWrapper from "../components/ContentWrapper.tsx";
3030
class="absolute -right-15 -bottom-20 z-1 sm:-right-15 sm:-bottom-25 lg:-right-45 lg:-bottom-30"
3131
>
3232
<img
33-
src="live-debugger/assets/Vector.svg"
33+
src="/live-debugger/assets/Vector.svg"
3434
alt=""
3535
class="h-60 w-auto sm:h-80 md:h-100 lg:h-120"
3636
/>

landing/src/components/ui/Footer.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ export interface FooterProps extends React.HTMLAttributes<HTMLElement> {}
88
const logos = [
99
{
1010
name: "Popcorn",
11-
imageUrl: "live-debugger/assets/logo-popcorn.svg",
11+
imageUrl: "/live-debugger/assets/logo-popcorn.svg",
1212
href: "https://popcorn.swmansion.com/",
1313
},
1414
{
1515
name: "Global Elixir Meetups",
16-
imageUrl: "live-debugger/assets/logo-GEM.svg",
16+
imageUrl: "/live-debugger/assets/logo-GEM.svg",
1717
href: "https://globalelixirmeetups.com/",
1818
},
1919
{
2020
name: "Membrane Live",
21-
imageUrl: "live-debugger/assets/logo-membrane.svg",
21+
imageUrl: "/live-debugger/assets/logo-membrane.svg",
2222
href: "https://membrane.stream/",
2323
},
2424
];
@@ -76,7 +76,7 @@ const Footer = React.forwardRef<HTMLElement, FooterProps>(
7676
<div className="z-10 flex flex-col items-center">
7777
<div className="flex flex-col items-center gap-3">
7878
<img
79-
src="live-debugger/assets/logo-swm.svg"
79+
src="/live-debugger/assets/logo-swm.svg"
8080
alt="Software Mansion"
8181
className="h-7 w-auto"
8282
/>
@@ -140,7 +140,7 @@ const Footer = React.forwardRef<HTMLElement, FooterProps>(
140140
className="flex h-6 w-6 transform items-center justify-center rounded-full transition-all duration-300 ease-in-out hover:scale-150 hover:opacity-60"
141141
>
142142
<img
143-
src={`live-debugger/assets/${icon}.svg`}
143+
src={`/live-debugger/assets/${icon}.svg`}
144144
className="h-3 w-3"
145145
alt={`${icon} icon`}
146146
width="16"
@@ -158,14 +158,14 @@ const Footer = React.forwardRef<HTMLElement, FooterProps>(
158158
</ContentWrapper>
159159
<div className="absolute -top-30 -left-30 z-1 sm:-top-40 sm:-left-20 md:-top-50 lg:-top-65 lg:-left-30">
160160
<img
161-
src="live-debugger/assets/Vector.svg"
161+
src="/live-debugger/assets/Vector.svg"
162162
alt=""
163163
className="h-60 w-auto sm:h-80 md:h-100 lg:h-120"
164164
/>
165165
</div>
166166
<div className="absolute -right-10 -bottom-25 z-1 sm:-right-40 sm:-bottom-35 md:-right-20 md:-bottom-45 lg:-right-60 lg:-bottom-55">
167167
<img
168-
src="live-debugger/assets/Vector.svg"
168+
src="/live-debugger/assets/Vector.svg"
169169
alt=""
170170
className="h-60 w-auto sm:h-80 md:h-100 lg:h-120"
171171
/>

0 commit comments

Comments
 (0)