-
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.
Added colors and updated each page with new grid
- Loading branch information
1 parent
16748e8
commit 7fabc5c
Showing
13 changed files
with
215 additions
and
127 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
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,14 @@ | ||
import { PageTitle } from '@/pageComponents/PageWrapper' | ||
import React from 'react' | ||
|
||
export default function RootLayout({ | ||
children | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<PageTitle title='Colors' description='Eyecandy'> | ||
{children} | ||
</PageTitle> | ||
) | ||
} |
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,78 @@ | ||
'use client' | ||
|
||
import React from 'react' | ||
import { Section } from '@/pageComponents/Section' | ||
|
||
export default function colors() { | ||
function ColorPalette({ className }: { className?: string | undefined }) { | ||
return ( | ||
<button | ||
onClick={() => { | ||
if (className) | ||
navigator.clipboard.writeText(className?.slice(3, className.length)) | ||
}} | ||
className='flex flex-col gap-1 items-center justify-center' | ||
> | ||
<div className={`${className} w-24 h-24 rounded-lg`} /> | ||
<p className='text-xs font-medium'> | ||
{className?.slice(3, className.length)} | ||
</p> | ||
</button> | ||
) | ||
} | ||
|
||
return ( | ||
<div className='grid grid-cols-2 gap-12'> | ||
<Section header='Base'> | ||
<ColorPalette className='bg-base-100' /> | ||
<ColorPalette className='bg-base-200' /> | ||
<ColorPalette className='bg-base-300' /> | ||
<ColorPalette className='bg-base-content' /> | ||
</Section> | ||
|
||
<Section header='Primary'> | ||
<ColorPalette className='bg-primary' /> | ||
<ColorPalette className='bg-primary-focus' /> | ||
<ColorPalette className='bg-primary-content' /> | ||
</Section> | ||
|
||
<Section header='Secondary'> | ||
<ColorPalette className='bg-secondary' /> | ||
<ColorPalette className='bg-secondary-focus' /> | ||
<ColorPalette className='bg-secondary-content' /> | ||
</Section> | ||
|
||
<Section header='Accent'> | ||
<ColorPalette className='bg-accent' /> | ||
<ColorPalette className='bg-accent-focus' /> | ||
<ColorPalette className='bg-accent-content' /> | ||
</Section> | ||
|
||
<Section header='Neutral'> | ||
<ColorPalette className='bg-neutral' /> | ||
<ColorPalette className='bg-neutral-focus' /> | ||
<ColorPalette className='bg-neutral-content' /> | ||
</Section> | ||
|
||
<Section header='Info'> | ||
<ColorPalette className='bg-info' /> | ||
<ColorPalette className='bg-info-content' /> | ||
</Section> | ||
|
||
<Section header='Success'> | ||
<ColorPalette className='bg-success' /> | ||
<ColorPalette className='bg-success-content' /> | ||
</Section> | ||
|
||
<Section header='Warning'> | ||
<ColorPalette className='bg-warning' /> | ||
<ColorPalette className='bg-warning-content' /> | ||
</Section> | ||
|
||
<Section header='Error'> | ||
<ColorPalette className='bg-error' /> | ||
<ColorPalette className='bg-error-content' /> | ||
</Section> | ||
</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
Oops, something went wrong.
7fabc5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
gryt-ui – ./
gryt-ui-git-main-gryt.vercel.app
gryt-ui-gryt.vercel.app
gryt-ui.vercel.app
ui.gryt.chat