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

+6-7
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+6-2
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

+1-1
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

+1-1
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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
HoverCardTrigger,
77
} from '@/components/ui/HoverCard';
88
import { T } from '@/components/ui/Typography';
9-
import { Button } from '@/components/ui/button';
9+
import { Button } from '@/components/ui/Button';
1010

1111
function capitalize(word: string) {
1212
const lower = word.toLowerCase();

β€Žsrc/components/tailwind/ThemeToggle.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import * as React from 'react';
44
import { useTheme } from 'next-themes';
55

6-
import { Button } from '@/components/ui/button';
6+
import { Button } from '@/components/ui/Button';
77
import {
88
DropdownMenu,
99
DropdownMenuContent,

β€Žsrc/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export const DEV_PORT = 4000;
1+
export const DEV_PORT = 3000;
22
export const PRODUCT_NAME = 'NextBase Open-Source Starter';

β€Žyarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -6352,6 +6352,11 @@ next-sitemap@^3.1.52:
63526352
"@corex/deepmerge" "^4.0.29"
63536353
minimist "^1.2.7"
63546354

6355+
next-themes@^0.2.1:
6356+
version "0.2.1"
6357+
resolved "https://registry.yarnpkg.com/next-themes/-/next-themes-0.2.1.tgz#0c9f128e847979daf6c67f70b38e6b6567856e45"
6358+
integrity sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A==
6359+
63556360
next-tick@^1.1.0:
63566361
version "1.1.0"
63576362
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb"

0 commit comments

Comments
Β (0)