Full Toolkit for Next-Level Domain Analysis
Migrate nav elements to shadcn/ui 🧭
Felix Wotschofsky6955ddd556dd
diff --git a/components/Footer.tsx b/components/Footer.tsxindex 48f9349..25159f0 100644--- a/components/Footer.tsx+++ b/components/Footer.tsx@@ -1,58 +1,23 @@-import { ExternalLinkIcon } from '@chakra-ui/icons';-import {- Box,- ButtonGroup,- Divider,- Icon,- IconButton,- Link,- Stack,- Text,-} from '@chakra-ui/react';import { FaGithub, FaHeart } from 'react-icons/fa';+import { Button } from '@/components/ui/button';+const Footer = () => (- <Box- as="footer"- role="contentinfo"- w="100%"- maxW="7xl"- py={4}- px={{ base: '4', md: '8' }}- >- <Divider mb={4} />- <Stack- direction={{ base: 'column', sm: 'row' }}- spacing="4"- align="center"- justify="space-between"- >- <Text fontSize="sm">+ <footer className="w-full p-4 md:px-8">+ <div className="flex flex-col items-center justify-between border-t border-t-gray-200 pt-4 sm:flex-row">+ <p className="text-sm">Created with{' '}- <Icon- as={FaHeart}- mx="2px"- w={5}- h={5}- translateY="0.35em"- color="red.500"- />{' '}- by{' '}- <Link href="https://felisk.io" isExternal>- Felix Wotschofsky <ExternalLinkIcon mx="2px" />- </Link>- </Text>- <ButtonGroup variant="ghost" color="gray.600">- <IconButton- as="a"- href="https://github.com/feliskio/domain-digger"- target="_blank"- aria-label="GitHub"- icon={<FaGithub fontSize="20px" />}- />- </ButtonGroup>- </Stack>- </Box>+ <FaHeart className="inline text-red-500" fontSize="1.25rem" /> by{' '}+ <a href="https://felisk.io">Felix Wotschofsky</a>+ </p>++ <Button variant="ghost" asChild>+ <a href="https://github.com/feliskio/domain-digger" target="_blank">+ <FaGithub className="h-6 w-6" />+ </a>+ </Button>+ </div>+ </footer>);export default Footer;diff --git a/components/Header.tsx b/components/Header.tsxindex 2c802e8..80708af 100644--- a/components/Header.tsx+++ b/components/Header.tsx@@ -1,48 +1,11 @@-import {- Box,- ButtonGroup,- IconButton,- Stack,- Text,- useColorMode,-} from '@chakra-ui/react';import Link from 'next/link';-import { FaMoon, FaSun } from 'react-icons/fa';-const Header = () => {- const { colorMode, toggleColorMode } = useColorMode();-- return (- <Box- as="header"- role="contentinfo"- w="100%"- maxW="7xl"- py="4"- px={{ base: '4', md: '8' }}- >- <Stack direction="row" spacing="4" align="center" justify="space-between">- <Text fontSize="xl">- <Link href="/">Domain Digger</Link>- </Text>- <ButtonGroup variant="ghost" color="gray.600">- <IconButton- as="a"- href="#"- onClick={toggleColorMode}- aria-label="Color Mode"- icon={- colorMode === 'light' ? (- <FaMoon fontSize="20px" />- ) : (- <FaSun fontSize="20px" />- )- }- />- </ButtonGroup>- </Stack>- </Box>- );-};+const Header = () => (+ <header className="w-full p-4 md:px-8">+ <div className="flex flex-col items-center justify-between pb-4 sm:flex-row">+ <Link href="/">Domain Digger</Link>+ </div>+ </header>+);export default Header;