Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/admin page #23

Merged
merged 3 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Tarotsol AI</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
Expand Down
14 changes: 14 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Suspense } from 'react';
import { ToastContainer } from 'react-toastify';

import { Loader } from '@/components/common/Loader';
import { FullPageLoader } from '@/components/common/Loader';
import { QueryProvider } from '@/providers/query-provider';
import { RouterProvider } from '@/providers/router-provider';
import { SolanaProvider } from '@/providers/solana-provider';
Expand All @@ -14,7 +14,7 @@ function App() {
return (
<SolanaProvider>
<QueryProvider>
<Suspense fallback={<Loader />}>
<Suspense fallback={<FullPageLoader />}>
<RouterProvider />
<ToastContainer position="bottom-left" />
</Suspense>
Expand Down
20 changes: 17 additions & 3 deletions src/components/common/Loader/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
export const Loader = () => {
const BigSpinner = () => {
return (
<div>
<h1>Loading...</h1>
<div
style={{
clipPath:
"path('m23.5 0C10.5415 0 0 10.5415 0 23.5v60C0 96.4585 10.5415 107 23.5 107h60c12.9585 0 23.5-10.5415 23.5-23.5v-60C107 10.5415 96.4585 0 83.5 0zm0 7h60c9.2015 0 16.5 7.2985 16.5 16.5v60c0 9.2015-7.2985 16.5-16.5 16.5h-60C14.2985 100 7 92.7015 7 83.5v-60C7 14.2985 14.2985 7 23.5 7z')",
}}
className="flex h-[107px] w-[107px] items-center justify-center overflow-visible"
>
<div className="loader-spinner min-h-[125%] min-w-[125%]" />
</div>
);
};

export const FullPageLoader = () => {
return (
<div className="scroll fixed left-0 top-0 z-50 flex h-screen w-screen flex-row items-center justify-center bg-customYellow">
<BigSpinner />
</div>
);
};
22 changes: 22 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,28 @@ body {
}
}

@keyframes rotate-div-rev {
0% {
transform: rotate(0deg);
background-position: 0% 50%;
}
100% {
transform: rotate(-360deg);
}
}

.loader-spinner {
animation: rotate-div-rev 2.5s linear infinite;
background-image: conic-gradient(
from 0 at 50% 50%,
#621421 0deg,
#3a3939 144deg,
#9da990 288deg,
#d4c098 360deg,
#b09256 360deg
);
}

@layer base {
body {
@apply bg-background text-foreground;
Expand Down
Loading