Skip to content

Commit df5f26a

Browse files
committed
chore: import SVG assets instead of using direct paths (#395)
# Remove unused SVG assets and update image references This PR removes several unused SVG assets from the website and updates image references to use imported assets instead of direct paths: 1. Removed architecture diagram SVG that was no longer needed 2. Removed edge worker logo SVGs (both dark and light versions) 3. Updated image references in PageFrame.astro to use imported assets: - Now using imported logo files instead of direct path references 4. Updated Quote.astro component to use imported quote icon: - Replaced inline SVG with imported image reference - Simplified the component by using an image tag instead of SVG markup These changes improve maintainability by ensuring assets are properly imported and referenced, while removing unused files to keep the codebase clean.
1 parent f92d7a2 commit df5f26a

File tree

5 files changed

+8
-23
lines changed

5 files changed

+8
-23
lines changed

pkgs/website/src/assets/architecture-diagram.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

pkgs/website/src/assets/edge-worker-logo-dark.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

pkgs/website/src/assets/edge-worker-logo-light.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

pkgs/website/src/components/PageFrame.astro

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import type { Props } from '@astrojs/starlight/props';
33
import Default from '@astrojs/starlight/components/PageFrame.astro';
44
import { LinkButton } from '@astrojs/starlight/components';
5+
import logoDark from '../assets/pgflow-logo-dark.svg';
6+
import logoLight from '../assets/pgflow-logo-light.svg';
57
68
const isAuthorPage = Astro.url.pathname.startsWith('/author');
79
const isLandingPage = Astro.url.pathname === '/';
@@ -26,8 +28,8 @@ const showFooter = isLandingPage || isAuthorPage;
2628
<div class="footer-left">
2729
<div class="footer-logo">
2830
<a href="/">
29-
<img src="/src/assets/pgflow-logo-dark.svg" alt="" class="logo-dark" />
30-
<img src="/src/assets/pgflow-logo-light.svg" alt="" class="logo-light" />
31+
<img src={logoDark.src} alt="" class="logo-dark" />
32+
<img src={logoLight.src} alt="" class="logo-light" />
3133
<span class="logo-text">pgflow</span>
3234
</a>
3335
</div>

0 commit comments

Comments
 (0)