-
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
35 changed files
with
436 additions
and
329 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,22 @@ | ||
import {cn} from '@/utils/toolbox' | ||
|
||
type ArrowProps = { | ||
theme?: 'dark' | 'light' | ||
className?: string | ||
} | ||
|
||
export default function Arrow({className='', theme='dark'}: ArrowProps) { | ||
return ( | ||
<div className={cn('-mt-1 w-1.5 h-24', className)}> | ||
<div className={cn('w-px h-full', theme === 'dark' ? 'bg-white' : 'bg-primary-dark')}/> | ||
<div | ||
className={cn( | ||
'text-[10px] rotate-180 -mt-3', | ||
theme === 'dark' ? 'text-white' : 'text-primary-dark' | ||
)} | ||
> | ||
▲ | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
import {MoveDown} from 'lucide-react' | ||
import {cn} from '@/utils/toolbox' | ||
import Arrow from '../../arrow' | ||
|
||
export type VerticalTitleProps = { | ||
styleCard: 'illustrationCard' | 'detailsCard' | ||
title: string | ||
classNameText?: string | ||
title: string | ||
theme?: 'dark' | 'light' | ||
} | ||
|
||
export default function VerticalTitle({title, styleCard = 'illustrationCard', classNameText}: VerticalTitleProps) { | ||
export default function VerticalTitle({ | ||
title, | ||
classNameText, | ||
styleCard = 'illustrationCard', | ||
theme | ||
}: VerticalTitleProps) { | ||
return ( | ||
<div | ||
className={cn(styleCard === 'illustrationCard' ? 'top-48' : 'top-[450px]', | ||
'absolute items-center translate-x-[50%] translate-y-[100%] rotate-90 gap-x-8 hidden xl:flex right-24')}> | ||
<span className={cn('text-sm font-medium tracking-[0.25rem] uppercase', classNameText)}>{title}</span> | ||
<span | ||
className={cn('flex items-center justify-center w-40 before:bg-blue-medium text-[10px] -left-[3px] relative \ | ||
rotate-90', classNameText)}> | ||
▲ | ||
</span> | ||
className={cn(styleCard === 'illustrationCard' ? 'top-20' : 'top-[450px]', | ||
'absolute right-24 flex flex-col items-center space-y-10' | ||
)} | ||
> | ||
<div className={cn('text-sm font-medium tracking-[0.1rem] uppercase', classNameText)}> | ||
<span style={{writingMode: 'vertical-lr'}}>{title}</span> | ||
</div> | ||
<MoveDown | ||
className={ | ||
cn('w-10 text-white stroke-1 h-14 ml-1', theme === 'dark' ? 'text-white' : 'text-primary-dark') | ||
}/> | ||
</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
4 changes: 1 addition & 3 deletions
4
src/components/ui/molecules/cards/illustration/illustration-card.model.ts
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,12 +1,10 @@ | ||
import {ImageProps} from '@/models/image.model' | ||
import {StaticImageData} from 'next/image' | ||
|
||
export type IllustrationCardPropsImpl = { | ||
number: number | ||
illustration: ImageProps | ||
icon: StaticImageData | ||
href: string | ||
title: string | ||
description: string | ||
alignment?: string | ||
theme?: string | ||
} |
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.
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
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,28 @@ | ||
import Markdown from 'markdown-to-jsx' | ||
import React from 'react' | ||
|
||
export function MarkdownViewer({content}: {content: string}) { | ||
return ( | ||
<div className='flex justify-center w-full'> | ||
<div className='w-full px-4 prose max-w-7xl'> | ||
<Markdown | ||
options={{ | ||
createElement(type, props: React.HTMLProps<HTMLDivElement> , children: React.ReactNode) { | ||
const element = Array.isArray(children) ? children[0] : children | ||
if (element === 'video') { | ||
return <iframe | ||
key={props['href']} | ||
src={props['href']} | ||
className='w-full rounded-lg h-[500px]'/> | ||
} else { | ||
return React.createElement(type, props, children) | ||
} | ||
} | ||
}} | ||
> | ||
{content} | ||
</Markdown> | ||
</div> | ||
</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.