feat: enable React Compiler, optimizePackageImports for lucide-react, add loading states for (site) and client routes
Local Build and Deploy / deploy (push) Successful in 1m19s
Local Build and Deploy / deploy (push) Successful in 1m19s
This commit is contained in:
1 parent
ccd4994028
commit
2beba07ba5
5 files changed
+58
-14
No files matched your search
@@ -0,0 +1,15 @@
|
||||
export default function SiteLoading() {
|
||||
return (
|
||||
<div
|
||||
style={{ display: "flex", justifyContent: "center", padding: "4rem 0" }}
|
||||
>
|
||||
<div
|
||||
className="animate-spin w-8 h-8 border-4 rounded-full"
|
||||
style={{
|
||||
borderColor: "var(--color-primary)",
|
||||
borderTopColor: "transparent",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
export default function ClientLoading() {
|
||||
return (
|
||||
<div
|
||||
className="flex items-center justify-center min-h-screen"
|
||||
style={{ background: "var(--color-background)" }}
|
||||
>
|
||||
<div
|
||||
className="animate-spin w-10 h-10 border-4 rounded-full"
|
||||
style={{
|
||||
borderColor: "var(--color-primary)",
|
||||
borderTopColor: "transparent",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user