-
Notifications
You must be signed in to change notification settings - Fork 338
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 #99 from inkonchain/feat/segmented-tag
feat: v8
- Loading branch information
Showing
11 changed files
with
123 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,37 @@ | ||
import { PropsWithChildren } from "react"; | ||
import { classNames } from "../../../util/classes"; | ||
import { TitleAndDescription } from "./TitleAndDescription"; | ||
import { Card } from "../Card"; | ||
|
||
export interface CardInfoProps extends PropsWithChildren { | ||
className?: string; | ||
children: React.ReactNode; | ||
icon?: React.ReactNode; | ||
title: string; | ||
description: string; | ||
} | ||
|
||
export const CardInfo = ({ children, className }: CardInfoProps) => { | ||
export const CardInfo = ({ | ||
className, | ||
icon, | ||
title, | ||
description, | ||
children, | ||
}: CardInfoProps) => { | ||
return ( | ||
<div | ||
className={classNames( | ||
"ink:grid ink:grid-cols-[repeat(auto-fit,minmax(max(200px,calc(100%/3)),1fr))] ink:xl:grid-cols-2 ink:gap-1 ink:box-border", | ||
className | ||
)} | ||
> | ||
{children} | ||
</div> | ||
<Card variant="secondary" className={className}> | ||
<div | ||
className={classNames( | ||
"ink:flex ink:flex-col ink:justify-start ink:gap-3 ink:box-border", | ||
className | ||
)} | ||
> | ||
{icon} | ||
<TitleAndDescription | ||
title={title} | ||
description={description} | ||
size="cardInfo" | ||
/> | ||
{children} | ||
</div> | ||
</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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { PropsWithChildren } from "react"; | ||
import { classNames } from "../../../util/classes"; | ||
|
||
export interface CardInfosProps extends PropsWithChildren { | ||
className?: string; | ||
children: React.ReactNode; | ||
} | ||
|
||
export const CardInfos = ({ children, className }: CardInfosProps) => { | ||
return ( | ||
<div | ||
className={classNames( | ||
"ink:grid ink:grid-cols-[repeat(auto-fit,minmax(max(200px,calc(100%/3)),1fr))] ink:xl:grid-cols-2 ink:gap-1 ink:box-border", | ||
className | ||
)} | ||
> | ||
{children} | ||
</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
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 was deleted.
Oops, something went wrong.