testing this shit

This commit is contained in:
2025-06-20 16:05:57 +02:00
parent d0cc983331
commit 803b9899df
5 changed files with 1176 additions and 25 deletions

View File

@@ -14,7 +14,11 @@ export default function AboutButton() {
label="ABOUT ME"
color="#2563eb"
icon={InfoIcon}
onClick={() => window.open('http://' + window.location.hostname + ':80', '_blank')}
onClick={() => {
if (typeof window !== 'undefined') {
window.open('http://' + window.location.hostname + ':80', '_blank');
}
}}
/>
);
}

View File

@@ -27,7 +27,7 @@ export default function HeaderButtons() {
/>
</a>
{/* If your server for about me is running on a different port, change the port number here */}
<a href={window.location.origin.replace('3000', '80')} target="_self" rel="noopener noreferrer">
<a href={typeof window !== 'undefined' ? window.location.origin.replace('3000', '80') : '#'} target="_self" rel="noopener noreferrer">
<img
src="https://img.shields.io/badge/About%20Me-000000?style=for-the-badge&logo=account&logoColor=white&labelColor=2563eb"
alt="About Me"