mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: fix demo banner
This commit is contained in:
@ -23,7 +23,7 @@ const DemoBanner: React.FC = () => {
|
|||||||
if (!state.show) return null;
|
if (!state.show) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="z-10 flex flex-row items-center justify-center w-full py-2 text-sm sm:text-lg font-medium dark:text-gray-300 bg-white dark:bg-zinc-700 shadow">
|
<div className="mt-4 flex flex-row items-center justify-center w-full rounded-lg sm:rounded-full py-2 text-sm sm:text-lg font-medium dark:text-gray-300 bg-white dark:bg-zinc-700 shadow">
|
||||||
<div className="w-full max-w-6xl px-4 flex flex-row justify-between items-center gap-x-3">
|
<div className="w-full max-w-6xl px-4 flex flex-row justify-between items-center gap-x-3">
|
||||||
<span>✨ A lightweight, self-hosted memo hub. Open Source and Free forever. ✨</span>
|
<span>✨ A lightweight, self-hosted memo hub. Open Source and Free forever. ✨</span>
|
||||||
<a className="btn-primary shadow" href="https://usememos.com/docs/install/self-hosting" target="_blank">
|
<a className="btn-primary shadow" href="https://usememos.com/docs/install/self-hosting" target="_blank">
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
html,
|
html {
|
||||||
|
@apply w-full h-full p-0 m-0;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@apply text-base w-full min-h-full bg-zinc-100 dark:bg-zinc-800;
|
@apply text-base w-full min-h-full p-0 m-0 bg-zinc-100 dark:bg-zinc-800;
|
||||||
}
|
}
|
||||||
|
|
||||||
#root {
|
#root {
|
||||||
@apply w-full h-auto overflow-auto;
|
@apply w-full min-h-full overflow-auto;
|
||||||
}
|
}
|
||||||
|
@ -8,16 +8,16 @@ function Root() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full min-h-full">
|
<div className="w-full min-h-full">
|
||||||
<div className="w-full h-auto flex flex-col justify-start items-center">
|
|
||||||
<DemoBanner />
|
|
||||||
</div>
|
|
||||||
<div className="w-full sm:pl-56 mx-auto flex flex-row justify-center items-start">
|
<div className="w-full sm:pl-56 mx-auto flex flex-row justify-center items-start">
|
||||||
{sm && (
|
{sm && (
|
||||||
<div className="hidden sm:block fixed top-0 left-0 w-56 border-r dark:border-zinc-800 h-full bg-zinc-50 dark:bg-zinc-700 dark:bg-opacity-40 transition-all hover:shadow-xl">
|
<div className="hidden sm:block fixed top-0 left-0 w-56 border-r dark:border-zinc-800 h-full bg-zinc-50 dark:bg-zinc-700 dark:bg-opacity-40 transition-all hover:shadow-xl">
|
||||||
<Navigation />
|
<Navigation />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<main className="w-full sm:px-4 min-h-screen flex-grow shrink flex flex-col justify-start items-center">
|
<main className="w-full sm:px-4 h-auto flex-grow shrink flex flex-col justify-start items-center">
|
||||||
|
<div className="w-full px-4 h-auto flex flex-col justify-start items-center">
|
||||||
|
<DemoBanner />
|
||||||
|
</div>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user