This commit is contained in:
2025-06-19 22:48:21 +02:00
parent 4dd764826f
commit f17a6ddce4

View File

@@ -20,18 +20,19 @@ const InfoIcon = (
export default function HeaderButtons() { export default function HeaderButtons() {
return ( return (
<div className="flex gap-2 justify-center w-full md:w-auto mt-2 md:mt-0"> <div className="flex gap-2 justify-center w-full md:w-auto mt-2 md:mt-0">
<BadgeButton <a href="/admin" target="_self" rel="noopener noreferrer">
label="Admin Login" <img
color="#dc2626" src="https://img.shields.io/badge/Admin%20Login-000000?style=for-the-badge&logo=lock&logoColor=white&labelColor=8B0000"
icon={PersonIcon} alt="Admin Login"
onClick={() => window.location.href = '/admin'} />
/> </a>
<BadgeButton {/* If your server for about me is running on a different port, change the port number here */}
label="About Me" <a href={window.location.origin.replace('3000', '80')} target="_self" rel="noopener noreferrer">
color="#2563eb" <img
icon={InfoIcon} src="https://img.shields.io/badge/About%20Me-000000?style=for-the-badge&logo=account&logoColor=white&labelColor=2563eb"
onClick={() => window.open('http://' + window.location.hostname + ':80', '_blank')} alt="About Me"
/> />
</a>
</div> </div>
); );
} }