generated from include-davis/Next.js-App-Router-Starter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StarterKitSlide for use in starterkit
- Loading branch information
1 parent
a061524
commit b91a4b7
Showing
86 changed files
with
541 additions
and
228 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
27 changes: 27 additions & 0 deletions
27
app/(pages)/(hackers)/(index)/starter-kit/_components/StarterKitSlide.tsx
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,27 @@ | ||
import { Card, CardContent } from '@globals/components/ui/card'; | ||
|
||
interface StarterKitSlideProps { | ||
subtitle: string; | ||
title: string; | ||
children: React.ReactNode; | ||
} | ||
|
||
export default function StarterKitSlide({ | ||
title, | ||
subtitle, | ||
children, | ||
}: StarterKitSlideProps) { | ||
return ( | ||
<Card className="tw-h-fit tw-p-4 tw-bg-transparent"> | ||
<CardContent className="tw-p-4"> | ||
<p className="tw-text-sm tw-font-jakarta tw-tracking-[0.02em]"> | ||
{subtitle} | ||
</p> | ||
<h2 className="tw-text-2xl tw-font-bold tw-font-metropolis tw-tracking-[0.02em] tw-mb-4"> | ||
{title} | ||
</h2> | ||
{children} | ||
</CardContent> | ||
</Card> | ||
); | ||
} |
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,7 +1,29 @@ | ||
import StarterKitSlide from './_components/StarterKitSlide'; | ||
import Image from 'next/image'; | ||
|
||
export default function Page() { | ||
return ( | ||
<main> | ||
<div>Start Kit Page</div> | ||
<StarterKitSlide title="Hacking 101 Workshop" subtitle="JOIN US FOR OUR"> | ||
<Image | ||
src="/hackers/crossing_cow.svg" | ||
alt="Example Image" | ||
width={100} | ||
height={100} | ||
/> | ||
</StarterKitSlide> | ||
<StarterKitSlide | ||
title="In case you missed it..." | ||
subtitle="HERE's A RECAP OF THE WORKSHOP" | ||
> | ||
<Image | ||
src="/hackers/flag_duck.svg" | ||
alt="Example Image" | ||
width={100} | ||
height={100} | ||
/> | ||
</StarterKitSlide> | ||
</main> | ||
); | ||
} |
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,86 @@ | ||
import * as React from 'react'; | ||
|
||
import { cn } from '@globals/lib/utils'; | ||
|
||
const Card = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn( | ||
'tw-rounded-xl tw-border tw-bg-card tw-text-card-foreground tw-shadow', | ||
className | ||
)} | ||
{...props} | ||
/> | ||
)); | ||
Card.displayName = 'Card'; | ||
|
||
const CardHeader = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn('tw-flex tw-flex-col tw-space-y-1.5 tw-p-6', className)} | ||
{...props} | ||
/> | ||
)); | ||
CardHeader.displayName = 'CardHeader'; | ||
|
||
const CardTitle = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn( | ||
'tw-font-semibold tw-leading-none tw-tracking-tight', | ||
className | ||
)} | ||
{...props} | ||
/> | ||
)); | ||
CardTitle.displayName = 'CardTitle'; | ||
|
||
const CardDescription = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn('tw-text-sm tw-text-muted-foreground', className)} | ||
{...props} | ||
/> | ||
)); | ||
CardDescription.displayName = 'CardDescription'; | ||
|
||
const CardContent = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div ref={ref} className={cn('tw-p-6 tw-pt-0', className)} {...props} /> | ||
)); | ||
CardContent.displayName = 'CardContent'; | ||
|
||
const CardFooter = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn('tw-flex tw-items-center tw-p-6 tw-pt-0', className)} | ||
{...props} | ||
/> | ||
)); | ||
CardFooter.displayName = 'CardFooter'; | ||
|
||
export { | ||
Card, | ||
CardHeader, | ||
CardFooter, | ||
CardTitle, | ||
CardDescription, | ||
CardContent, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { clsx, type ClassValue } from "clsx" | ||
import { twMerge } from "tailwind-merge" | ||
|
||
export function cn(...inputs: ClassValue[]) { | ||
return twMerge(clsx(inputs)) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "app/(pages)/_globals/globals.scss", | ||
"baseColor": "zinc", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@globals/components", | ||
"utils": "@globals/lib/utils", | ||
"ui": "@globals/components/ui", | ||
"lib": "@globals/lib", | ||
"hooks": "@globals/hooks" | ||
}, | ||
"iconLibrary": "lucide" | ||
} |
Oops, something went wrong.