mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
develop the hero section of the landing page
This commit is contained in:
22
apps/web/components/ShinyText/ShinyText.tsx
Normal file
22
apps/web/components/ShinyText/ShinyText.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
interface ShinyTextProps {
|
||||
text: string;
|
||||
disabled?: boolean;
|
||||
speed?: number;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const ShinyText = ({ text, disabled = false, speed = 5, className = '' }: ShinyTextProps) => {
|
||||
const animationDuration = `${speed}s`;
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`shiny-text ${disabled ? 'disabled' : ''} ${className}`}
|
||||
style={{ animationDuration }}
|
||||
>
|
||||
{text}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default ShinyText;
|
||||
Reference in New Issue
Block a user