Skip to content

Commit

Permalink
feat: redesign front page
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Jun 27, 2024
1 parent 059785f commit 6d3b504
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 21 deletions.
1 change: 1 addition & 0 deletions public/social/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/social/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 33 additions & 16 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function LinkButton({ title, url }: Readonly<{ title: string; url: string }>) {
href={url}
className={cn(
buttonVariants({ variant: "default", size: "lg" }),
"text-lg py-4 px-6"
"text-2xl p-6"
)}
>
{title}
Expand Down Expand Up @@ -50,25 +50,19 @@ function Screenshot() {
function HeroSection() {
return (
<div className="mx-auto container py-16">
<div className="flex flex-col gap-4 justify-center mb-8 md:flex-row">
<LinkButton title="Open LibSQL Studio" url="/connect" />
</div>

<h2 className="text-center text-4xl font-bold">
Manage database from browser
Powerful SQLite-based Database Client
</h2>

<p className="text-center max-w-[500px] mx-auto mt-6 text-lg">
LibSQL Studio is powerful and lightweight libSQL and rqlite client that
run from your browser. Cross platform and no download needed. We are{" "}
<Link
href="https://github.com/invisal/libsql-studio"
className="underline font-bold text-blue-600"
target="_blank"
>
open source
</Link>
<p className="text-center max-w-[700px] mx-auto mt-6 text-lg">
LibSQL Studio is a fully-featured, lightweight GUI client for managing
SQLite-based databases like Turso, LibSQL, and rqlite. It runs entirely
in your browser, so there&apos;s no need to download anything.
</p>

<div className="flex flex-col gap-4 justify-center mt-8 md:flex-row">
<LinkButton title="Open LibSQL Studio" url="/connect" />
</div>
</div>
);
}
Expand Down Expand Up @@ -104,11 +98,34 @@ function FeatureItem({
);
}

function SupportDriver() {
return (
<div className="bg-zinc-100 mt-12">
<div className="container mx-auto py-12">
<h2 className="text-center font-semibold text-2xl">
Supports a wide range of{" "}
<strong className="border-b-4 border-red-400 inline-block py-1 mx-1">
SQLite-based
</strong>{" "}
databases
</h2>

<div className="flex justify-center gap-4 mt-8">
<img src="/turso.jpeg" className="h-16 rounded-xl" alt="rqlite" />
<img src="/rqlite.png" className="h-16 rounded-xl" alt="rqlite" />
<img src="/valtown.svg" className="h-16 rounded-xl" alt="rqlite" />
</div>
</div>
</div>
);
}

export default async function MainPage() {
return (
<WebsiteLayout>
<HeroSection />
<Screenshot />
<SupportDriver />
<div className="bg-zinc-800 py-12 mt-12">
<div className="max-w-[900px] px-4 mx-auto flex flex-col gap-12">
<FeatureItem reverse image="/data-editor.png">
Expand Down
45 changes: 40 additions & 5 deletions src/components/website-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ async function Topbar() {
return (
<header className="border-b">
<div className="mx-auto container flex">
<h1 className="text-lg p-2">
LibSQL <strong>Studio</strong>
</h1>
<Link href="/">
<h1 className="text-lg p-2">
LibSQL <strong>Studio</strong>
</h1>
</Link>
<div className="grow" />
{user ? (
<TopbarProfile user={user} />
Expand All @@ -31,8 +33,41 @@ async function Topbar() {
function Footer() {
return (
<div className="border-t py-4 text-sm">
<div className="mx-auto container">
© 2024 Visal .In. | LibSQL Studio
<div className="mx-auto container flex">
<div className="flex-grow">
<ul className="flex gap-4 mb-2">
<li>
<Link href="/terms" className="font-semibold hover:underline">
Terms and Condition
</Link>
</li>
<li>
<Link href="/privacy" className="font-semibold hover:underline">
Privacy
</Link>
</li>
</ul>

<p>© 2024 Visal .In. | LibSQL Studio</p>
</div>

<div className="flex gap-4">
<Link href="https://x.com/libsqlstudio" target="blank">
<img
src="/social/twitter.svg"
className="w-6 h-6"
alt="libsql studio twitter"
/>
</Link>

<Link href="https://github.com/invisal/libsql-studio" target="blank">
<img
src="/social/github.svg"
className="w-6 h-6"
alt="libsql studio github"
/>
</Link>
</div>
</div>
</div>
);
Expand Down

0 comments on commit 6d3b504

Please sign in to comment.