Skip to content

Commit

Permalink
tweaks to login page. new indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Mar 24, 2024
1 parent abe872e commit a10ea83
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
9 changes: 6 additions & 3 deletions packages/db/src/migrations/v8_more-indexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@ import { Kysely } from 'kysely';
export async function up(db: Kysely<any>) {
await db.schema
.createIndex('VerificationCode_code')
.ifNotExists()
.on('VerificationCode')
.column('code')
.unique()
.execute();
await db.schema
.createIndex('Account_providerAccountId')
.ifNotExists()
.on('Account')
.column('providerAccountId')
.execute();
await db.schema
.createIndex('Account_email')
.on('Account')
.createIndex('User_email')
.ifNotExists()
.on('User')
.column('email')
.unique()
.execute();
Expand All @@ -25,5 +28,5 @@ export async function up(db: Kysely<any>) {
export async function down(db: Kysely<any>) {
await db.schema.dropIndex('VerificationCode_code').ifExists().execute();
await db.schema.dropIndex('Account_providerAccountId').ifExists().execute();
await db.schema.dropIndex('Account_email').ifExists().execute();
await db.schema.dropIndex('User_email').ifExists().execute();
}
2 changes: 1 addition & 1 deletion web/src/components/Paws.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function Paws() {
<Environment preset="sunset" />
<PerspectiveCamera makeDefault position={[0, 30, 0]} />
{/* Axishelper */}
{/* <OrbitControls /> */}
<OrbitControls enabled={false} />
{/* <axesHelper /> */}
{/* <cameraHelper /> */}
</Canvas>
Expand Down
3 changes: 2 additions & 1 deletion web/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const innerProps = {

export default function HomePage() {
return (
<PageRoot className="bg-primary">
<PageRoot className="bg-primary flex-basis-auto">
<Background />
<Suspense>
<Paws />
Expand All @@ -28,6 +28,7 @@ export default function HomePage() {
className={classNames(
'[font-family:"VC_Henrietta_Trial","Noto_Serif",serif]',
'text-[5vmin] m-0 font-normal text-primary-dark text-shadow',
'bg-primary p-2 rounded-lg leading-none',
)}
>
Biscuits
Expand Down
14 changes: 8 additions & 6 deletions web/src/pages/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ export default function LoginPage() {
const activeTab = searchParams.get('tab') ?? 'signin';

return (
<div className="flex flex-row items-stretch justify-stretch h-full flex-1">
<div className="flex flex-col gap-3 flex-1 p-4 items-center bg-primary-light border-r-solid border-r border-r-3 border-r-primary-dark">
<H1>Join the club</H1>
<div className="flex flex-col items-center justify-center h-screen flex-1 bg-primary">
<div className="absolute top-0 left-0 w-full h-screen flex-[2]">
<Paws />
</div>
<div className="flex flex-col gap-3 p-6 items-center bg-primary-light border-solid border border-3 border-primary-dark rounded-lg relative z-1">
<H1 className='[font-family:"VC_Henrietta_Trial","Noto_Serif",serif]'>
Join the club
</H1>
<TabsRoot
className="flex flex-col"
value={activeTab}
Expand Down Expand Up @@ -58,9 +63,6 @@ export default function LoginPage() {
</TabsContent>
</TabsRoot>
</div>
<div className="hidden lg:block relative bg-primary w-full h-screen flex-[2]">
<Paws />
</div>
</div>
);
}

0 comments on commit a10ea83

Please sign in to comment.