Fix color fading

This commit is contained in:
Ategon 2025-01-19 19:03:37 -05:00
parent 373aff3911
commit ce224af649
9 changed files with 16 additions and 16 deletions
src
app
login
signup
components
editor
jam-header
posts
streams
theme-toggle
timers

View file

@ -105,7 +105,7 @@ export default function UserPage() {
Reset Reset
</Button> </Button>
</div> </div>
<p className="text-[#333] dark:text-white transition-color duration-500 ease-in-out"> <p className="text-[#333] dark:text-white transition-color duration-250">
Don&apos;t have an account? <Link href="/signup">Sign up</Link> Don&apos;t have an account? <Link href="/signup">Sign up</Link>
</p> </p>
</Form> </Form>

View file

@ -129,7 +129,7 @@ export default function UserPage() {
Reset Reset
</Button> </Button>
</div> </div>
<p className="text-[#333] dark:text-white transition-color duration-500 ease-in-out"> <p className="text-[#333] dark:text-white transition-color duration-250">
Already have an account? <Link href="/login">Log In</Link> Already have an account? <Link href="/login">Log In</Link>
</p> </p>
</Form> </Form>

View file

@ -97,7 +97,7 @@ export default function Editor({ content, setContent }: EditorProps) {
editorProps: { editorProps: {
attributes: { attributes: {
class: class:
"prose dark:prose-invert min-h-[150px] max-h-[400px] overflow-y-auto cursor-text rounded-md border p-5 focus-within:outline-none focus-within:border-blue-500 transform-all duration-500 ease-in-out", "prose dark:prose-invert min-h-[150px] max-h-[400px] overflow-y-auto cursor-text rounded-md border p-5 focus-within:outline-none focus-within:border-blue-500 !duration-250 !ease-linear !transition-all",
}, },
}, },
}); });
@ -115,7 +115,7 @@ export default function Editor({ content, setContent }: EditorProps) {
: editor.storage.characterCount.characters() > limit / 2 : editor.storage.characterCount.characters() > limit / 2
? "text-yellow-500" ? "text-yellow-500"
: "text-[#888] dark:text-[#555]" : "text-[#888] dark:text-[#555]"
} transform-color duration-500 ease-in-out flex items-center gap-3`} } transform-color duration-250 ease-linear flex items-center gap-3`}
> >
<svg width="30" height="30" viewBox="0 0 36 36"> <svg width="30" height="30" viewBox="0 0 36 36">
<circle <circle
@ -125,7 +125,7 @@ export default function Editor({ content, setContent }: EditorProps) {
fill="none" fill="none"
stroke={theme === "dark" ? "#333" : "#eee"} stroke={theme === "dark" ? "#333" : "#eee"}
strokeWidth="3" strokeWidth="3"
className="transform-all duration-500 ease-in-out" className="!duration-250 !ease-linear !transition-all"
/> />
<circle <circle
id="progress-circle" id="progress-circle"
@ -146,7 +146,7 @@ export default function Editor({ content, setContent }: EditorProps) {
(1 - editor.storage.characterCount.characters() / limit) * 100 (1 - editor.storage.characterCount.characters() / limit) * 100
} }
transform="rotate(-90 18 18)" transform="rotate(-90 18 18)"
className="transform-all duration-500 ease-in-out" className="!duration-250 !ease-linear !transition-all"
/> />
</svg> </svg>
{editor.storage.characterCount.characters()} / {limit} characters {editor.storage.characterCount.characters()} / {limit} characters

View file

