add cursor pointer, add server detail animation
This commit is contained in:
@@ -8,6 +8,7 @@ import VPNServeIcon from '../../images/vpn_server_icon.png';
|
|||||||
import { Filters } from '../../components/Filters';
|
import { Filters } from '../../components/Filters';
|
||||||
import { observer } from 'mobx-react-lite';
|
import { observer } from 'mobx-react-lite';
|
||||||
import ReactCountryFlag from 'react-country-flag';
|
import ReactCountryFlag from 'react-country-flag';
|
||||||
|
import Transition from '../../utils/Transition';
|
||||||
|
|
||||||
const filters = {
|
const filters = {
|
||||||
'View All': 'all',
|
'View All': 'all',
|
||||||
@@ -150,8 +151,16 @@ PersistentKeepalive = 25
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Sidebar */}
|
{/* Sidebar */}
|
||||||
{servers?.length > 0 && servers?.[selectedServer]?.state && (
|
|
||||||
<div>
|
<Transition
|
||||||
|
show={servers?.length > 0 && servers?.[selectedServer]?.state}
|
||||||
|
enter="transition-transform duration-200 ease-in"
|
||||||
|
enterStart="translate-x-full"
|
||||||
|
enterEnd="translate-x-"
|
||||||
|
leave="transition-transform duration-200 ease-out"
|
||||||
|
leaveStart="translate-x-"
|
||||||
|
leaveEnd="translate-x-full"
|
||||||
|
>
|
||||||
<div className="lg:sticky lg:top-16 bg-slate-50 lg:overflow-x-hidden lg:overflow-y-auto no-scrollbar lg:shrink-0 border-t lg:border-t-0 lg:border-l border-slate-200 lg:w-[390px] lg:h-[calc(100vh-64px)]">
|
<div className="lg:sticky lg:top-16 bg-slate-50 lg:overflow-x-hidden lg:overflow-y-auto no-scrollbar lg:shrink-0 border-t lg:border-t-0 lg:border-l border-slate-200 lg:w-[390px] lg:h-[calc(100vh-64px)]">
|
||||||
<div className="py-8 px-4 lg:px-8 h-full">
|
<div className="py-8 px-4 lg:px-8 h-full">
|
||||||
<div className="max-w-sm mx-auto lg:max-w-none flex flex-col justify-between h-full">
|
<div className="max-w-sm mx-auto lg:max-w-none flex flex-col justify-between h-full">
|
||||||
@@ -216,8 +225,7 @@ PersistentKeepalive = 25
|
|||||||
<div>Spent This Month</div>
|
<div>Spent This Month</div>
|
||||||
<div className="italic">
|
<div className="italic">
|
||||||
{servers?.[selectedServer]?.transferSum}{' '}
|
{servers?.[selectedServer]?.transferSum}{' '}
|
||||||
<span className="text-slate-400">/</span> 50.00
|
<span className="text-slate-400">/</span> 50.00 GB
|
||||||
GB
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="relative w-full h-2 bg-slate-300">
|
<div className="relative w-full h-2 bg-slate-300">
|
||||||
@@ -249,8 +257,7 @@ PersistentKeepalive = 25
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</Transition>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ function SidebarLinkGroup({ children, activecondition }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<li
|
<li
|
||||||
className={`px-3 py-2 rounded-sm mb-0.5 last:mb-0 ${
|
className={`px-3 py-2 rounded-sm mb-0.5 cursor-pointer last:mb-0 ${
|
||||||
activecondition && 'bg-slate-900'
|
activecondition && 'bg-slate-900'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user