Skip to content

Commit

Permalink
Add CO branding
Browse files Browse the repository at this point in the history
  • Loading branch information
rawcomposition committed Oct 13, 2023
1 parent 05480da commit 01817dc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions components/RegionBranding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,39 @@ const data = [
),
imgUrl: "/AASLogo.png",
},
{
code: "US-CO",
html: (
<div className="ml-2">
A project supported by the
<br />
<a href="https://dfobirds.org" target="_blank">
Denver Field Ornithologists
</a>
</div>
),
imgUrl: "/dfo-logo.jpg",
},
];

export default function RegionBranding({ regionCode, className }: Props) {
if (regionCode === "US-CO") {
return (
<>
<div className="flex gap-4 items-center mb-5">
<img src="/cfo.png" className="w-20" />
<p className="font-bold text-secondary">
<div className="ml-2">
A project supported by the
<br />
<a href="https://cobirds.org" target="_blank">
Colorado Field Ornithologists
</a>
</div>
</p>
</div>
<div className={clsx("flex gap-4 items-center", className)}>
<img src="/dfo-logo.jpg" className="w-20" />
<p className="font-bold text-secondary">
<div className="ml-2">
A project supported by the
<br />
<a href="https://dfobirds.org" target="_blank">
Denver Field Ornithologists
</a>
</div>
</p>
</div>
</>
);
}
const branding = data.find((d) => d.code === regionCode || regionCode.startsWith(d.code));
if (!branding) return null;
return (
Expand Down
Binary file added public/cfo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 01817dc

@vercel
Copy link

@vercel vercel bot commented on 01817dc Oct 13, 2023

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.