@ -2,8 +2,8 @@ import { Calendar } from "lucide-react";
export default function JamHeader() { export default function JamHeader() {
return ( return (
<div className="bg-[#7090b9] dark:bg-[#124a88] flex rounded-2xl overflow-hidden text-white transition-color duration-500 ease-in-out"> <div className="bg-[#7090b9] dark:bg-[#124a88] flex rounded-2xl overflow-hidden text-white transition-color duration-250">
<div className="bg-[#85bdd2] dark:bg-[#1892b3] p-4 px-6 flex items-center gap-2 font-bold transition-color duration-500 ease-in-out"> <div className="bg-[#85bdd2] dark:bg-[#1892b3] p-4 px-6 flex items-center gap-2 font-bold transition-color duration-250">
<Calendar /> <Calendar />
<p>Dare2Jam 1</p> <p>Dare2Jam 1</p>
</div> </div>

View file

@ -46,7 +46,7 @@ export default function PostCard({
return ( return (
<Card <Card
className="bg-opacity-60 !duration-500 ease-in-out !transition-all" className="bg-opacity-60 !duration-250 !ease-linear !transition-all"
style={{ display: hidden ? "none" : "flex" }} style={{ display: hidden ? "none" : "flex" }}
> >
<CardBody className="p-5"> <CardBody className="p-5">
@ -128,7 +128,7 @@ export default function PostCard({
<Spacer y={4} /> <Spacer y={4} />
<div <div
className="prose dark:prose-invert transition-all !duration-500 ease-in-out" className="prose dark:prose-invert !duration-250 !ease-linear !transition-all"
dangerouslySetInnerHTML={{ __html: post.content }} dangerouslySetInnerHTML={{ __html: post.content }}
/> />

View file

@ -75,7 +75,7 @@ export default function Posts() {
<DropdownTrigger> <DropdownTrigger>
<Button <Button
size="sm" size="sm"
className="text-xs bg-white dark:bg-[#252525] transition-all !duration-500 ease-in-out text-[#333] dark:text-white" className="text-xs bg-white dark:bg-[#252525] !duration-250 !ease-linear !transition-all text-[#333] dark:text-white"
variant="faded" variant="faded"
> >
{sort.charAt(0).toUpperCase() + sort.slice(1)} {sort.charAt(0).toUpperCase() + sort.slice(1)}
@ -94,7 +94,7 @@ export default function Posts() {
</Dropdown> </Dropdown>
<Button <Button
size="sm" size="sm"
className="text-xs bg-white dark:bg-[#252525] transition-all !duration-500 ease-in-out text-[#333] dark:text-white" className="text-xs bg-white dark:bg-[#252525] !duration-250 !ease-linear !transition-all text-[#333] dark:text-white"
variant="faded" variant="faded"
onPress={() => { onPress={() => {
toast.warning("Flair filtering functionality coming soon"); toast.warning("Flair filtering functionality coming soon");
@ -108,7 +108,7 @@ export default function Posts() {
<DropdownTrigger> <DropdownTrigger>
<Button <Button
size="sm" size="sm"
className="text-xs bg-white dark:bg-[#252525] transition-all !duration-500 ease-in-out text-[#333] dark:text-white" className="text-xs bg-white dark:bg-[#252525] !duration-250 !ease-linear !transition-all text-[#333] dark:text-white"
variant="faded" variant="faded"
> >
{style.charAt(0).toUpperCase() + style.slice(1)} {style.charAt(0).toUpperCase() + style.slice(1)}

View file

@ -50,7 +50,7 @@ export default function Streams() {
const currentStreamer = streamers[currentIndex]; // Get the currently displayed streamer const currentStreamer = streamers[currentIndex]; // Get the currently displayed streamer
return ( return (
<div className="text-[#333] dark:text-white text-center p-6"> <div className="text-[#333] dark:text-white text-center p-6 transition-color duration-250">
<h1>Featured Streamer</h1> <h1>Featured Streamer</h1>
<div <div
style={{ style={{

View file

@ -32,7 +32,7 @@ export default function ThemeToggle() {
style={{ cursor: "pointer" }} style={{ cursor: "pointer" }}
className={`${isSpinning && "animate-[spin_0.5s_ease-out]"} `} className={`${isSpinning && "animate-[spin_0.5s_ease-out]"} `}
> >
<div className="duration-500 ease-in-out transition-all transform text-[#333] dark:text-white hover:scale-125"> <div className="!duration-250 !ease-linear !transition-all transform text-[#333] dark:text-white hover:scale-125">
{resolvedTheme === "dark" && <Moon />} {resolvedTheme === "dark" && <Moon />}
{resolvedTheme === "light" && <Sun />} {resolvedTheme === "light" && <Sun />}
</div> </div>

View file

@ -3,7 +3,7 @@ import Timer from "./Timer";
export default function Timers() { export default function Timers() {
return ( return (
<div className="text-[#333] dark:text-white ease-in-out transition-color duration-500"> <div className="text-[#333] dark:text-white transition-color duration-250">
<Timer <Timer
name="Jam Start" name="Jam Start"
targetDate={new Date("2025-04-04T18:00:00-05:00")} targetDate={new Date("2025-04-04T18:00:00-05:00")}