diff --git a/apps/landing/src/app/(detail)/components/MdxCardFooter.tsx b/apps/landing/src/app/(detail)/components/MdxCardFooter.tsx index 5d8f5266..6db25352 100644 --- a/apps/landing/src/app/(detail)/components/MdxCardFooter.tsx +++ b/apps/landing/src/app/(detail)/components/MdxCardFooter.tsx @@ -1,6 +1,6 @@ 'use client' -import { Box, Center, Flex, Image, Text, VStack } from '@devup-ui/react' +import { Box, Center, Flex, Grid, Image, Text, VStack } from '@devup-ui/react' import { useState } from 'react' import IconCode from '@/components/icons/IconCode' @@ -28,7 +28,7 @@ export default function MdxCardFooter({ } return ( - + Show Code - {isOpen && ( - <> - -
- - - Copy - -
-
- - {children} - - - )} + + {isOpen && ( + <> + +
+ + + Copy + +
+
+ + )} + e.stopPropagation()} + overflow="auto" + p={isOpen ? ['12px', null, '24px'] : '0'} + transition="padding 0.2s ease-in-out" + > + {children} + +
) } diff --git a/apps/landing/src/app/layout.tsx b/apps/landing/src/app/layout.tsx index f11af852..8b5bd1dc 100644 --- a/apps/landing/src/app/layout.tsx +++ b/apps/landing/src/app/layout.tsx @@ -27,6 +27,56 @@ export const metadata: Metadata = { resetCss() globalCss({ + fontFaces: [ + { + fontFamily: 'Pretendard', + src: 'url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-ExtraBold.woff2) format("woff2")', + fontWeight: 800, + fontStyle: 'normal', + }, + { + fontFamily: 'Pretendard', + src: 'url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Bold.woff2) format("woff2")', + fontWeight: 700, + fontStyle: 'normal', + }, + { + fontFamily: 'Pretendard', + src: 'url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-SemiBold.woff2) format("woff2")', + fontWeight: 600, + fontStyle: 'normal', + }, + { + fontFamily: 'Pretendard', + src: 'url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Medium.woff2) format("woff2")', + fontWeight: 500, + fontStyle: 'normal', + }, + { + fontFamily: 'Pretendard', + src: 'url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Regular.woff2) format("woff2")', + fontWeight: 400, + fontStyle: 'normal', + }, + { + fontFamily: 'Pretendard', + src: 'url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Light.woff2) format("woff2")', + fontWeight: 300, + fontStyle: 'normal', + }, + { + fontFamily: 'Pretendard', + src: 'url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Thin.woff2) format("woff2")', + fontWeight: 100, + fontStyle: 'normal', + }, + { + fontFamily: 'D2Coding', + src: 'url(https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_three@1.0/D2Coding.woff) format("woff")', + fontWeight: 400, + fontDisplay: 'swap', + }, + ], code: { fontFamily: 'D2Coding', fontSize: ['13px', '15px'], @@ -57,12 +107,12 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= })(window,document,'script','dataLayer','GTM-PSRKC4QZ')`, }} /> - - - {[ 'ExtraBold', @@ -82,10 +132,9 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= type="font/woff2" /> ))} - + + + - + {value} diff --git a/apps/landing/tsconfig.json b/apps/landing/tsconfig.json index 23b738d7..1513e720 100644 --- a/apps/landing/tsconfig.json +++ b/apps/landing/tsconfig.json @@ -11,7 +11,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "react-jsx", + "jsx": "preserve", "incremental": true, "plugins": [ {