Skip to content

Commit

Permalink
Add NYC logo favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerMatteo committed Aug 21, 2024
1 parent 4af9c76 commit a1e78cf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
findCommunityDistrictsByBoroughId,
} from "./gen";
import { FilterMenu } from "./components/FilterMenu";
import { LoaderFunctionArgs } from "@remix-run/node";
import { LoaderFunctionArgs, LinksFunction } from "@remix-run/node";
import {
BoroughDropdown,
DistrictTypeDropdown,
Expand All @@ -50,6 +50,16 @@ export type BoroughId = null | string;
export type DistrictType = null | "cd" | "ccd";
export type DistrictId = null | string;

export const links: LinksFunction = () => {
return [
{
rel: "icon",
href: "/favicon.svg",
type: "image/x-icon",
},
];
};

export const loader = async ({ request }: LoaderFunctionArgs) => {
const url = new URL(request.url);
const districtType = url.searchParams.get("districtType") as DistrictType;
Expand Down
10 changes: 10 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a1e78cf

Please sign in to comment.