Skip to content

Commit

Permalink
add webp images
Browse files Browse the repository at this point in the history
  • Loading branch information
aretrace committed Jan 10, 2024
1 parent f3cbc8b commit 947db72
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
Binary file added public/static/imgs/AppointEase.webp
Binary file not shown.
Binary file added public/static/imgs/Cueiz.webp
Binary file not shown.
Binary file added public/static/imgs/Inventory.webp
Binary file not shown.
Binary file added public/static/imgs/hncr-cli.webp
Binary file not shown.
8 changes: 4 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import localFonts from 'next/font/local'
import ReactDOM from 'react-dom'
import styles from './styles.module.css'

ReactDOM.preload('/static/imgs/Cueiz.jpeg', { as: 'image' })
ReactDOM.preload('/static/imgs/Inventory.jpeg', { as: 'image' })
ReactDOM.preload('/static/imgs/AppointEase.jpeg', { as: 'image' })
ReactDOM.preload('/static/imgs/hncr-cli.jpeg', { as: 'image' })
ReactDOM.preload('/static/imgs/Cueiz.webp', { as: 'image' })
ReactDOM.preload('/static/imgs/Inventory.webp', { as: 'image' })
ReactDOM.preload('/static/imgs/AppointEase.webp', { as: 'image' })
ReactDOM.preload('/static/imgs/hncr-cli.webp', { as: 'image' })
ReactDOM.preload('/static/imgs/tv.gif', { as: 'image' })

ReactDOM.prefetchDNS('https://cueiz.vercel.app/quiz')
Expand Down
2 changes: 1 addition & 1 deletion src/components/showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function ShowItem({
{isOpen && (
<img
className={`z-10 hidden rounded border-4 border-stone-700 lg:block`}
src={`/static/imgs/${photo}.jpeg`}
src={`/static/imgs/${photo}.webp`}
ref={refs.setFloating}
style={floatingStyles}
{...getFloatingProps()}
Expand Down

1 comment on commit 947db72

@vercel
Copy link

@vercel vercel bot commented on 947db72 Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.