Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Add animation for login screen and improve app loading screen (#252)
Hakan Shehucff19b1c5b91
diff --git a/packages/ui/src/components/app/app-loading.tsx b/packages/ui/src/components/app/app-loading.tsxindex f78f7da9..6823be5e 100644--- a/packages/ui/src/components/app/app-loading.tsx+++ b/packages/ui/src/components/app/app-loading.tsx@@ -5,11 +5,11 @@ export const AppLoading = () => {return (<div className="min-w-screen flex h-full min-h-screen w-full items-center justify-center"><DelayedComponent>- <div className="flex flex-col items-center gap-8 text-center">- <h2 className="font-satoshi text-4xl">loading your workspaces</h2>- <div>- <Spinner />- </div>+ <div className="flex flex-row items-center gap-6">+ <h2 className="font-satoshi tracking-tight text-4xl">+ loading your workspace+ </h2>+ <Spinner className="size-6" /></div></DelayedComponent></div>diff --git a/packages/ui/src/components/auth/auth-layout.tsx b/packages/ui/src/components/auth/auth-layout.tsxindex a353bf5a..ff6dc0c4 100644--- a/packages/ui/src/components/auth/auth-layout.tsx+++ b/packages/ui/src/components/auth/auth-layout.tsx@@ -16,8 +16,10 @@ export const AuthLayout = () => {<div className="w-full flex lg:flex-row flex-col items-center justify-center lg:gap-40 gap-20"><div className="flex flex-col items-center justify-center bg-background px-6 py-12"><div className="flex flex-row items-center">- <ColanodeLogo className="size-16 lg:size-50" />- <p className="font-antonio text-3xl">+ <div className="logo-draw-animation">+ <ColanodeLogo className="size-16 lg:size-50" />+ </div>+ <p className="font-satoshi text-3xl tracking-tight">Your all-in-one <br /> collaboration platform</p></div>diff --git a/packages/ui/src/styles/globals.css b/packages/ui/src/styles/globals.cssindex d8f667d8..d61845ca 100644--- a/packages/ui/src/styles/globals.css+++ b/packages/ui/src/styles/globals.css@@ -77,3 +77,50 @@[data-radix-scroll-area-viewport] > div {height: 100%;}++@keyframes draw-path {+ from {+ stroke-dashoffset: 2000;+ }+ to {+ stroke-dashoffset: 0;+ }+}++@keyframes fade-fill {+ from {+ fill-opacity: 0;+ }+ to {+ fill-opacity: 1;+ }+}++@keyframes hide-stroke {+ to {+ stroke-width: 0;+ }+}++.logo-draw-animation svg path {+ stroke: currentColor;+ stroke-width: 1;+ fill: currentColor;+ fill-opacity: 0;+ stroke-dasharray: 2000;+ stroke-dashoffset: 2000;+ paint-order: stroke fill;+ animation:+ draw-path 3s ease-in-out forwards,+ fade-fill 0.75s ease-in-out 2.85s forwards,+ hide-stroke 0.15s ease-in-out 3.45s forwards;+ stroke-linecap: round;+ stroke-linejoin: round;+}++.logo-draw-animation svg path:nth-child(2) {+ animation:+ draw-path 3s ease-in-out 0.45s forwards,+ fade-fill 0.75s ease-in-out 3.3s forwards,+ hide-stroke 0.15s ease-in-out 3.9s forwards;+}