Skip to content

Commit 0a672f8

Browse files
committed
Refactor: Updated the h1 text broken typing effect
1 parent 5798336 commit 0a672f8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/pages/home/Header.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function Header() {
3232
setHoveredButton(null);
3333
};
3434

35-
const introText = useTypewriter("Anime Magic with Waifu.it!", 150, 75, 1000); // Typing, erasing & delay
35+
const introText = useTypewriter("Waifu.it!", 250, 75, 1000); // Typing, erasing & delay
3636

3737
return (
3838
<header className="bg-gray-900 py-16">
@@ -41,13 +41,14 @@ export default function Header() {
4141
<div className="mb-10 lg:mb-0 lg:max-w-xl lg:text-left text-white">
4242
{/* Visible on small screens (sm and below), hidden on larger screens */}
4343
<h1 className="block sm:hidden text-3xl font-bold mb-4 leading-tight">
44-
🌟 Unleash{" "}
45-
<span className="text-blue-300">Anime Magic with Waifu.it!</span>
44+
🌟 Unleash Anime Magic with{" "}
45+
<span className="text-blue-300">Waifu.it!</span>
4646
</h1>
4747

4848
{/* Hidden on small screens, visible on larger screens (sm and above) */}
4949
<h1 className="hidden sm:block text-4xl lg:text-5xl font-bold mb-4 leading-tight">
50-
🌟 Unleash <span className="text-blue-300">{introText}</span>
50+
🌟 Unleash Anime Magic with{" "}
51+
<span className="text-blue-300">{introText}</span>
5152
</h1>
5253
<p className="text-lg text-gray-300 mb-6">
5354
🚀 Your ultimate source for anime data and insights. Empowering

0 commit comments

Comments
 (0)