feat: better metadata, robots, and sitemap; simplify layout w/ AnimatedTitle and I18nProvider components

This commit is contained in:
Aidan 2025-08-04 02:27:38 -04:00
parent a37938e8c7
commit 5dc930bcbb
5 changed files with 136 additions and 57 deletions

View file

@ -0,0 +1,29 @@
"use client"
import { useEffect } from "react";
export default function AnimatedTitle() {
useEffect(() => {
const title = 'aidxn.cc';
let index = 1;
let forward = true;
const interval = setInterval(() => {
document.title = title.substring(0, index);
if (forward) {
index++;
if (index > title.length) {
forward = false;
index = title.length - 1;
}
} else {
index--;
if (index < 1) {
forward = true;
index = 1;
}
}
}, 500);
return () => clearInterval(interval);
}, []);
return null;
}