generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d3abc7
commit 8e6e4ba
Showing
7 changed files
with
149 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,70 @@ | ||
import { UnkeyElements } from "./keys/client"; | ||
import { Button } from "@/components/ui/button"; | ||
|
||
function DownloadIcon(props) { | ||
return ( | ||
<svg | ||
{...props} | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
> | ||
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /> | ||
<polyline points="7 10 12 15 17 10" /> | ||
<line x1="12" x2="12" y1="15" y2="3" /> | ||
</svg> | ||
); | ||
} | ||
|
||
export default function Home() { | ||
return ( | ||
<main className="flex min-h-screen flex-col items-center justify-between p-24"> | ||
<div className="flex flex-col items-center justify-center"> | ||
<h1 className="text-4xl font-bold">Welcome to File Organizer 2000</h1> | ||
{ process.env.ENABLE_USER_MANAGEMENT == 'true' ? ( | ||
<div className="flex flex-col items-center justify-center"> | ||
<p className="text-xl mt-4"> | ||
Just paste this inside File Organizer 2000 and you're good to go! | ||
</p> | ||
<UnkeyElements /> | ||
<div className="flex min-h-screen flex-col bg-gray-100 dark:bg-gray-900"> | ||
<header className="flex items-center justify-between bg-white px-6 py-4 shadow dark:bg-gray-800"> | ||
{/* Header content */} | ||
</header> | ||
<main className="flex-1 px-6 py-8"> | ||
<div className="mx-auto max-w-3xl space-y-8"> | ||
<div className="rounded-lg bg-white border border-gray-200 p-6 dark:bg-gray-800 dark:border-gray-700"> | ||
<div className="flex flex-col items-center justify-center space-y-4"> | ||
<h2 className="text-2xl font-semibold text-gray-800 dark:text-gray-200"> | ||
Welcome to File Organizer 2000 | ||
</h2> | ||
{process.env.ENABLE_USER_MANAGEMENT == "true" ? ( | ||
<UnkeyElements /> | ||
) : ( | ||
<p className="text-gray-500 dark:text-gray-400"> | ||
Just paste this URL in the plugin settings in Obsidian and | ||
you're good to go! | ||
</p> | ||
)} | ||
</div> | ||
</div> | ||
<div className="rounded-lg bg-white border border-gray-200 p-6 dark:bg-gray-800 dark:border-gray-700"> | ||
<div className="flex flex-col items-center justify-center space-y-4"> | ||
<DownloadIcon className="h-12 w-12 text-gray-600 dark:text-gray-400" /> | ||
<h2 className="text-2xl font-semibold text-gray-800 dark:text-gray-200"> | ||
Download File Organizer 2000 | ||
</h2> | ||
<p className="text-gray-500 dark:text-gray-400"> | ||
Get the latest version of File Organizer 2000 to keep your files | ||
organized. | ||
</p> | ||
<Button>Download</Button> | ||
</div> | ||
</div> | ||
</div> | ||
) : ( | ||
<div className="flex flex-col items-center justify-center"> | ||
|
||
<p className="text-xl mt-4"> | ||
Just paste this URL in the plugin settings in Obsidian and you're good to go! | ||
</p> | ||
</main> | ||
<footer className="bg-white px-6 py-4 shadow dark:bg-gray-800"> | ||
<div className="mx-auto max-w-3xl text-center text-gray-500 dark:text-gray-400"> | ||
© 2024 File Organizer 2000. All rights reserved. | ||
</div> | ||
)} | ||
</div> | ||
</main> | ||
</footer> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.