wip: cross platform ui

This commit is contained in:
Ren Amamiya
2023-08-28 16:00:11 +07:00
parent 5a3207f878
commit c89e7e48ee
86 changed files with 376 additions and 416 deletions

View File

@@ -8,7 +8,7 @@ export function AppLayout() {
<div className="shrink-0">
<Navigation />
</div>
<div className="h-full w-full flex-1 bg-black/90">
<div className="h-full w-full flex-1 bg-black/90 backdrop-blur-xl">
<Outlet />
<ScrollRestoration
getKey={(location) => {

View File

@@ -2,7 +2,7 @@ import { Outlet } from 'react-router-dom';
export function AuthLayout() {
return (
<div className="relative h-screen w-screen bg-black/90">
<div className="relative h-screen w-screen bg-black/90 backdrop-blur-xl">
<div className="absolute left-0 top-0 z-50 h-16 w-full" data-tauri-drag-region />
<Outlet />
</div>

View File

@@ -2,7 +2,7 @@ import { Outlet } from 'react-router-dom';
export function NoteLayout() {
return (
<div className="relative h-screen w-screen bg-black/90">
<div className="relative h-screen w-screen bg-black/90 backdrop-blur-xl">
<div className="absolute left-0 top-0 z-50 h-16 w-full" data-tauri-drag-region />
<Outlet />
</div>

View File

@@ -21,7 +21,9 @@ export function SettingsLayout() {
className={({ isActive }) =>
twMerge(
'flex h-9 items-center gap-2.5 rounded-md px-2.5',
isActive ? 'bg-white/10 text-white' : 'text-white/80'
isActive
? 'bg-white/10 text-white backdrop-blur-xl'
: 'text-white/80'
)
}
>
@@ -32,7 +34,9 @@ export function SettingsLayout() {
className={({ isActive }) =>
twMerge(
'flex h-9 items-center gap-2.5 rounded-md px-2.5',
isActive ? 'bg-white/10 text-white' : 'text-white/80'
isActive
? 'bg-white/10 text-white backdrop-blur-xl'
: 'text-white/80'
)
}
>
@@ -43,7 +47,9 @@ export function SettingsLayout() {
className={({ isActive }) =>
twMerge(
'flex h-9 items-center gap-2.5 rounded-md px-2.5',
isActive ? 'bg-white/10 text-white' : 'text-white/80'
isActive
? 'bg-white/10 text-white backdrop-blur-xl'
: 'text-white/80'
)
}
>
@@ -57,7 +63,7 @@ export function SettingsLayout() {
<LumeBar />
</div>
</div>
<div className="h-full w-full flex-1 bg-black/90">
<div className="h-full w-full flex-1 bg-black/90 backdrop-blur-xl">
<Outlet />
<ScrollRestoration
getKey={(location) => {