import React from 'react'; import { createStyles, Anchor, Text, Group, ActionIcon } from '@mantine/core'; import { BrandGithub, Phone, BrandGmail } from 'tabler-icons-react'; import { posix } from 'path'; const useStyles = createStyles((theme) => ({ footer: { borderTop: `1px solid ${ theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[2] }`, }, inner: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: `${theme.spacing.md}px ${theme.spacing.md}px`, [theme.fn.smallerThan('sm')]: { flexDirection: 'column', }, }, links: { [theme.fn.smallerThan('sm')]: { marginTop: theme.spacing.lg, marginBottom: theme.spacing.sm, }, }, })); interface FooterCenteredProps { links: { link: string; label: string }[]; } export function Footer({ links }: FooterCenteredProps) { const { classes } = useStyles(); const items = links.map((link) => ( color="dimmed" key={link.label} href={link.link} sx={{ lineHeight: 1 }} onClick={(event) => event.preventDefault()} size="sm" > {link.label} )); return ( {items} component="a" href={`https://github.com/ajnart/myhomepage`} size="lg"> Made with ❤️ by @ ajnart ); }