devblog/src/components/Footer.astro

27 lines
686 B
Text
Raw Normal View History

2024-12-25 02:14:10 -05:00
---
import Hr from "./Hr.astro";
import Socials from "./Socials.astro";
const currentYear = new Date().getFullYear();
export interface Props {
noMarginTop?: boolean;
}
const { noMarginTop = false } = Astro.props;
---
2025-03-08 19:45:21 -05:00
<footer class:list={["w-full", { "mt-auto": !noMarginTop }]}>
2024-12-25 02:14:10 -05:00
<Hr noPadding />
2025-03-08 19:45:21 -05:00
<div
class="flex flex-col items-center justify-between py-6 sm:flex-row-reverse sm:py-4"
>
2024-12-25 02:14:10 -05:00
<Socials centered />
2025-03-08 19:45:21 -05:00
<div class="my-2 flex flex-col items-center whitespace-nowrap sm:flex-row">
2024-12-25 02:14:10 -05:00
<span>Copyright &#169; {currentYear}</span>
2025-03-08 19:45:21 -05:00
<span class="hidden sm:inline">&nbsp;|&nbsp;</span>
2024-12-25 02:14:10 -05:00
<span>All rights reserved.</span>
</div>
</div>
</footer>