2025-01-06 12:39:09 -05:00
|
|
|
"use client";
|
|
|
|
|
|
|
|
import { useState } from 'react'
|
2025-01-05 14:33:52 -05:00
|
|
|
import Link from 'next/link'
|
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
2025-01-06 01:23:00 -05:00
|
|
|
import { faWordpressSimple } from '@fortawesome/free-brands-svg-icons'
|
2025-01-06 17:12:37 -05:00
|
|
|
import { faLink, faHouse, faUser, faPhone, faBars, faTimes, faTerminal } from '@fortawesome/free-solid-svg-icons'
|
2025-01-05 14:33:52 -05:00
|
|
|
|
|
|
|
export default function Header() {
|
2025-01-06 12:39:09 -05:00
|
|
|
const [isOpen, setIsOpen] = useState(false)
|
|
|
|
|
|
|
|
const toggleMenu = () => {
|
|
|
|
setIsOpen(!isOpen)
|
|
|
|
}
|
|
|
|
|
2025-01-05 14:33:52 -05:00
|
|
|
return (
|
|
|
|
<header className="bg-gray-800">
|
2025-01-06 12:39:09 -05:00
|
|
|
<nav className="container mx-auto px-4 py-6 flex justify-between items-center">
|
2025-01-06 17:12:37 -05:00
|
|
|
<Link href="/" className="text-gray-300 hover:text-white text-2xl">aidxn.cc</Link>
|
2025-01-06 12:39:09 -05:00
|
|
|
<div className="md:hidden">
|
|
|
|
<button onClick={toggleMenu} className="text-gray-300 focus:outline-none">
|
|
|
|
<FontAwesomeIcon icon={isOpen ? faTimes : faBars} className="text-2xl" />
|
|
|
|
</button>
|
|
|
|
</div>
|
2025-01-06 13:08:40 -05:00
|
|
|
<ul className={`flex-col md:flex-row md:flex space-x-0 md:space-x-3 absolute md:static bg-gray-800 md:bg-transparent w-full md:w-auto left-0 md:left-auto top-16 md:top-auto transition-all duration-300 ease-in-out ${isOpen ? 'flex' : 'hidden'}`}>
|
2025-01-06 12:39:09 -05:00
|
|
|
<li><Link href="/" className="flex items-center text-gray-300 hover:text-white hover:bg-gray-700 rounded-md px-3 py-2 transition-all"><FontAwesomeIcon icon={faHouse} className="text-md mr-2" /> Home</Link></li>
|
|
|
|
<li><Link href="/about" className="flex items-center text-gray-300 hover:text-white hover:bg-gray-700 rounded-md px-3 py-2 transition-all"><FontAwesomeIcon icon={faUser} className="text-md mr-2" /> About</Link></li>
|
|
|
|
<li><Link href="/contact" className="flex items-center text-gray-300 hover:text-white hover:bg-gray-700 rounded-md px-3 py-2 transition-all"><FontAwesomeIcon icon={faPhone} className="text-md mr-2" /> Contact</Link></li>
|
|
|
|
<li><Link href="/domains" className="flex items-center text-gray-300 hover:text-white hover:bg-gray-700 rounded-md px-3 py-2 transition-all"><FontAwesomeIcon icon={faLink} className="text-md mr-2" /> Domains</Link></li>
|
|
|
|
<li><Link href="https://blog.aidxn.fun/" className="flex items-center text-gray-300 hover:text-white hover:bg-gray-700 rounded-md px-3 py-2 transition-all"><FontAwesomeIcon icon={faWordpressSimple} className="text-md mr-2" /> Blog</Link></li>
|
2025-01-06 17:12:37 -05:00
|
|
|
<li className="flex items-center">
|
|
|
|
<Link href="https://tilde.club/~lxu" className="flex items-center text-gray-300 hover:text-white hover:bg-gray-700 rounded-md px-3 py-2 transition-all">
|
|
|
|
<FontAwesomeIcon icon={faTerminal} className="text-md mr-2" /> Tilde
|
|
|
|
</Link>
|
|
|
|
<a href="https://tilde.wiki/Tildeverse" className="text-gray-300 hover:text-green-400 ml-1" target="_blank" rel="noopener noreferrer">
|
|
|
|
<sup>what?</sup>
|
|
|
|
</a>
|
|
|
|
</li>
|
2025-01-05 14:33:52 -05:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
)
|
2025-01-06 12:39:09 -05:00
|
|
|
}
|