-
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.
- Loading branch information
Showing
7 changed files
with
86 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ComponentPropsWithoutRef } from 'react'; | ||
|
||
export interface BulletProps extends ComponentPropsWithoutRef<'p'> {} | ||
|
||
export function Bullet({ className, ...props }: BulletProps) { | ||
return ( | ||
<div {...props} className={'bullet dark-bg-gradient h-4 w-4 flex-shrink-0 translate-y-2 ' + (className ?? '')} /> | ||
); | ||
} | ||
|
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,13 +1,17 @@ | ||
import { ComponentPropsWithoutRef } from 'react'; | ||
import { Paragraph } from '..'; | ||
import { Paragraph, ParagraphProps } from '..'; | ||
import { Bullet } from '../Bullet'; | ||
|
||
export interface DescriptionItemProps extends ComponentPropsWithoutRef<'li'> {} | ||
export interface DescriptionItemProps extends ComponentPropsWithoutRef<'li'> { | ||
paragraphProps?: Omit<ParagraphProps, 'children'>; | ||
} | ||
|
||
export function DescriptionItem({ children, ...props }: DescriptionItemProps) { | ||
export function DescriptionItem({ children, paragraphProps, ...props }: DescriptionItemProps) { | ||
return ( | ||
<li className="mb-1 flex gap-4 lg:mb-2" {...props}> | ||
<div className="bullet dark-bg-gradient h-4 w-4 flex-shrink-0 translate-y-2" /> | ||
<Paragraph className="mb-0">{children}</Paragraph> | ||
<li {...props} className={'flex gap-4 ' + (props.className ?? '')}> | ||
<Bullet /> | ||
<Paragraph {...paragraphProps}>{children}</Paragraph> | ||
</li> | ||
); | ||
} | ||
|
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 |
---|---|---|
|
@@ -73,3 +73,4 @@ export default function Projects() { | |
</Page> | ||
); | ||
} | ||
|
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