mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-07 05:05:18 +02:00
✨ style: add back to top in footer
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Github, Twitter, Youtube, Book, MessageSquare, Newspaper, HelpCircle } from 'lucide-react';
|
||||
import { Github, Twitter, Youtube, Book, MessageSquare, Newspaper, HelpCircle, ChevronUp } from 'lucide-react';
|
||||
|
||||
const footerNavigation = {
|
||||
// Define the footer navigation structure with TypeScript
|
||||
interface FooterLink {
|
||||
name: string;
|
||||
href: string;
|
||||
icon?: React.ComponentType<{ className?: string }>;
|
||||
}
|
||||
|
||||
const footerNavigation: {
|
||||
main: FooterLink[];
|
||||
resources: FooterLink[];
|
||||
community: FooterLink[];
|
||||
} = {
|
||||
main: [
|
||||
{ name: 'Gallery', href: '/gallery' },
|
||||
{ name: 'Developers', href: '/developers' },
|
||||
@@ -27,9 +38,10 @@ export function Footer() {
|
||||
<footer className="bg-gray-900 text-gray-300">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
||||
<div className="grid grid-cols-1 md:grid-cols-4 gap-8">
|
||||
{/* Logo and Social Links */}
|
||||
<div className="space-y-4">
|
||||
<h3 className="text-lg font-semibold text-white">Snigdha OS</h3>
|
||||
<p className="text-sm">
|
||||
<h3 className="text-xl font-bold text-white">Snigdha OS</h3>
|
||||
<p className="text-sm leading-6">
|
||||
The most advanced penetration testing distribution, designed for security professionals and enthusiasts.
|
||||
</p>
|
||||
<div className="flex space-x-4">
|
||||
@@ -37,22 +49,26 @@ export function Footer() {
|
||||
<a
|
||||
key={item.name}
|
||||
href={item.href}
|
||||
className="hover:text-white transition-colors"
|
||||
className="hover:text-white transition transform hover:scale-110"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<item.icon className="h-5 w-5" />
|
||||
{item.icon && <item.icon className="h-5 w-5" />}
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Navigation Section */}
|
||||
<div>
|
||||
<h3 className="text-sm font-semibold text-white uppercase tracking-wider mb-4">Navigation</h3>
|
||||
<ul className="space-y-3">
|
||||
{footerNavigation.main.map((item) => (
|
||||
<li key={item.name}>
|
||||
<Link to={item.href} className="hover:text-white transition-colors">
|
||||
<Link
|
||||
to={item.href}
|
||||
className="hover:text-white transition transform hover:scale-105"
|
||||
>
|
||||
{item.name}
|
||||
</Link>
|
||||
</li>
|
||||
@@ -60,13 +76,17 @@ export function Footer() {
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{/* Resources Section */}
|
||||
<div>
|
||||
<h3 className="text-sm font-semibold text-white uppercase tracking-wider mb-4">Resources</h3>
|
||||
<ul className="space-y-3">
|
||||
{footerNavigation.resources.map((item) => (
|
||||
<li key={item.name}>
|
||||
<Link to={item.href} className="flex items-center gap-2 hover:text-white transition-colors">
|
||||
<item.icon className="h-4 w-4" />
|
||||
<Link
|
||||
to={item.href}
|
||||
className="flex items-center gap-2 hover:text-white transition transform hover:scale-105"
|
||||
>
|
||||
{item.icon && <item.icon className="h-4 w-4" />}
|
||||
{item.name}
|
||||
</Link>
|
||||
</li>
|
||||
@@ -74,6 +94,7 @@ export function Footer() {
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{/* Community Section */}
|
||||
<div>
|
||||
<h3 className="text-sm font-semibold text-white uppercase tracking-wider mb-4">Community</h3>
|
||||
<ul className="space-y-3">
|
||||
@@ -81,11 +102,11 @@ export function Footer() {
|
||||
<li key={item.name}>
|
||||
<a
|
||||
href={item.href}
|
||||
className="flex items-center gap-2 hover:text-white transition-colors"
|
||||
className="flex items-center gap-2 hover:text-white transition transform hover:scale-105"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<item.icon className="h-4 w-4" />
|
||||
{item.icon && <item.icon className="h-4 w-4" />}
|
||||
{item.name}
|
||||
</a>
|
||||
</li>
|
||||
@@ -94,11 +115,27 @@ export function Footer() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Footer Bottom Section */}
|
||||
<div className="mt-12 pt-8 border-t border-gray-800 text-sm text-center">
|
||||
<p>© {currentYear} Snigdha OS - All rights reserved. Powered by <b className="text-cornflower-blue">Tonmoy Infrastructure™</b></p>
|
||||
<p>Developed with ❤️ by <b className="text-cornflower-blue"><u>Snigdha OS Open Source Team.</u></b></p>
|
||||
<p>
|
||||
© {currentYear} Snigdha OS - All rights reserved. Powered by{' '}
|
||||
<b className="text-cornflower-blue">Tonmoy Infrastructure™</b>
|
||||
</p>
|
||||
<p>
|
||||
Developed with ❤️ by{' '}
|
||||
<b className="text-cornflower-blue">
|
||||
<u>Snigdha OS Open Source Team.</u>
|
||||
</b>
|
||||
</p>
|
||||
{/* Back-to-Top Button */}
|
||||
<button
|
||||
onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })}
|
||||
className="mt-4 p-2 bg-cornflower-blue rounded-full text-white shadow-md hover:shadow-lg transition"
|
||||
>
|
||||
<ChevronUp className="h-5 w-5" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user