mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
update deps
This commit is contained in:
26
apps/web/src/app/(home)/_components/ShinyText.tsx
Normal file
26
apps/web/src/app/(home)/_components/ShinyText.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
@@ -1,5 +1,5 @@
|
||||
"use client";
|
||||
import ShinyText from "components/ShinyText/ShinyText";
|
||||
import ShinyText from "@/app/(home)/_components/ShinyText";
|
||||
import React from "react";
|
||||
import BackgroundGradients from "./_components/BackgroundGradients";
|
||||
import CodeContainer from "./_components/CodeContainer";
|
||||
|
||||
Reference in New Issue
Block a user