Skip to content

Commit bb7c48d

Browse files
committed
redesing mysql new page
1 parent 7e8482d commit bb7c48d

File tree

2 files changed

+39
-24
lines changed

2 files changed

+39
-24
lines changed

public/libsql-logo.png

-7.56 KB
Binary file not shown.

src/app/(outerbase)/local/new-base/mysql/page.tsx

+39-24
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useSession } from "@/app/(outerbase)/session-provider";
33
import { useWorkspaces } from "@/app/(outerbase)/workspace-provider";
44
import { Button } from "@/components/orbit/button";
55
import { Loader } from "@/components/orbit/loader";
6-
import { ArrowLeft } from "@phosphor-icons/react";
6+
import { ArrowLeft, Folder } from "@phosphor-icons/react";
77
import Link from "next/link";
88

99
function LocalMySQLCloudSection() {
@@ -12,15 +12,15 @@ function LocalMySQLCloudSection() {
1212

1313
if (isLoading || loading) {
1414
return (
15-
<div className="flex w-1/2 flex-col gap-4 border-r p-4">
16-
<Loader />
15+
<div className="flex min-h-[300px] w-1/2 flex-col items-center justify-center gap-4 p-4">
16+
<Loader size={40} />
1717
</div>
1818
);
1919
}
2020

2121
if (!session?.user) {
2222
return (
23-
<div className="flex w-1/2 flex-col gap-4 border-r p-4">
23+
<div className="flex w-1/2 flex-col gap-4 p-4">
2424
<h1 className="text-lg font-bold">Outerbase Cloud</h1>
2525

2626
<div>
@@ -49,15 +49,20 @@ function LocalMySQLCloudSection() {
4949
}
5050

5151
return (
52-
<div className="flex w-1/2 flex-col gap-4 border-r p-4">
53-
<h1 className="text-lg font-bold">Outerbase Cloud</h1>
54-
<p>Please select the workspace</p>
52+
<div className="flex w-1/2 flex-col gap-2 p-4">
53+
<div className="mb-4">
54+
<h1 className="text-2xl font-bold">Outerbase Cloud</h1>
55+
<p>Please select the workspace</p>
56+
</div>
57+
5558
{(workspaces ?? []).map((workspace) => {
5659
return (
5760
<Link
5861
key={workspace.id}
62+
className="bg-secondary hover:border-primary flex cursor-pointer items-center gap-2 rounded border border-2 p-4 text-base"
5963
href={`/w/${workspace.short_name}/new-base/mysql`}
6064
>
65+
<Folder weight="bold" size={20} />
6166
{workspace.name}
6267
</Link>
6368
);
@@ -76,30 +81,40 @@ export default function LocalMySQLNewBasePage() {
7681
</Button>
7782
</div>
7883

79-
<div className="mb-12 p-4">
80-
It is not possible to run MySQL from browser.
81-
<br /> Please use the desktop app or our cloud services.
84+
<div className="mb-8 p-4 text-xl leading-8">
85+
Running MySQL from a browser is not possible.
86+
<br /> Please use the desktop app or our cloud services instead.
8287
</div>
8388

84-
<div className="flex">
89+
<div className="mb-8 flex">
8590
<LocalMySQLCloudSection />
8691

8792
<div className="flex w-1/2 flex-col gap-4 p-4">
88-
<h1 className="text-lg font-bold">Desktop App</h1>
89-
90-
<div>Connect locally with our desktop app</div>
91-
9293
<div>
93-
<Button
94-
variant="primary"
95-
className="inline-flex"
96-
size="lg"
97-
href="https://github.com/outerbase/studio-desktop/releases"
98-
as="link"
99-
>
100-
Download Desktop App
101-
</Button>
94+
<h1 className="text-2xl font-bold">Desktop App</h1>
95+
<p>Connect locally with our desktop app</p>
10296
</div>
97+
98+
<Link
99+
href="https://github.com/outerbase/studio-desktop/releases"
100+
className="relative w-full"
101+
>
102+
<img
103+
src="/outerbase-banner.jpg"
104+
alt=""
105+
className="w-full rounded-lg"
106+
/>
107+
108+
<div className="bg-opacity-50 absolute right-0 bottom-0 left-0 flex cursor-pointer flex-col gap-2 rounded-lg bg-black p-4 text-white">
109+
<div className="text-2xl font-bold">Download the desktop app</div>
110+
<p className="text-base">
111+
Outerbase Studio Desktop is a lightweight Electron wrapper for
112+
the Outerbase Studio web version. It enables support for drivers
113+
that aren&apos;t feasible in a browser environment, such as
114+
MySQL and PostgreSQL.
115+
</p>
116+
</div>
117+
</Link>
103118
</div>
104119
</div>
105120
</div>

0 commit comments

Comments
 (0)