|
| 1 | +import { IconBrandGithub } from '@tabler/icons-react'; |
| 2 | + |
| 3 | +export default function Footer() { |
| 4 | + const menus = [ |
| 5 | + { |
| 6 | + title: 'Documentation', |
| 7 | + children: [ |
| 8 | + { name: 'Getting Started', href: '#' }, |
| 9 | + { name: 'Guide', href: '#' }, |
| 10 | + { name: 'API', href: '#' }, |
| 11 | + { name: 'Showcase', href: '#' }, |
| 12 | + { name: 'Pricing', href: '#' }, |
| 13 | + ], |
| 14 | + }, |
| 15 | + { |
| 16 | + title: 'Community', |
| 17 | + children: [ |
| 18 | + { name: 'Forum', href: '#' }, |
| 19 | + { name: 'Discord', href: '#' }, |
| 20 | + ], |
| 21 | + }, |
| 22 | + ]; |
| 23 | + |
| 24 | + return ( |
| 25 | + <div className="flex w-full max-w-screen-lg flex-col gap-8 bg-white px-8 py-8 text-sm md:flex-row md:gap-16"> |
| 26 | + <div className="flex-1"> |
| 27 | + <a href="https://github.com/gofenix" target="_blank"> |
| 28 | + <img width="200" height="32" src="logo.png" alt="Made by Fenix" /> |
| 29 | + </a> |
| 30 | + <a href="https://github.com/leeduckgo" target="_blank"> |
| 31 | + <img width="200" height="32" src="logo_ldg.png" alt="Made by LeeDuckGo" /> |
| 32 | + </a> |
| 33 | + </div> |
| 34 | + |
| 35 | + {menus.map((item) => ( |
| 36 | + <div className="mb-4" key={item.title}> |
| 37 | + <div className="font-bold">{item.title}</div> |
| 38 | + <ul className="mt-2"> |
| 39 | + {item.children.map((child) => ( |
| 40 | + <li className="mt-2" key={child.name}> |
| 41 | + <a |
| 42 | + className="text-gray-500 hover:text-gray-700" |
| 43 | + href={child.href} |
| 44 | + > |
| 45 | + {child.name} |
| 46 | + </a> |
| 47 | + </li> |
| 48 | + ))} |
| 49 | + </ul> |
| 50 | + </div> |
| 51 | + ))} |
| 52 | + |
| 53 | + <div className="space-y-2 text-gray-500"> |
| 54 | + <div className="text-xs"> |
| 55 | + Copyright © 2024 gofenix&leeduckgo |
| 56 | + <br /> |
| 57 | + All right reserved. |
| 58 | + </div> |
| 59 | + |
| 60 | + <a |
| 61 | + href="https://github.com/NonceGeek/bodhi-rss" |
| 62 | + className="inline-block hover:text-black" |
| 63 | + aria-label="GitHub" |
| 64 | + > |
| 65 | + <IconBrandGithub aria-hidden="true" /> |
| 66 | + </a> |
| 67 | + </div> |
| 68 | + </div> |
| 69 | + ); |
| 70 | +} |
0 commit comments