diff --git a/src/components/Card/EpigramCard.tsx b/src/components/Card/EpigramCard.tsx new file mode 100644 index 00000000..6fb71f86 --- /dev/null +++ b/src/components/Card/EpigramCard.tsx @@ -0,0 +1,60 @@ +import React from 'react'; + +// figma 상으로는 sm ~ 3xl 사이즈로 구현되어 있는데, tailwind 환경을 반영해 +// base ~ 2xl 으로 정의했습니다. +const sizeStyles = { + base: 'w-[286px] max-h-[132px]', + sm: 'sm:w-[312px] sm:max-h-[152px]', + md: 'md:w-[384px] md:max-h-[180px]', + lg: 'lg:w-[540px] lg:max-h-[160px]', + xl: 'xl:w-[640px] xl:max-h-[196px]', + '2xl': '2xl:w-[744px] 2xl:max-h-[196px]', +}; + +const textSizeStyles = { + base: 'text-xs', + sm: 'sm:text-sm', + md: 'md:text-base', + lg: 'lg:text-xl', + xl: 'xl:text-2xl', + '2xl': '2xl:text-2xl', +}; + +function EpigramCard() { + return ( +
+
+ {/* eslint-disable-next-line */} +
{/* 줄무늬를 만들려면 비어있는 div가 필요합니다. */} +
+
+
+ 오랫동안 꿈을 그리는 사람은 마침내 그 꿈을 닮아 간다. +
+
+ - 앙드레 말로 - +
+
+
+
+
+
+ #나아가야할때 +
+
+ #꿈을이루고싶을때 +
+
+
+ ); +} + +export default EpigramCard; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 6a3a652a..1bbe9ac9 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -29,7 +29,6 @@ export default function Home() {
Epigram Main
-

Pretendard

Iropke Batang

diff --git a/tailwind.config.js b/tailwind.config.js index 1c497d8c..7274ffb8 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -50,6 +50,16 @@ module.exports = { 'sub-gray_2': '#E3E9F1', 'sub-gray_3': '#EFF3F8', }, + screens: { + 'sm': '640px', + 'md': '768px', + 'lg': '1024px', + 'xl': '1280px', + '2xl': '1536px', + }, + backgroundImage: { + 'stripes': 'repeating-linear-gradient(to bottom, #ffffff, #ffffff 23px, #e5e7eb 23px, #e5e7eb 24px)', + }, }, }, plugins: [],