Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: missing icons #74

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 added public/crossweb-favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion src/components/LocalGroups.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FaFacebook, FaMeetup } from 'react-icons/fa6';
import { FaFacebook, FaGithub, FaMeetup } from 'react-icons/fa6';
import Link from 'next/link';
import Image from 'next/image';

Expand Down Expand Up @@ -33,6 +33,24 @@ const detectIcon = (link: string) => {
</>
);
}

if (link.includes('crossweb.pl')) {
return (
<>
<span className="sr-only">Crossweb group</span>
<Image src="/crossweb-favicon.png" alt="Crossweb logo" width={50} height={50} />
</>
);
}

if (link.includes('github.com')) {
return (
<>
<span className="sr-only">Github group</span>
<FaGithub className="h-10 w-10" />
</>
);
}
};

export const LocalGroups = ({ localGroups }: LocalGroupProps) => {
Expand Down