Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
refactor(ScriptPage): replace Spinner with Loader2 component
Browse files Browse the repository at this point in the history
  • Loading branch information
BramSuurdje committed Oct 26, 2024
1 parent 5b32cb6 commit 6a3c923
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 75 deletions.
3 changes: 1 addition & 2 deletions src/app/scripts/_components/ScriptPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import ScriptBrowser from "@/app/scripts/_components/ScriptBrowser";
import ScriptItem from "@/app/scripts/_components/ScriptItem";
import { Spinner } from "@/components/ui/spinner";
import { Category } from "@/lib/types";
import { Loader2 } from "lucide-react";
import { useEffect, useState } from "react";
Expand Down Expand Up @@ -57,7 +56,7 @@ export default function ScriptPage() {
return (
<div className="flex h-screen w-full flex-col items-center justify-center gap-5 bg-background px-4 md:px-6">
<div className="space-y-2 text-center">
<Spinner size="lg" className="bg-black dark:bg-white" />
<Loader2 className="h-10 w-10 animate-spin" />
</div>
</div>
);
Expand Down
67 changes: 0 additions & 67 deletions src/components/ui/spinner.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@
.glass {
backdrop-filter: blur(15px) saturate(100%);
-webkit-backdrop-filter: blur(15px) saturate(100%);
}
}
5 changes: 0 additions & 5 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,12 @@ const config = {
transform: "translateY(-50%)",
},
},
"spinner-leaf-fade": {
"0%, 100%": { opacity: "0" },
"50%": { opacity: "1" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
shine: "shine 8s ease-in-out infinite",
gradient: "gradient 8s linear infinite",
"spinner-leaf-fade": "spinner-leaf-fade 800ms linear infinite",
},
},
},
Expand Down

1 comment on commit 6a3c923

@vercel
Copy link

@vercel vercel bot commented on 6a3c923 Oct 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.