Files
realm-homepage/src/components/cool-header-text.tsx
mauro-balades 3f5b6dec04 refactor: Update cool-header-text.tsx
Update the cool-header-text component to display a new text for the header. Instead of "Beautiful. Fast. Private. Stay focused, browse faster 🚀", it now says "Stay focused, browse faster with Zen 🚀". Also, adjust the positioning of the alpha version badge.
2024-10-07 17:30:11 +02:00

37 lines
1.2 KiB
TypeScript

import styled, { keyframes } from "styled-components";
const hueShift = keyframes`
0% {
filter: hue-rotate(0deg);
}
50% {
filter: hue-rotate(170deg);
}
100% {
filter: hue-rotate(0deg);
}
`;
const TextTitle = styled.h1`
background-clip: text;
background-image: linear-gradient(90deg, #0077e7, #01d8d1);
filter: hue-rotate(0deg);
animation: ${hueShift} 10s infinite linear 1s;
padding-bottom: 8px;
`;
export default function CoolHeaderText() {
return (
<>
<div className="relative mb-3 mt-5 -translate-y-4 animate-fade-in text-balance bg-gradient-to-br from-30% to-black/40 bg-clip-text py-6 text-5xl font-extrabold font-semibold leading-none tracking-tighter text-transparent opacity-0 [--animation-delay:200ms] dark:from-white dark:to-white/40 sm:text-6xl md:text-7xl lg:text-8xl">
<TextTitle>
Stay focused, browse faster with Zen 🚀
</TextTitle>
</div>
<div className="pointer-events-none absolute right-20 top-[-5px] mt-12 hidden h-fit w-fit !rotate-[15deg] transform animate-fade-in rounded-full bg-blue-500 px-3 py-1 text-white opacity-0 shadow [--animation-delay:400ms] md:block">
Alpha Version
</div>
</>
);
}