From 46134caa40b14088bb627fb95052c1709b4ed0ac Mon Sep 17 00:00:00 2001 From: Eunjin Oh Date: Sat, 22 Mar 2025 18:17:19 +0900 Subject: [PATCH 1/3] =?UTF-8?q?Design:=20=ED=8C=8C=EC=9D=BC=20=EC=97=85?= =?UTF-8?q?=EB=A1=9C=EB=93=9C=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=94=94?= =?UTF-8?q?=EC=9E=90=EC=9D=B8=20=EC=99=84=EB=A3=8C=20(#19)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/image/upload.svg | 4 + .../FileUploadPage/FileUploadPage.style.ts | 187 ++++++++++++++++++ src/pages/FileUploadPage/FileUploadPage.tsx | 63 +++++- 3 files changed, 253 insertions(+), 1 deletion(-) create mode 100644 src/assets/image/upload.svg diff --git a/src/assets/image/upload.svg b/src/assets/image/upload.svg new file mode 100644 index 0000000..e10b989 --- /dev/null +++ b/src/assets/image/upload.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/pages/FileUploadPage/FileUploadPage.style.ts b/src/pages/FileUploadPage/FileUploadPage.style.ts index e69de29..89be132 100644 --- a/src/pages/FileUploadPage/FileUploadPage.style.ts +++ b/src/pages/FileUploadPage/FileUploadPage.style.ts @@ -0,0 +1,187 @@ +import styled from "styled-components"; + +export const StyledFileUploadPage = styled.div` + margin-top: 25px; + display: flex; + flex-direction: column; + align-items: start; + gap: 20px; + .title { + color: #171a1f; + font-family: Archivo; + font-size: 32px; + font-style: normal; + font-weight: 700; + line-height: 48px; /* 150% */ + text-align: start; + } +`; + +export const FileUploadContent = styled.div` + display: flex; + justify-content: center; + align-items: start; + gap: 30px; +`; + +export const FileUpload = styled.div` + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 16px; + width: 55vh; + height: 25vw; + flex-shrink: 0; + border-radius: 16px; + border: 0px solid #9095a1; + background: #fff; + box-shadow: 0px 0px 2px 0px rgba(23, 26, 31, 0.12), + 0px 4px 9px 0px rgba(23, 26, 31, 0.11); + gap: 20%; + + .text { + color: #379ae6; + text-align: center; + font-family: Archivo; + font-size: 18px; + font-style: normal; + font-weight: 500; + line-height: 28px; /* 155.556% */ + } +`; + +export const FileUploadDescription = styled.div` + display: flex; + flex-direction: column; + align-items: start; + justify-content: center; + gap: 16px; + margin-left: 16px; + + .ul { + list-style-type: none; + margin: 0; + padding: 0; + } + + .li { + display: flex; + flex-direction: column; + align-items: start; + justify-content: center; + margin-bottom: 20px; + } + + .title { + color: #424856; + font-family: Inter; + font-size: 18px; + font-style: normal; + font-weight: 700; + line-height: 28px; /* 155.556% */ + margin-bottom: 5px; + } + + .name_input { + padding: 10px; + width: 40vw; + border-radius: 6px 6px 0px 0px; + border: 0px solid rgba(0, 0, 0, 0); + background: #fff; + color: #171a1f; + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: 26px; /* 162.5% */ + } + + .price_input { + padding: 10px; + width: 20vw; + border-radius: 6px 6px 0px 0px; + border: 0px solid rgba(0, 0, 0, 0); + background: #fff; + color: #171a1f; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 26px; /* 162.5% */ + } + + .div { + display: flex; + align-items: center; + justify-content: center; + gap: 10px; + } + + .textarea { + color: #171a1f; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 26px; /* 162.5% */ + padding: 10px; + width: 40vw; + border-radius: 6px 6px 0px 0px; + border: 0px solid rgba(0, 0, 0, 0); + background: #fff; + } + + .select { + color: #171a1f; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 26px; /* 162.5% */ + padding: 10px; + width: 40vw; + border-radius: 6px 6px 0px 0px; + border: 0px solid rgba(0, 0, 0, 0); + background: #fff; + } + + .description { + color: #323743; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + + line-height: 22px; + margin-top: 8px; + margin-bottom: 30px; + } + + hr { + stroke-width: 1px; + stroke: #bdc1ca; + margin-top: 20px; + margin-bottom: 20px; + } + + .button { + display: flex; + width: 513px; + padding: 12px 216px 12px 209px; + align-items: center; + border-radius: 6px; + border: 1px solid rgba(0, 0, 0, 0); + background: #636ae8; + color: #fff; + font-family: Inter; + font-size: 18px; + font-style: normal; + font-weight: 400; + line-height: 28px; /* 155.556% */ + } + + .button:hover { + background: #4f55c1; + } +`; diff --git a/src/pages/FileUploadPage/FileUploadPage.tsx b/src/pages/FileUploadPage/FileUploadPage.tsx index 1e546fe..c6dadc2 100644 --- a/src/pages/FileUploadPage/FileUploadPage.tsx +++ b/src/pages/FileUploadPage/FileUploadPage.tsx @@ -1,5 +1,66 @@ +import NavBar from "@/components/NavBar/NavBar"; +import * as S from "@/pages/FileUploadPage/FileUploadPage.style"; +import upload from "@/assets/image/upload.svg"; + const FileUploadPage = () => { - return

FileUploadPage

; + return ( + <> + + +
새 자료 업로드
+ + + upload + 클릭하거나 파일을 드래그 하여 업로드 + + +
+
    +
  • + + +
  • +
  • + + +
  • +
  • + +
    + +  XRP +
    +
  • +
  • + +