Skip to content

Commit 536700d

Browse files
committed
feat: new landing page
1 parent 3c43c2b commit 536700d

File tree

14 files changed

+28
-20
lines changed

14 files changed

+28
-20
lines changed

β€Žsrc/app/(dynamic-pages)/(main-pages)/(logged-in-pages)/dashboard/ClientPage.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client';
22

3-
import { Button } from '@/components/ui/button';
3+
import { T } from '@/components/ui/Typography';
4+
import { Button } from '@/components/ui/Button';
45
import { insertPrivateItemAction } from '@/data/user/privateItems';
56
import { useMutation, useQueryClient } from '@tanstack/react-query';
67
import { useRouter } from 'next/navigation';
@@ -34,7 +35,7 @@ export const ClientPage = () => {
3435
const [description, setDescription] = useState('');
3536
return (
3637
<form
37-
className="flex flex-col space-y-4"
38+
className="flex flex-col space-y-4 pt-8"
3839
onSubmit={(event) => {
3940
event.preventDefault();
4041
const formData = new FormData(event.target as HTMLFormElement);
@@ -45,13 +46,11 @@ export const ClientPage = () => {
4546
}}
4647
>
4748
<div>
48-
<h1 className="mt-1 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl lg:text-5xl">
49-
Create Private Item
50-
</h1>
51-
<p>
49+
<T.H1>Create Private Item</T.H1>
50+
<T.Subtle>
5251
This item will be private and only you logged in will be able to
5352
create it.
54-
</p>
53+
</T.Subtle>
5554
</div>
5655
<div className="space-y-2">
5756
<label

β€Žsrc/app/(dynamic-pages)/(main-pages)/(logged-in-pages)/private-item/[privateItemId]/ConfirmDeleteItemDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use client';
2-
import { Button } from '@/components/ui/button';
2+
import { Button } from '@/components/ui/Button';
33
import {
44
Dialog,
55
DialogContent,

β€Žsrc/app/(dynamic-pages)/(main-pages)/(logged-in-pages)/private-item/[privateItemId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function PrivateItem({ privateItemId }: { privateItemId: string }) {
1111
<div className="space-y-2">
1212
<div className="space-y-4">
1313
<Link
14-
href="/"
14+
href="/dashboard"
1515
className="text-sm text-blue-600 text-underline flex items-center space-x-2"
1616
>
1717
<ArrowLeft /> <span>Back to dashboard</span>

β€Žsrc/app/(dynamic-pages)/(main-pages)/ItemsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button } from '@/components/ui/button';
1+
import { Button } from '@/components/ui/Button';
22
import { Table } from '@/types';
33
import Link from 'next/link';
44

β€Žsrc/app/(dynamic-pages)/(main-pages)/PrivateItemsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button } from '@/components/ui/button';
1+
import { Button } from '@/components/ui/Button';
22
import { Table } from '@/types';
33
import Link from 'next/link';
44

β€Žsrc/app/(dynamic-pages)/(main-pages)/item/[itemId]/ConfirmDeleteItemDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use client';
2-
import { Button } from '@/components/ui/button';
2+
import { Button } from '@/components/ui/Button';
33
import {
44
Dialog,
55
DialogContent,

β€Žsrc/app/(dynamic-pages)/(main-pages)/new/ClientPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { Button } from '@/components/ui/button';
3+
import { Button } from '@/components/ui/Button';
44
import { insertItemAction } from '@/data/anon/items';
55
import { useMutation, useQueryClient } from '@tanstack/react-query';
66
import { useRouter } from 'next/navigation';

β€Žsrc/app/ClientLayout.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ const queryClient = new QueryClient();
77
export const ClientLayout = ({ children }: { children: React.ReactNode }) => {
88
return (
99
<main className="flex-1">
10-
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
11-
<Toaster />
10+
<div className="container">
11+
<QueryClientProvider client={queryClient}>
12+
{children}
13+
</QueryClientProvider>
14+
<Toaster />
15+
</div>
1216
</main>
1317
);
1418
};

β€Žsrc/components/Auth/Email.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { classNames } from '@/utils/classNames';
22
import { useMemo } from 'react';
33
import { useState } from 'react';
4-
import { Button } from '../ui/button';
4+
import { Button } from '../ui/Button';
55
import { Label } from '@/components/ui/label';
66
import { T } from '@/components/ui/Typography';
77
import Link from 'next/link';

β€Žsrc/components/Auth/EmailAndPassword.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { classNames } from '@/utils/classNames';
22
import { useState } from 'react';
3-
import { Button } from '@/components/ui/button';
3+
import { Button } from '@/components/ui/Button';
44
import { Label } from '@/components/ui/label';
55
import Link from 'next/link';
66

0 commit comments

Comments
Β (0)