Skip to content

Commit e9d1a8a

Browse files
committed
feat(footer, header): update footer and header links and improve layout
- Added 'Contribute' link to both footer and header navigation. - Updated 'tux' project link in the footer to point to the GitHub repository. - Enhanced key usage in map functions for better performance and readability. - Modified copyright text in the footer for a more engaging presentation.
1 parent e74deef commit e9d1a8a

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

components/layout/footer.tsx

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
FaRss,
88
} from 'react-icons/fa';
99
import { BsOpencollective } from 'react-icons/bs';
10-
import { IoIosArrowUp } from 'react-icons/io';
1110

1211
import { Separator } from '@/components/ui/separator';
1312
import { Privacy, Cookies, Terms, Security } from '@/components/consent';
@@ -21,12 +20,13 @@ const sections = [
2120
{ name: 'Code of Conduct', href: '/code-of-conduct' },
2221
{ name: 'Blog', href: '/blog' },
2322
{ name: 'Apply', href: '/apply' },
23+
{ name: 'Contribute', href: '/contribute' },
2424
],
2525
},
2626
{
2727
title: 'Projects',
2828
links: [
29-
{ name: 'tux', href: 'https://tux.atl.tools' },
29+
{ name: 'tux', href: 'https://github.com/allthingslinux/tux' },
3030
{ name: 'atl.wiki', href: 'https://atl.wiki' },
3131
{ name: 'atl.tools', href: 'https://atl.tools' },
3232
{ name: 'atl.chat', href: 'https://atl.chat' },
@@ -115,8 +115,8 @@ const FooterSection = ({
115115
<div>
116116
<h3 className="mb-4 font-bold">{title}</h3>
117117
<ul className="space-y-4 text-muted-foreground">
118-
{links.map((link, linkIdx) => (
119-
<FooterLink key={linkIdx} name={link.name} href={link.href} />
118+
{links.map((link) => (
119+
<FooterLink key={link.name} name={link.name} href={link.href} />
120120
))}
121121
</ul>
122122
</div>
@@ -144,9 +144,9 @@ const SocialSection = () => (
144144
<div>
145145
<h3 className="mb-4 font-bold md:block hidden">Social</h3>
146146
<ul className="flex items-center justify-center md:justify-start space-x-6 text-muted-foreground">
147-
{socialLinks.map((social, idx) => (
147+
{socialLinks.map((social) => (
148148
<SocialIcon
149-
key={idx}
149+
key={social.label}
150150
Icon={social.icon}
151151
href={social.href}
152152
label={social.label}
@@ -162,15 +162,23 @@ const SocialSection = () => (
162162
163163
</a>
164164
</div>
165+
<div className="mt-5 text-center md:text-left">
166+
<a
167+
href="/open"
168+
className="text-xl font-bold text-muted-foreground hover:text-primary transition-colors"
169+
>
170+
/open
171+
</a>
172+
</div>
165173
</div>
166174
);
167175

168176
// Main sections grid
169177
const FooterSections = () => (
170178
<div className="grid gap-8 md:grid-cols-2 lg:grid-cols-4">
171-
{sections.map((section, sectionIdx) => (
179+
{sections.map((section) => (
172180
<FooterSection
173-
key={sectionIdx}
181+
key={section.title}
174182
title={section.title}
175183
links={section.links}
176184
/>
@@ -206,8 +214,7 @@ const MobileFooter = () => (
206214
const DesktopCopyright = () => (
207215
<div className="hidden md:flex justify-between items-center">
208216
<p className="text-sm text-muted-foreground">
209-
© {new Date().getFullYear()} All Things Linux • Made with ❤️ • All Rights
210-
Reserved
217+
All Things Linux • Made with ☕ & 💛
211218
</p>
212219
<a
213220
href="https://github.com/allthingslinux/allthingslinux"

components/layout/header.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const navItems = [
2424
{ name: 'Tools', href: 'https://atl.tools' },
2525
{ name: 'Open', href: '/open' },
2626
{ name: 'Apply', href: '/apply' },
27+
{ name: 'Contribute', href: '/contribute' },
2728
];
2829

2930
// Logo component

0 commit comments

Comments
 (0)