Skip to content

Commit

Permalink
chore: import images to cache bust them (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
frontendphil authored Dec 16, 2024
1 parent 8577793 commit 4e7b4ab
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
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
File renamed without changes
File renamed without changes
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"]
}

0 comments on commit 4e7b4ab

Please sign in to comment.