-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Next.js 15, UI fixes, Prisma schema update (#9)
Co-authored-by: Pavan Soratur <pavansoratur@MacBookAir.lan>
- Loading branch information
1 parent
8300cc0
commit ff729a4
Showing
30 changed files
with
1,400 additions
and
589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import { Metadata } from 'next'; | ||
import { Heading } from '@/components/Heading'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'Dashboard', | ||
description: 'Dashboard', | ||
}; | ||
|
||
export default async function DashboardPage() { | ||
export default function DashboardPage() { | ||
return ( | ||
<div> | ||
<h1>Dashboard</h1> | ||
<Heading variant='h2'>Overview</Heading> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import { Heading } from '@/components/Heading'; | ||
import { Metadata } from 'next'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'Dashboard | Settings', | ||
description: 'Settings', | ||
}; | ||
|
||
export default async function SettingsPage() { | ||
export default function SettingsPage() { | ||
return ( | ||
<div> | ||
<h1>Settings</h1> | ||
<Heading variant='h2'>Settings</Heading> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
import { Heading } from '@/components/Heading'; | ||
import { Paragraph } from '@/components/Paragraph'; | ||
import { Metadata } from 'next'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'Dashboard | Spaces', | ||
description: 'Spaces', | ||
}; | ||
|
||
export default function SpacesPage() { | ||
return ( | ||
<div> | ||
<Heading variant='h2'>Spaces</Heading> | ||
<Paragraph> | ||
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repellat, iure | ||
illum. Quibusdam doloremque quam sunt labore iure eum, harum corporis | ||
laudantium architecto, vel rem autem sint possimus molestiae ea ex, quos | ||
praesentium! Quidem facere porro rem laudantium, voluptatibus enim | ||
molestias rerum excepturi amet atque iusto inventore ex sit placeat sed | ||
quam repellendus neque ipsum fugit, recusandae illo a optio? Distinctio | ||
error autem inventore pariatur adipisci sit velit rem, minima veniam | ||
blanditiis. Cumque rerum dolore soluta provident minus magni molestiae | ||
fugiat, distinctio facere autem vitae quisquam ratione ab et voluptatem | ||
quae temporibus at quam. Enim inventore mollitia totam repellendus nobis | ||
perspiciatis. Eum deleniti possimus quae saepe aliquam quam odit, eius | ||
sapiente rem sit labore sequi consequuntur provident dignissimos. Neque | ||
maiores reprehenderit a quod veniam fuga id sapiente error quis | ||
consequuntur mollitia quibusdam ipsum voluptates labore ratione, | ||
excepturi explicabo. Ipsam neque facere beatae eius natus repudiandae | ||
aperiam qui quibusdam error rem provident ea culpa soluta omnis | ||
exercitationem eos, aspernatur quidem quas voluptatum obcaecati placeat | ||
fugit! Mollitia non pariatur dolorum nobis error, deleniti id eum est | ||
iure fugit. Molestias corporis odio possimus tempora velit, fugiat | ||
obcaecati at suscipit. Reprehenderit quas veritatis, quo facere nemo | ||
voluptatum corrupti, minima in sed iure deleniti, commodi nisi animi ab. | ||
Repellendus optio ratione aperiam aliquam recusandae molestiae unde rem | ||
aut laboriosam? Itaque magnam omnis laborum ut vero. Assumenda hic | ||
numquam necessitatibus, eligendi cum dignissimos recusandae ullam sit | ||
amet quod aperiam facilis reprehenderit! Qui expedita hic deleniti odit | ||
corrupti? Possimus earum non nisi reprehenderit ullam deleniti, | ||
accusantium voluptatum quia illum magni corporis ipsa ad, vel maxime | ||
quidem at asperiores veniam nam aspernatur vero repellendus quisquam | ||
nulla nemo quos! Minima, deleniti beatae accusantium eligendi aliquid | ||
ducimus esse nihil quaerat, natus pariatur, iure molestias deserunt | ||
aspernatur odit quibusdam repellat rem dolor amet corrupti sit numquam | ||
in dolores necessitatibus tempora? Tempora, hic! | ||
</Paragraph> | ||
|
||
<Paragraph> | ||
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repellat, iure | ||
illum. Quibusdam doloremque quam sunt labore iure eum, harum corporis | ||
laudantium architecto, vel rem autem sint possimus molestiae ea ex, quos | ||
praesentium! Quidem facere porro rem laudantium, voluptatibus enim | ||
molestias rerum excepturi amet atque iusto inventore ex sit placeat sed | ||
quam repellendus neque ipsum fugit, recusandae illo a optio? Distinctio | ||
error autem inventore pariatur adipisci sit velit rem, minima veniam | ||
blanditiis. Cumque rerum dolore soluta provident minus magni molestiae | ||
fugiat, distinctio facere autem vitae quisquam ratione ab et voluptatem | ||
quae temporibus at quam. Enim inventore mollitia totam repellendus nobis | ||
perspiciatis. Eum deleniti possimus quae saepe aliquam quam odit, eius | ||
sapiente rem sit labore sequi consequuntur provident dignissimos. Neque | ||
maiores reprehenderit a quod veniam fuga id sapiente error quis | ||
consequuntur mollitia quibusdam ipsum voluptates labore ratione, | ||
excepturi explicabo. Ipsam neque facere beatae eius natus repudiandae | ||
aperiam qui quibusdam error rem provident ea culpa soluta omnis | ||
exercitationem eos, aspernatur quidem quas voluptatum obcaecati placeat | ||
fugit! Mollitia non pariatur dolorum nobis error, deleniti id eum est | ||
iure fugit. Molestias corporis odio possimus tempora velit, fugiat | ||
obcaecati at suscipit. Reprehenderit quas veritatis, quo facere nemo | ||
voluptatum corrupti, minima in sed iure deleniti, commodi nisi animi ab. | ||
Repellendus optio ratione aperiam aliquam recusandae molestiae unde rem | ||
aut laboriosam? Itaque magnam omnis laborum ut vero. Assumenda hic | ||
numquam necessitatibus, eligendi cum dignissimos recusandae ullam sit | ||
amet quod aperiam facilis reprehenderit! Qui expedita hic deleniti odit | ||
corrupti? Possimus earum non nisi reprehenderit ullam deleniti, | ||
accusantium voluptatum quia illum magni corporis ipsa ad, vel maxime | ||
quidem at asperiores veniam nam aspernatur vero repellendus quisquam | ||
nulla nemo quos! Minima, deleniti beatae accusantium eligendi aliquid | ||
ducimus esse nihil quaerat, natus pariatur, iure molestias deserunt | ||
aspernatur odit quibusdam repellat rem dolor amet corrupti sit numquam | ||
in dolores necessitatibus tempora? Tempora, hic! | ||
</Paragraph> | ||
|
||
<Paragraph> | ||
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repellat, iure | ||
illum. Quibusdam doloremque quam sunt labore iure eum, harum corporis | ||
laudantium architecto, vel rem autem sint possimus molestiae ea ex, quos | ||
praesentium! Quidem facere porro rem laudantium, voluptatibus enim | ||
molestias rerum excepturi amet atque iusto inventore ex sit placeat sed | ||
quam repellendus neque ipsum fugit, recusandae illo a optio? Distinctio | ||
error autem inventore pariatur adipisci sit velit rem, minima veniam | ||
blanditiis. Cumque rerum dolore soluta provident minus magni molestiae | ||
fugiat, distinctio facere autem vitae quisquam ratione ab et voluptatem | ||
quae temporibus at quam. Enim inventore mollitia totam repellendus nobis | ||
perspiciatis. Eum deleniti possimus quae saepe aliquam quam odit, eius | ||
sapiente rem sit labore sequi consequuntur provident dignissimos. Neque | ||
maiores reprehenderit a quod veniam fuga id sapiente error quis | ||
consequuntur mollitia quibusdam ipsum voluptates labore ratione, | ||
excepturi explicabo. Ipsam neque facere beatae eius natus repudiandae | ||
aperiam qui quibusdam error rem provident ea culpa soluta omnis | ||
exercitationem eos, aspernatur quidem quas voluptatum obcaecati placeat | ||
fugit! Mollitia non pariatur dolorum nobis error, deleniti id eum est | ||
iure fugit. Molestias corporis odio possimus tempora velit, fugiat | ||
obcaecati at suscipit. Reprehenderit quas veritatis, quo facere nemo | ||
voluptatum corrupti, minima in sed iure deleniti, commodi nisi animi ab. | ||
Repellendus optio ratione aperiam aliquam recusandae molestiae unde rem | ||
aut laboriosam? Itaque magnam omnis laborum ut vero. Assumenda hic | ||
numquam necessitatibus, eligendi cum dignissimos recusandae ullam sit | ||
amet quod aperiam facilis reprehenderit! Qui expedita hic deleniti odit | ||
corrupti? Possimus earum non nisi reprehenderit ullam deleniti, | ||
accusantium voluptatum quia illum magni corporis ipsa ad, vel maxime | ||
quidem at asperiores veniam nam aspernatur vero repellendus quisquam | ||
nulla nemo quos! Minima, deleniti beatae accusantium eligendi aliquid | ||
ducimus esse nihil quaerat, natus pariatur, iure molestias deserunt | ||
aspernatur odit quibusdam repellat rem dolor amet corrupti sit numquam | ||
in dolores necessitatibus tempora? Tempora, hic! | ||
</Paragraph> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { | ||
ButtonProps as ButtonUIProps, | ||
Button as ButtonUI, | ||
} from '@/components/ui/button'; | ||
import { Loader2 } from 'lucide-react'; | ||
import { Icon } from '@/components/ui/Icon'; | ||
|
||
type ButtonProps = ButtonUIProps & { | ||
isLoading?: boolean; | ||
}; | ||
|
||
export const Button: React.FC<ButtonProps> = ({ | ||
children, | ||
isLoading, | ||
...props | ||
}) => { | ||
return ( | ||
<ButtonUI {...props}> | ||
{isLoading ? <Icon icon={Loader2} className='animate-spin' /> : children} | ||
</ButtonUI> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import * as React from 'react'; | ||
import { cva, type VariantProps } from 'class-variance-authority'; | ||
|
||
import { cn } from '@/lib/utils'; | ||
|
||
const headingVariants = cva('', { | ||
variants: { | ||
variant: { | ||
h1: 'text-3xl sm:text-4xl lg:text-5xl font-medium', | ||
h2: 'text-2xl sm:text-3xl lg:text-4xl font-medium', | ||
h3: 'text-xl sm:text-2xl lg:text-3xl font-medium', | ||
h4: 'text-lg sm:text-xl lg:text-2xl font-medium', | ||
h5: 'text-base sm:text-lg lg:text-xl font-medium', | ||
h6: 'text-sm sm:text-base lg:text-lg font-medium', | ||
}, | ||
}, | ||
defaultVariants: { | ||
variant: 'h1', | ||
}, | ||
}); | ||
|
||
export interface HeadingProps | ||
extends React.HTMLAttributes<HTMLElement>, | ||
VariantProps<typeof headingVariants> {} | ||
|
||
const Heading = React.forwardRef<HTMLHeadingElement, HeadingProps>( | ||
({ className, variant, ...props }, ref) => { | ||
const Comp = variant || 'h1'; | ||
return ( | ||
<Comp | ||
className={cn(headingVariants({ variant, className }))} | ||
ref={ref} | ||
{...props} | ||
/> | ||
); | ||
}, | ||
); | ||
|
||
Heading.displayName = 'Heading'; | ||
|
||
export { Heading, headingVariants }; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as React from 'react'; | ||
import { cn } from '@/lib/utils'; | ||
import { RESPONSIVE_TEXT_SIZES } from '@/constants/classnames'; | ||
|
||
const Paragraph = React.forwardRef< | ||
HTMLParagraphElement, | ||
React.HTMLAttributes<HTMLParagraphElement> | ||
>(({ className, ...props }, ref) => { | ||
return ( | ||
<p className={cn(RESPONSIVE_TEXT_SIZES, className)} ref={ref} {...props} /> | ||
); | ||
}); | ||
|
||
Paragraph.displayName = 'Paragraph'; | ||
|
||
export { Paragraph }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import * as React from 'react'; | ||
import { cn } from '@/lib/utils'; | ||
import { RESPONSIVE_TEXT_SIZES } from '@/constants/classnames'; | ||
|
||
const Span = React.forwardRef< | ||
HTMLSpanElement, | ||
React.HTMLAttributes<HTMLSpanElement> | ||
>(({ className, ...props }, ref) => { | ||
return ( | ||
<span | ||
className={cn(RESPONSIVE_TEXT_SIZES, className)} | ||
ref={ref} | ||
{...props} | ||
/> | ||
); | ||
}); | ||
|
||
Span.displayName = 'Span'; | ||
|
||
export { Span }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.