AstralHalo/src/components/PageFooter.astro
HPCesia 8a8bf19e35 build(deps): upgrade TailwindCSS to v4
- Upgrade TailwindCSS to v4
- Upgrade daisyUI to v5 beta.
- Delete the PostCSS TailwindCSS compatibility layer.
- Delete Sass dependency because TailwindCSS v4 will generate nested CSS, so we don't need Sass anymore.
2025-02-07 21:39:05 +08:00

48 lines
1.1 KiB
Plaintext

---
import { footerConfig, profileConfig } from '@/config';
const currentYear = new Date().getFullYear();
---
<footer class="footer mt-auto shrink-0"></footer>
<footer
class="footer border-base-300 bg-base-200 text-base-content flex flex-col justify-between border-t px-10 py-4 text-lg md:flex-row"
>
<aside class="items-center">
<p>
© {footerConfig.copyrightYear}{
footerConfig.copyrightYear < currentYear && `-${currentYear}`
}
<a href="/about/" class="font-bold">{profileConfig.name}</a>
</p>
</aside>
<nav class="flex flex-row">
{
footerConfig.rightItems.map((item) => (
<span>
{item.map((c) => {
if (typeof c === 'string') return <span>{c}</span>;
else if ('link' in c)
return (
<a href={c.link} class={c.class || ''}>
{c.text}
</a>
);
else return <span class:list={c.class || ''}>{c.text}</span>;
})}
</span>
))
}
</nav>
</footer>
<style>
a {
@apply duration-150;
&:hover {
color: var(--color-primary);
}
}
</style>