Skip to content

Commit 7f8ae03

Browse files
update text
1 parent 50416cf commit 7f8ae03

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

sql-editor/src/app/page.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export default function Home() {
5050
};
5151

5252
return (
53-
<main className="flex min-h-screen flex-col items-center justify-center p-24">
54-
<h1 className="text-4xl font-bold mb-8"> Embedded Bytebase SQL Editor Demo</h1>
53+
<main className="flex min-h-screen flex-col items-center p-24 pt-6">
54+
<h1 className="text-4xl font-bold mt-0mb-8"> Embedded Bytebase SQL Editor Demo</h1>
5555
{!userData && (
5656
<h2 className="text-2xl font-bold mb-4">Logout your Bytebase account in the same browser before click Start</h2>)}
5757
{!userData && (
@@ -67,15 +67,18 @@ export default function Home() {
6767
{userData && (
6868
<div className="mt-8 w-full">
6969
<h2 className="text-2xl font-bold mb-4">User/Project/Database Created Successfully, click Sign in to start</h2>
70-
<div className="bg-gray-100 p-6 rounded-lg mb-4">
71-
<p><strong>Username:</strong> {userData.credentials.username}</p>
72-
<p><strong>Email:</strong> {userData.credentials.email}</p>
73-
<p><strong>Password:</strong> {userData.credentials.password}</p>
74-
<p><strong>Project Title:</strong> {userData.project.title}</p>
75-
<p><strong>Project Key:</strong> {userData.project.key}</p>
76-
<p><strong>Database:</strong> {userData.database}</p>
70+
<div className="bg-gray-100 p-6 rounded-lg mb-4 flex flex-wrap">
71+
<div className="w-1/2 p-2">
72+
<p><strong>Username:</strong> {userData.credentials.username}</p>
73+
<p><strong>Email:</strong> {userData.credentials.email}</p>
74+
<p><strong>Password:</strong> {userData.credentials.password}</p>
75+
</div>
76+
<div className="w-1/2 p-2">
77+
<p><strong>Project Title:</strong> {userData.project.title}</p>
78+
<p><strong>Project Key:</strong> {userData.project.key}</p>
79+
<p><strong>Database:</strong> {userData.database}</p>
80+
</div>
7781
</div>
78-
<p className="mt-4 mb-4 text-sm text-gray-600">Please save these credentials and project details for future use.</p>
7982
<div className="w-full h-screen border border-gray-300 rounded-lg overflow-hidden">
8083
<iframe
8184
src={`${process.env.NEXT_PUBLIC_BB_HOST}/auth?email=${userData.credentials.email}&password=${userData.credentials.password}`}

0 commit comments

Comments
 (0)