mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fix react example styling
This commit is contained in:
@@ -8,7 +8,6 @@ import IndexPage from "~/routes/_index";
|
|||||||
const Admin = lazy(() => import("~/routes/admin"));
|
const Admin = lazy(() => import("~/routes/admin"));
|
||||||
import { Center } from "~/components/Center";
|
import { Center } from "~/components/Center";
|
||||||
import { ClientProvider } from "bknd/client";
|
import { ClientProvider } from "bknd/client";
|
||||||
import "bknd/dist/styles.css";
|
|
||||||
|
|
||||||
export default function () {
|
export default function () {
|
||||||
const [app, setApp] = useState<App | undefined>(undefined);
|
const [app, setApp] = useState<App | undefined>(undefined);
|
||||||
|
|||||||
@@ -12,8 +12,7 @@ export default function IndexPage({ app }: { app: App }) {
|
|||||||
const total = todos?.body.meta.total || 0;
|
const total = todos?.body.meta.total || 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div id="app">
|
<Center className="flex-col gap-10 max-w-96 mx-auto">
|
||||||
<Center className="flex-col gap-10 max-w-96 mx-auto text-lg">
|
|
||||||
<div className="flex flex-col gap-2 items-center">
|
<div className="flex flex-col gap-2 items-center">
|
||||||
<img src="/bknd.svg" alt="bknd" className="w-48 dark:invert" />
|
<img src="/bknd.svg" alt="bknd" className="w-48 dark:invert" />
|
||||||
<p className="font-mono">local</p>
|
<p className="font-mono">local</p>
|
||||||
@@ -89,6 +88,5 @@ export default function IndexPage({ app }: { app: App }) {
|
|||||||
</div>*/}
|
</div>*/}
|
||||||
</div>
|
</div>
|
||||||
</Center>
|
</Center>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { Admin, type BkndAdminProps } from "bknd/ui";
|
import { Admin, type BkndAdminProps } from "bknd/ui";
|
||||||
import type { App } from "bknd";
|
import type { App } from "bknd";
|
||||||
|
import "bknd/dist/styles.css";
|
||||||
|
|
||||||
export default function AdminPage({
|
export default function AdminPage({
|
||||||
app,
|
app,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
/* @todo: currently not working nicely */
|
|
||||||
#app {
|
|
||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--background: #ffffff;
|
--background: #ffffff;
|
||||||
--foreground: #171717;
|
--foreground: #171717;
|
||||||
@@ -18,8 +17,12 @@
|
|||||||
--color-foreground: var(--foreground);
|
--color-foreground: var(--foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
width: 100%;
|
body {
|
||||||
min-height: 100dvh;
|
|
||||||
@apply bg-background text-foreground flex;
|
@apply bg-background text-foreground flex;
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 100dvh;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user