Skip to content
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
Binary file removed public/img/chosen-sprite.png
Binary file not shown.
Binary file removed public/img/chosen-sprite@2x.png
Binary file not shown.
Binary file removed public/img/favicon.ico
Binary file not shown.
Binary file added public/img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/img/gradient_squares.png
Binary file not shown.
Binary file added public/img/gradient_squares.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/components/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ export function Footer() {
skratchdot{" "}
<img
className="inline size-4"
width={16}
height={16}
alt=""
src={`${import.meta.env.BASE_URL}img/favicon.ico`}
src={`${import.meta.env.BASE_URL}img/favicon.png`}
/>
</TextLink>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/components/layout/site-document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ export function SiteDocument({ children }: { children: ReactNode }) {
<meta name="description" content="audio, sorting algorithms, visualizations" />
<meta name="author" content="skratchdot.com" />
<link
rel="shortcut icon"
rel="icon"
type="image/png"
href={`${import.meta.env.BASE_URL}img/favicon.ico`}
sizes="32x32"
href={`${import.meta.env.BASE_URL}img/favicon.png`}
/>
<link rel="stylesheet" href={stylesheet} />
<HeadContent />
Expand Down
2 changes: 1 addition & 1 deletion src/components/visualizations/player-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function PlayerChart({ runtime, id }: Props & { id: PlayerId }) {
id={`${id}-svg`}
aria-label={id === "base" ? "Input data visualization" : "Sorting visualization"}
className={cn(
"h-full w-full rounded-lg border border-neutral-300 bg-neutral-100 bg-[url('/img/gradient_squares.png')] bg-center bg-repeat",
"h-full w-full rounded-lg border border-neutral-300 bg-neutral-100 bg-[url('/img/gradient_squares.webp')] bg-center bg-repeat",
id === "base" && "cursor-pointer touch-none",
)}
viewBox={flat ? `0 0 ${Math.max(1, frames.length - 1)} ${Math.max(1, size)}` : undefined}
Expand Down
15 changes: 14 additions & 1 deletion src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,17 @@ function Home() {
);
}

export const Route = createFileRoute("/")({ component: Home });
export const Route = createFileRoute("/")({
component: Home,
head: () => ({
links: [
{
rel: "preload",
as: "image",
type: "image/webp",
href: `${import.meta.env.BASE_URL}img/gradient_squares.webp`,
fetchPriority: "high",
},
],
}),
});