chore: make page switch transitions smoother
This commit is contained in:
1 parent
c7a990e3fe
commit
244d526933
1 file changed
+8
-8
@@ -945,8 +945,8 @@
|
|||||||
{#if selectedView === 'home'}
|
{#if selectedView === 'home'}
|
||||||
<div
|
<div
|
||||||
class="flex flex-col-reverse h-full"
|
class="flex flex-col-reverse h-full"
|
||||||
in:fly={{ duration: 400, delay: 400, y: 10, opacity: 0 }}
|
in:fly={{ duration: 400, delay: 400, y: 5, opacity: 0 }}
|
||||||
out:fly={{ duration: 400, y: -10, opacity: 0 }}
|
out:fly={{ duration: 400, y: -5, opacity: 0 }}
|
||||||
>
|
>
|
||||||
<div class="relative z-10 px-8 py-4 flex items-center justify-between">
|
<div class="relative z-10 px-8 py-4 flex items-center justify-between">
|
||||||
<div class="flex items-center gap-4">
|
<div class="flex items-center gap-4">
|
||||||
@@ -1067,8 +1067,8 @@
|
|||||||
{#if $currentUserInfo}
|
{#if $currentUserInfo}
|
||||||
<div
|
<div
|
||||||
class="m-1 w-72 h-48 bg-black/40 backdrop-blur-sm rounded-md border border-black/40 flex flex-col items-center p-3"
|
class="m-1 w-72 h-48 bg-black/40 backdrop-blur-sm rounded-md border border-black/40 flex flex-col items-center p-3"
|
||||||
in:fly={{ duration: 400, y: 10, opacity: 0 }}
|
in:fly={{ duration: 400, y: 5, opacity: 0 }}
|
||||||
out:fly={{ duration: 400, y: -10, opacity: 0 }}
|
out:fly={{ duration: 400, y: -5, opacity: 0 }}
|
||||||
>
|
>
|
||||||
<Select.Root
|
<Select.Root
|
||||||
type="single"
|
type="single"
|
||||||
@@ -1220,8 +1220,8 @@
|
|||||||
{:else if selectedView === 'settings'}
|
{:else if selectedView === 'settings'}
|
||||||
<div
|
<div
|
||||||
class="h-[100vh] w-full flex flex-col items-center justify-center"
|
class="h-[100vh] w-full flex flex-col items-center justify-center"
|
||||||
in:fly={{ duration: 400, delay: 400, y: 10, opacity: 0 }}
|
in:fly={{ duration: 400, delay: 400, y: 5, opacity: 0 }}
|
||||||
out:fly={{ duration: 400, y: -10, opacity: 0 }}
|
out:fly={{ duration: 400, y: -5, opacity: 0 }}
|
||||||
>
|
>
|
||||||
<div class="p-8 w-full">
|
<div class="p-8 w-full">
|
||||||
<div class="bg-black/40 backdrop-blur-sm py-8 px-6 rounded-lg">
|
<div class="bg-black/40 backdrop-blur-sm py-8 px-6 rounded-lg">
|
||||||
@@ -1422,8 +1422,8 @@
|
|||||||
{:else if selectedView === 'login'}
|
{:else if selectedView === 'login'}
|
||||||
<div
|
<div
|
||||||
class="h-[100vh] w-full flex flex-col items-center justify-center"
|
class="h-[100vh] w-full flex flex-col items-center justify-center"
|
||||||
in:fly={{ duration: 400, delay: 400, y: 10, opacity: 0 }}
|
in:fly={{ duration: 400, delay: 400, y: 5, opacity: 0 }}
|
||||||
out:fly={{ duration: 400, y: -10, opacity: 0 }}
|
out:fly={{ duration: 400, y: -5, opacity: 0 }}
|
||||||
>
|
>
|
||||||
<div class="p-8 px-52 w-full">
|
<div class="p-8 px-52 w-full">
|
||||||
<form onsubmit={performLogin} class="bg-black/40 backdrop-blur-sm rounded-lg p-8">
|
<form onsubmit={performLogin} class="bg-black/40 backdrop-blur-sm rounded-lg p-8">
|
||||||
|
|||||||
Reference in new issue
Block a user