Viel Spaß, Ramez

This commit is contained in:
BuildTools
2025-12-19 18:25:38 +01:00
parent 96e46507c8
commit 5d780e0c36
16 changed files with 435 additions and 116 deletions

View File

@@ -0,0 +1,32 @@
import './GradientText.css';
import React, { ReactNode } from 'react';
interface GradientTextProps {
children: ReactNode;
className?: string;
colors?: string[];
animationSpeed?: number;
showBorder?: boolean;
}
export default function GradientText({
children,
className = '',
colors = ['#40ffaa', '#4079ff', '#40ffaa', '#4079ff', '#40ffaa'],
animationSpeed = 8,
showBorder = false
}: GradientTextProps) {
const gradientStyle = {
backgroundImage: `linear-gradient(to right, ${colors.join(', ')})`,
animationDuration: `${animationSpeed}s`
};
return (
<div className={`animated-gradient-text ${className}`}>
{showBorder && <div className="gradient-overlay" style={gradientStyle}></div>}
<div className="text-content" style={gradientStyle}>
{children}
</div>
</div>
);
}