generated from kir-dev/next-nest-template
-
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.
Merge pull request #14 from kir-dev/design/dashboard
Dashboard design skeleton
- Loading branch information
Showing
21 changed files
with
2,262 additions
and
720 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "default", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "src/app/globals.css", | ||
"baseColor": "slate", | ||
"cssVariables": false, | ||
"baseColor": "zinc", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils" | ||
} | ||
"utils": "@/lib/utils", | ||
"ui": "@/components/ui", | ||
"lib": "@/lib", | ||
"hooks": "@/hooks" | ||
}, | ||
"iconLibrary": "lucide" | ||
} |
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,9 +1,5 @@ | ||
import { HelloWorld } from '@/components/hello-world'; | ||
import { MainContent } from '@/components/main-content'; | ||
|
||
export default function Home() { | ||
return ( | ||
<main className='flex items-center justify-center'> | ||
<HelloWorld className='mt-10' /> | ||
</main> | ||
); | ||
return <MainContent />; | ||
} |
This file was deleted.
Oops, something went wrong.
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,73 @@ | ||
'use client'; | ||
|
||
import { GeistSans } from 'geist/font/sans'; | ||
import { ChevronRight } from 'lucide-react'; | ||
import Link from 'next/link'; | ||
|
||
import { ThemeToggle } from '@/components/layout/theme-toggle'; | ||
import ActionButton from '@/components/ui/action-button'; | ||
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; | ||
import { Button } from '@/components/ui/button'; | ||
import { | ||
DropdownMenu, | ||
DropdownMenuContent, | ||
DropdownMenuItem, | ||
DropdownMenuSeparator, | ||
DropdownMenuTrigger, | ||
} from '@/components/ui/dropdown-menu'; | ||
|
||
export function Header() { | ||
const isLoggedIn = true; | ||
const user = { | ||
name: 'John Doe', | ||
email: '[email protected]', | ||
image: '/placeholder.svg', | ||
}; | ||
|
||
return ( | ||
<header className='px-4 py-4 flex items-center justify-between'> | ||
<Link href='/' className='flex items-center space-x-2'> | ||
<span className={`${GeistSans.className} text-2xl font-bold tracking-tighter`}>MMMK</span> | ||
</Link> | ||
|
||
<div className='w-80 pl-8 flex items-center justify-between'> | ||
<ActionButton | ||
text='My Bands' | ||
icon={<ChevronRight />} | ||
variant='outline' | ||
className='h-10 rounded-full font-light hover:bg-transparent' | ||
/> | ||
|
||
<div className='flex gap-3 items-center'> | ||
<ThemeToggle /> | ||
|
||
{isLoggedIn ? ( | ||
<DropdownMenu> | ||
<DropdownMenuTrigger asChild> | ||
<Button variant='outline' className='relative h-10 w-10 rounded-full'> | ||
<Avatar className='h-8 w-8'> | ||
<AvatarImage src={user.image} alt={user.name} /> | ||
<AvatarFallback>{user.name.charAt(0)}</AvatarFallback> | ||
</Avatar> | ||
</Button> | ||
</DropdownMenuTrigger> | ||
<DropdownMenuContent className='w-56' align='end' forceMount> | ||
<DropdownMenuItem className='flex flex-col items-start'> | ||
<div className='font-medium'>{user.name}</div> | ||
<div className='text-sm text-zinc-500'>{user.email}</div> | ||
</DropdownMenuItem> | ||
<DropdownMenuSeparator /> | ||
<DropdownMenuItem asChild> | ||
<Link href='/'>Profile</Link> | ||
</DropdownMenuItem> | ||
<DropdownMenuItem>Log out</DropdownMenuItem> | ||
</DropdownMenuContent> | ||
</DropdownMenu> | ||
) : ( | ||
<Button variant='outline'>Log in</Button> | ||
)} | ||
</div> | ||
</div> | ||
</header> | ||
); | ||
} |
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,76 @@ | ||
import { | ||
Heart, | ||
ListMusic, | ||
Mic2, | ||
MoreHorizontal, | ||
Play, | ||
Repeat, | ||
Shuffle, | ||
SkipBack, | ||
SkipForward, | ||
Volume2, | ||
} from 'lucide-react'; | ||
import Image from 'next/image'; | ||
|
||
import { Button } from '@/components/ui/button'; | ||
import { Slider } from '@/components/ui/slider'; | ||
|
||
export function Player() { | ||
return ( | ||
<div className='h-20 border-t border-zinc-800 p-4 flex items-center justify-between'> | ||
<div className='flex items-center space-x-4'> | ||
<Image src='/placeholder.svg' alt='Album cover' width={48} height={48} className='rounded' /> | ||
<div> | ||
<h3 className='font-medium'>Welcome To Horrorwood</h3> | ||
<p className='text-sm text-zinc-400'>Ice Nine Kills</p> | ||
</div> | ||
<Button size='icon' variant='ghost'> | ||
<Heart className='h-4 w-4' /> | ||
</Button> | ||
</div> | ||
|
||
<div className='flex flex-col items-center'> | ||
<div className='flex items-center space-x-4'> | ||
<Button size='icon' variant='ghost'> | ||
<Shuffle className='h-4 w-4' /> | ||
</Button> | ||
<Button size='icon' variant='ghost'> | ||
<SkipBack className='h-4 w-4' /> | ||
</Button> | ||
<Button size='icon' className='h-8 w-8 bg-orange-500 hover:bg-orange-600'> | ||
<Play className='h-4 w-4' /> | ||
</Button> | ||
<Button size='icon' variant='ghost'> | ||
<SkipForward className='h-4 w-4' /> | ||
</Button> | ||
<Button size='icon' variant='ghost'> | ||
<Repeat className='h-4 w-4' /> | ||
</Button> | ||
</div> | ||
<div className='flex items-center space-x-2 text-sm text-zinc-400'> | ||
<span>1:55</span> | ||
<div className='w-96 h-1 bg-zinc-800 rounded-full'> | ||
<div className='w-1/3 h-full bg-orange-500 rounded-full' /> | ||
</div> | ||
<span>3:47</span> | ||
</div> | ||
</div> | ||
|
||
<div className='flex items-center space-x-4'> | ||
<Button size='icon' variant='ghost'> | ||
<Mic2 className='h-4 w-4' /> | ||
</Button> | ||
<Button size='icon' variant='ghost'> | ||
<ListMusic className='h-4 w-4' /> | ||
</Button> | ||
<div className='flex items-center space-x-2'> | ||
<Volume2 className='h-4 w-4' /> | ||
<Slider defaultValue={[66]} max={100} step={1} className='w-24' /> | ||
</div> | ||
<Button size='icon' variant='ghost'> | ||
<MoreHorizontal className='h-4 w-4' /> | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.