This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add splash screen to tauri app until config returns response * add splash screen to tauri app until config returns response * remove circular progress * theme adjustments, fading animation * add localization * refetch config after a second after server started
- Loading branch information
1 parent
fda9266
commit c2991ff
Showing
8 changed files
with
98 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React, { memo } from 'react'; | ||
import { motion } from 'framer-motion'; | ||
import { Trans } from 'react-i18next'; | ||
import { LogoFull } from '../../../client/src/icons'; | ||
|
||
type Props = {}; | ||
|
||
const SplashScreen = ({}: Props) => { | ||
return ( | ||
<motion.div | ||
initial={{ opacity: 0 }} | ||
animate={{ opacity: 1 }} | ||
exit={{ opacity: 0 }} | ||
key="splash" | ||
className="w-screen h-screen flex items-center justify-center bg-bg-sub fixed top-0 left-0 z-[1000]" | ||
> | ||
<div className="w-99 rounded-xl border border-bg-border bg-bg-base px-12 py-20 relative animate-pulse-shadow-slow z-0"> | ||
<div | ||
className={`absolute top-0 left-1/2 z-10 transform -translate-x-1/2 h-px w-1/2 | ||
bg-[linear-gradient(90deg,rgba(var(--label-base),0.00)_0%,rgb(var(--label-base))_50%,rgba(var(--label-base),0.00)_100%)]`} | ||
/> | ||
<div | ||
className={`absolute top-0 left-1/2 z-20 transform -translate-x-1/2 h-px w-1/2 animate-opacity-slow | ||
bg-[linear-gradient(90deg,rgba(var(--label-link),0.00)_0%,rgb(var(--label-link))_50%,rgba(var(--label-link),0.00)_100%)]`} | ||
/> | ||
<div className="animate-pulse-slow text-label-title"> | ||
<LogoFull /> | ||
</div> | ||
<div className="flex gap-3 items-center rounded-lg shadow-high border border-bg-border bg-bg-shade px-4 py-2 absolute bottom-0 left-1/2 transform -translate-x-1/2 translate-y-1/2 body-s z-10 text-label-base"> | ||
<Trans>Loading...</Trans> | ||
</div> | ||
</div> | ||
</motion.div> | ||
); | ||
}; | ||
|
||
export default memo(SplashScreen); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters