From a1438074ea96245c95c75c1e6eab5bd8f75ea734 Mon Sep 17 00:00:00 2001 From: Calvin Walzel Date: Sat, 14 Sep 2024 01:03:00 +0200 Subject: [PATCH] Add search to companies controller --- app/frontend/components/external_link.tsx | 13 ++++-- app/frontend/images/brands/github.svg | 1 + app/frontend/layouts/application.tsx | 3 ++ app/frontend/layouts/application/footer.tsx | 47 +++++++++++++++++++++ 4 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 app/frontend/images/brands/github.svg create mode 100644 app/frontend/layouts/application/footer.tsx diff --git a/app/frontend/components/external_link.tsx b/app/frontend/components/external_link.tsx index de666d4..54f9df8 100644 --- a/app/frontend/components/external_link.tsx +++ b/app/frontend/components/external_link.tsx @@ -2,20 +2,25 @@ import { Link as LinkIcon, type LucideProps } from "lucide-react"; import { Button } from "@/components/ui/button"; +import { cn } from "@/utils/ui"; + interface Props { href: string; children: React.ReactNode; icon?: React.ForwardRefExoticComponent< Omit & React.RefAttributes - >; + > | null; + className?: string; } -function ExternalLink({ href, children, icon }: Props) { +function ExternalLink({ href, children, icon, className }: Props) { const Icon = icon || LinkIcon; return ( -
- + ); } diff --git a/app/frontend/layouts/application/footer.tsx b/app/frontend/layouts/application/footer.tsx new file mode 100644 index 0000000..9d05610 --- /dev/null +++ b/app/frontend/layouts/application/footer.tsx @@ -0,0 +1,47 @@ +import ExternalLink from "@/components/external_link"; +import { Button } from "@/components/ui/button"; + +import githubImage from "@/images/brands/github.svg"; +import avoHQImage from "@/images/sponsors/avohq.png"; + +function Footer() { + return ( + + ); +} + +Footer.displayName = "layouts/application/footer"; + +export default Footer;