feat: Upgrade template based on projects made with it
Some checks failed
Build, check & Test / run (push) Failing after 42s

Signed-off-by: Florian Bouillon <f.bouillon@aptatio.com>
This commit is contained in:
2023-10-09 11:47:11 +02:00
parent bf06e41238
commit e26b4eb4a5
42 changed files with 934 additions and 136 deletions

View File

@ -0,0 +1,26 @@
---
const year = new Date().getFullYear()
export interface Props {
links?: Array<{href: string, target?: string, display: string}>
socials?: Array<{href: string, target?: string, icon: any}>
}
---
<footer class="w-full flex flex-col bg-white dark:bg-gray-900 mt-32 py-16 px-1 gap-8">
{Astro.props.links && (
<div class="w-full flex justify-center gap-6">
{Astro.props.links.map((it) => (
<a href={it.href} target={it.target ?? "_blank noreferrer nofollow"}>{it.display}</a>
))}
</div>
)}
{Astro.props.socials && (
<div class="flex flex-row w-full justify-center gap-6">
{Astro.props.socials.map((it) => (
<a href={it.href} target={it.target ?? "_blank noreferrer nofollow"}><it.icon /></a>
))}
</div>
)}
<p class="font-light text-center">© {year}&nbsp;<a href="https://www.dzeio.com">Dzeio</a>. Tout droits réservé.</p>
</footer>