diff --git a/src/components/widgets/Footer.astro b/src/components/widgets/Footer.astro index a968c27..b3ef413 100644 --- a/src/components/widgets/Footer.astro +++ b/src/components/widgets/Footer.astro @@ -1,94 +1,65 @@ --- import { Icon } from 'astro-icon'; -import { getHomePermalink, getPermalink, getAsset } from '~/utils/permalinks'; +import { SITE } from '~/config.mjs'; +import { getHomePermalink } from '~/utils/permalinks'; -const links = [ - { - title: 'Product', - items: [ - { title: 'Features', href: '#' }, - { title: 'Security', href: '#' }, - { title: 'Team', href: '#' }, - { title: 'Enterprise', href: '#' }, - { title: 'Customer stories', href: '#' }, - { title: 'Pricing', href: '#' }, - { title: 'Resources', href: '#' }, - ], - }, - { - title: 'Platform', - items: [ - { title: 'Developer API', href: '#' }, - { title: 'Partners', href: '#' }, - { title: 'Atom', href: '#' }, - { title: 'Electron', href: '#' }, - { title: 'AstroWind Desktop', href: '#' }, - ], - }, - { - title: 'Support', - items: [ - { title: 'Docs', href: '#' }, - { title: 'Community Forum', href: '#' }, - { title: 'Professional Services', href: '#' }, - { title: 'Skills', href: '#' }, - { title: 'Status', href: '#' }, - ], - }, - { - title: 'Company', - items: [ - { title: 'About', href: '#' }, - { title: 'Blog', href: '#' }, - { title: 'Careers', href: '#' }, - { title: 'Press', href: '#' }, - { title: 'Inclusion', href: '#' }, - { title: 'Social Impact', href: '#' }, - { title: 'Shop', href: '#' }, - ], - }, -]; +interface Link { + text?: string; + href?: string; + ariaLabel?: string; + icon?: string; +} -const social = [ - { label: 'Twitter', icon: 'tabler:brand-twitter', href: '#' }, - { label: 'Instagram', icon: 'tabler:brand-instagram', href: '#' }, - { label: 'Facebook', icon: 'tabler:brand-facebook', href: '#' }, - { label: 'RSS', icon: 'tabler:rss', href: getAsset('/rss.xml') }, - { label: 'Github', icon: 'tabler:brand-github', href: 'https://github.com/onwidget/astrowind' }, -]; +interface Links { + title?: string; + links: Array; +} + +export interface Props { + links: Array; + secondaryLinks: Array; + socialLinks: Array; + footNote?: string; + theme?: string; +} + +const { socialLinks = [], secondaryLinks = [], links = [], footNote = '', theme = 'light' } = Astro.props; --- -