Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 30 additions & 5 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
---
/*
* SCAFFOLD: minimal footer. A volunteer ticket builds this out (copyright +
* GitHub/social links). Keep the Carleton accent bar.
*/
import { Icon } from 'astro-icon/components';
const year = new Date().getFullYear();
---

<footer class="text-muted bg-canvas sticky bottom-0 z-10 text-sm">
<!-- Carleton accent bar -->
<div class="bg-accent/80 h-0.5 w-full"></div>
<div class="site-container py-6">Carleton Computer Science Society</div>
<div
class="mx-auto flex max-w-5xl flex-col items-center gap-2 px-4 py-4 sm:flex-row sm:justify-between"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mx-auto max-w-5xl px-4 classes instead of site-container make the footer content unaligned with the main and header content on desktop. Looking at the preview, I think just having site-container handle the spacing would look cleaner, so please remove the 3 classes I pointed out at the beginning and replace with just site-container

To verify this is actually right, the text on the left and right should be aligned with the header's left and right bits and the width of the main content on desktop width.

>
<p>
© {year}{' '}
<a
href="https://ccss.carleton.ca"
target="_blank"
rel="noopener"
class="hover:text-accent underline-offset-2 hover:underline"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now the hover behaviour is inconsistent between this and the Github link (this one underlines, the Github links doesn't). Please make them consistent by removing the underline here so it just turns red on hover (consistent with other links on the site as well)

>
Carleton Computer Science Society
</a>
</p>
<a
href="https://github.com/CarletonComputerScienceSociety/showcase"
target="_blank"
rel="noopener"
class="hover:text-accent inline-flex items-center gap-1"
>
GitHub
<Icon
name="lucide:external-link"
class="h-3.5 w-3.5"
aria-hidden="true"
/>
</a>
</div>
</footer>
Loading