update deps

This commit is contained in:
Aman Varshney
2025-02-26 18:08:19 +05:30
parent 1c3114fe17
commit e1eb09429a
6 changed files with 181 additions and 127 deletions

View 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;

View File

@@ -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";