diff --git a/src/components/ui/atoms/arrow/index.tsx b/src/components/ui/atoms/arrow/index.tsx new file mode 100644 index 00000000..53a33aeb --- /dev/null +++ b/src/components/ui/atoms/arrow/index.tsx @@ -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 ( +
+
+
+ ▲ +
+
+ ) +} diff --git a/src/components/ui/atoms/button/button.model.ts b/src/components/ui/atoms/button/button.model.ts index bd8d4cac..7be28e00 100644 --- a/src/components/ui/atoms/button/button.model.ts +++ b/src/components/ui/atoms/button/button.model.ts @@ -8,7 +8,7 @@ export const buttonAlignments = ['start', 'center', 'end'] as const const toneClasses: Record> = { primary: { - default: 'bg-primary-200 text-primary-500 hover:bg-primary-100 focus-visible:ring-primary-500 \ + default: 'bg-primary-800 text-white hover:bg-white hover:text-primary-800 focus-visible:ring-primary-800 \ focus-visible:outline-primary-200 uppercase tracking-widest', link: 'text-primary-800 hover:underline focus-visible:outline-primary-600 focus-visible:underline', ghost: 'text-primary-800 hover:bg-primary-100/30 focus-visible:outline-primary-600 \ @@ -23,9 +23,9 @@ const toneClasses: Record
) } diff --git a/src/components/ui/molecules/article/content-section/index.tsx b/src/components/ui/molecules/article/content-section/index.tsx index 6cb2651f..70492b15 100644 --- a/src/components/ui/molecules/article/content-section/index.tsx +++ b/src/components/ui/molecules/article/content-section/index.tsx @@ -1,9 +1,9 @@ import {ImageProps} from '@/models/image.model' +import {MarkdownViewer} from '../../mardown' import {Tag} from '@/models/tag.model' -import Markdown from 'markdown-to-jsx' import PostCover from '../../cards/cover' import PostTagList from '../../cards/article/tag-list' -import React, {ReactNode} from 'react' +import React from 'react' export type ArticleContentSectionProps = { image: ImageProps @@ -28,23 +28,7 @@ export default function ArticleContentSection({image, tags, title, content}: Art

{title}

- , children: ReactNode) { - const element = Array.isArray(children) ? children[0] : children - if (element === 'video') { - return