-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make pages with lists consistent
- Loading branch information
Showing
11 changed files
with
174 additions
and
173 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import clsx from 'clsx'; | ||
|
||
interface Props { | ||
children: React.ReactNode; | ||
className?: string; | ||
} | ||
|
||
const PageListContainer = ({ className, children }: Props) => { | ||
return ( | ||
<div | ||
style={{ | ||
background: 'radial-gradient(124.75% 124.75% at 50.01% -10.55%, rgb(16, 16, 16) 0%, rgb(4, 4, 4) 100%)', | ||
}} | ||
className={clsx(className, 'p-1 border-[1px] border-[#ffffff12] rounded-xl')} | ||
> | ||
<div className='flex h-full w-full flex-col gap-1 overflow-hidden rounded-lg'>{children}</div> | ||
</div> | ||
); | ||
}; | ||
PageListContainer.displayName = 'PageListContainer'; | ||
|
||
const PageListItem = ({ className, children }: Props) => { | ||
return ( | ||
<div | ||
className={clsx( | ||
className, | ||
'flex items-center rounded-md bg-[#ffffff11] px-2 sm:px-6 py-4 transition duration-100 hover:bg-[#ffffff19] hover:duration-0 gap-4 flex-col sm:flex-row', | ||
)} | ||
> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
PageListItem.displayName = 'PageListItem'; | ||
|
||
export { PageListContainer, PageListItem }; |
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
Oops, something went wrong.