Server sidebar

This commit is contained in:
2026-08-18 10:29:40 +02:00
parent bb0b203275
commit 15a2836043
2 changed files with 22 additions and 26 deletions
+10 -18
View File
@@ -1,29 +1,21 @@
import { useRef, useState } from "react"; import { useRef } from "react";
import { invoke } from "@tauri-apps/api/core";
import Enclave from "@/app/app"; import Enclave from "@/app/app";
import { Button } from "@/components/ui/button";
function App() {
const [greetMsg, setGreetMsg] = useState("");
const [name, setName] = useState("");
export default function App() {
const appRef = useRef<Enclave | null>(null); const appRef = useRef<Enclave | null>(null);
if (!appRef.current) { if (!appRef.current) {
appRef.current = new Enclave(); appRef.current = new Enclave();
} }
async function greet() {
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
setGreetMsg(await invoke("greet", { name }));
}
return ( return (
<main> <main className="size-screen dark bg-background">
<div> <aside className="bg-card w-16 h-screen p-2 flex flex-col gap-2.5">
<Button>yo</Button> <img
</div> src="https://github.com/selimaj-dev.png"
className="rounded-full"
/>
<img src="https://github.com/selimaj-dev.png" className="rounded-lg" />
</aside>
</main> </main>
); );
} }
export default App;
+5 -1
View File
@@ -7,7 +7,7 @@
@theme inline { @theme inline {
--font-heading: var(--font-sans); --font-heading: var(--font-sans);
--font-sans: 'Geist Variable', sans-serif; --font-sans: "Geist Variable", sans-serif;
--color-sidebar-ring: var(--sidebar-ring); --color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border); --color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground); --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
@@ -128,3 +128,7 @@
@apply font-sans; @apply font-sans;
} }
} }
body {
overflow: hidden;
}