Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: import images to cache bust them #372

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions landing-page/png.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module '*.png'
6 changes: 4 additions & 2 deletions landing-page/src/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import {
SiDiscord,
SiGithub,
} from '@icons-pack/react-simple-icons'
import darkScreenshot from './extension-dark.png'
import lightScreenshot from './extension-light.png'
import { PilotType, ZodiacOsPlain } from './logos'

export const LandingPage = () => (
Expand Down Expand Up @@ -41,13 +43,13 @@ export const LandingPage = () => (
<section className="flex flex-col-reverse items-center justify-around gap-32 lg:flex-row">
<div className="w-96 rounded-xl border border-gray-300/80 p-4 shadow-2xl dark:border-gray-700/80 dark:shadow-zinc-800">
<img
src="/extension-dark.png"
src={darkScreenshot}
className="hidden w-fit dark:block"
alt="Zodiac browser extension"
/>

<img
src="/extension-light.png"
src={lightScreenshot}
className="w-fit dark:hidden"
alt="Zodiac browser extension"
/>
Expand Down
2 changes: 1 addition & 1 deletion landing-page/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"noEmit": true,
"jsx": "react-jsx"
},
"include": ["src"]
"include": ["src", "./png.d.ts"]
}
Loading