2024-08-25 00:45:44 +00:00
|
|
|
'use client';
|
|
|
|
|
|
2024-08-26 00:57:34 +00:00
|
|
|
import Image from "next/image";
|
2024-09-03 01:46:43 +00:00
|
|
|
import logoDark from "../../public/sb_logo_dark_large.png";
|
|
|
|
|
import logoLight from "../../public/sb_logo_light_large.png";
|
2024-08-28 00:28:35 +00:00
|
|
|
import { SearchBar } from "./searchBar";
|
2024-08-28 04:00:59 +00:00
|
|
|
import { SettingsDropdown } from "./settingsDropdown";
|
2024-09-03 01:46:43 +00:00
|
|
|
import { GitHubLogoIcon } from "@radix-ui/react-icons";
|
|
|
|
|
import { Button } from "@/components/ui/button";
|
2024-08-25 00:45:44 +00:00
|
|
|
|
2024-09-03 01:46:43 +00:00
|
|
|
const SOURCEBOT_GITHUB_URL = "https://github.com/TaqlaAI/sourcebot-search";
|
2024-08-28 04:00:59 +00:00
|
|
|
|
2024-09-03 01:46:43 +00:00
|
|
|
export default function Home() {
|
2024-08-23 20:54:13 +00:00
|
|
|
|
2024-08-25 00:45:44 +00:00
|
|
|
return (
|
2024-09-03 01:46:43 +00:00
|
|
|
<div className="h-screen flex flex-col items-center">
|
2024-08-28 00:28:35 +00:00
|
|
|
{/* TopBar */}
|
2024-09-03 01:46:43 +00:00
|
|
|
<div className="absolute top-0 left-0 right-0">
|
|
|
|
|
<div className="flex flex-row justify-end items-center py-1.5 px-3 gap-2">
|
|
|
|
|
<Button
|
|
|
|
|
variant="outline"
|
|
|
|
|
size="icon"
|
|
|
|
|
onClick={() => {
|
|
|
|
|
window.open(SOURCEBOT_GITHUB_URL, "_blank");
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<GitHubLogoIcon className="w-4 h-4" />
|
|
|
|
|
</Button>
|
|
|
|
|
<SettingsDropdown />
|
2024-08-25 05:09:31 +00:00
|
|
|
</div>
|
2024-08-25 00:45:44 +00:00
|
|
|
</div>
|
2024-09-03 01:46:43 +00:00
|
|
|
<div className="flex flex-col justify-center items-center p-4 mt-48">
|
|
|
|
|
<div className="max-h-44 w-auto">
|
|
|
|
|
<Image
|
|
|
|
|
src={logoDark}
|
|
|
|
|
className="w-full h-full hidden dark:block"
|
|
|
|
|
alt={"Sourcebot logo"}
|
2024-08-28 00:28:35 +00:00
|
|
|
/>
|
2024-09-03 01:46:43 +00:00
|
|
|
<Image
|
|
|
|
|
src={logoLight}
|
|
|
|
|
className="w-full h-full block dark:hidden"
|
|
|
|
|
alt={"Sourcebot logo"}
|
2024-08-28 00:28:35 +00:00
|
|
|
/>
|
2024-09-03 01:46:43 +00:00
|
|
|
</div>
|
|
|
|
|
<div className="w-full flex flex-row mt-4">
|
|
|
|
|
<SearchBar />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2024-08-25 00:45:44 +00:00
|
|
|
}
|