From 9ad126f587ae20f8066ef21fdd375e5b68540418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=ED=98=84=EC=A3=BC?= Date: Sat, 9 Oct 2021 07:01:29 +0900 Subject: [PATCH] =?UTF-8?q?[#45]=20Readme=20=EC=A0=95=EB=A6=AC=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 48 ++++++++++++++--------- src/components/Common/Member/index.js | 9 ++++- src/components/Common/Pagination/index.js | 43 +++++++++++--------- src/components/MyPage/Profile/index.js | 11 +++--- src/components/MyPage/Profile/styles.js | 30 +++++++------- src/pages/home/index.js | 2 +- src/pages/home/styles.js | 15 +------ src/pages/mypage/styles.js | 12 +++--- 8 files changed, 91 insertions(+), 79 deletions(-) diff --git a/README.md b/README.md index 0cfd827..cf59298 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # โœจ BTS (Bithumb NTF SNS) ๐Ÿ’ฐ -## ๐Ÿ‘‰ ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ +## ๐ŸŽจ ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ - ํ”„๋กœ์ ํŠธ๋ช…์€ **Bithumb์˜ NFT์™€ SNS ์„œ๋น„์Šค๋ฅผ ๊ฒฐํ•ฉํ•˜์—ฌ BTS๋กœ ์ง€์—ˆ์Šต๋‹ˆ๋‹ค.** ๋‹ค์–‘ํ•œ ์ž‘๊ฐ€๋“ค์˜ ๊ทธ๋ฆผ๊ณผ ์•„ํŠธ๋ฅผ NFT ์ฝ”์ธ ๊ฒฝ๋งค๋กœ ๋งŒ๋‚˜๋ณผ ์ˆ˜ ์žˆ์œผ๋ฉฐ ๋น—์ธ ์ฝ”์ธ ์œ ์ €๋“ค๊ณผ ์—ด๋ฆฐ ์†Œํ†ต์„ ํ•  ์ˆ˜ ์žˆ๋„๋ก SNS ์ปค๋ฎค๋‹ˆํ‹ฐ๋„ ํ™œ์„ฑํ™” ์‹œ์ผฐ์Šต๋‹ˆ๋‹ค. @@ -53,7 +53,7 @@ ## ๐Ÿ‘‰ `๋กœ๋”ฉํ™”๋ฉด` - ํฌ๋กฌ ๋‹ค์ด๋…ธ๋„ ์ฆ๊ธฐ๋Š” ๋น—์ธ NFT ๊ฒฝ๋งค์žฅ์œผ๋กœ ๋›ฐ์–ด๋“ค์–ด๊ฐ€๋Š” ๋ชจ์Šต์œผ๋กœ ๋กœ๋”ฉ ํ™”๋ฉด ์‹œ์ž‘
- (ํ™œ๋ฐœํ•˜๊ฒŒ ๊ฒฝ๋งค๊ฐ€ ์ด๋ฃจ์–ด์งˆ ์ˆ˜ ์žˆ๋„๋ก ๋ฐ์€ ๋ถ„์œ„๊ธฐ๋กœ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค.) + (ํ™œ๋ฐœํ•˜๊ฒŒ ๊ฒฝ๋งค๊ฐ€ ์ด๋ฃจ์–ด์งˆ ์ˆ˜ ์žˆ๋„๋ก ์œ ์พŒํ•˜๊ณ  ๋ฐ์€ ๋ถ„์œ„๊ธฐ๋กœ ์‹œ์ž‘๋ฉ๋‹ˆ๋‹ค.) ![](https://images.velog.io/images/leemember/post/c35472c9-c3ad-4bce-b8b7-2f9a48ea6b18/bts1.gif) @@ -62,56 +62,66 @@ ## ๐Ÿ‘‰ `๋ฉ”์ธํŽ˜์ด์ง€` ### **Header** (๋กœ๊ณ , ๊ฒ€์ƒ‰๋ฐ”, ๋กœ๊ทธ์ธ & ๋กœ๊ทธ์•„์›ƒ, ๋งˆ์ดํŽ˜์ด์ง€) + ### **Intro** 1. ํŠธ๋ ˆ์ด๋”ฉ๋ทฐ ๊ทธ๋ž˜ํ”„๋กœ ํด๋ ˆ์ดํŠผ ํ˜„์žฌ ์‹œ์„ธ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ -2. ํ•˜๋ฝ ์ƒ์Šน ์ƒ‰๊น”๋กœ ํ‘œ์‹œ (์ƒ์Šน์‹œ ๋นจ๊ฐ„์ƒ‰ / ํ•˜๋ฝ์‹œ ํŒŒ๋ž€์ƒ‰) -3. ์•„๋ž˜ ํ™”์‚ดํ‘œ ํด๋ฆญ ์‹œ NFT ๊ฒฝ๋งค ์„น์…˜์œผ๋กœ ์ด๋™) +2. ํ•˜๋ฝ ์ƒ์Šน์‹œ ์ƒ‰๊น”๋กœ ํ‘œ์‹œ (์ƒ์Šน์‹œ ๋นจ๊ฐ„์ƒ‰ / ํ•˜๋ฝ์‹œ ํŒŒ๋ž€์ƒ‰) +3. ์•„๋ž˜ ํ™”์‚ดํ‘œ ํด๋ฆญ ์‹œ NFT ๊ฒฝ๋งค ์„น์…˜์œผ๋กœ ์ด๋™ + +![](https://images.velog.io/images/leemember/post/68a0cbd5-173c-43da-826d-9c49dc4b117c/%E1%84%86%E1%85%A6%E1%84%8B%E1%85%B5%E1%86%AB.gif) ### **NFT ๊ฒฝ๋งค ์„น์…˜** -1. BTS ํšŒ์› ์œ ์ €๋“ค์ด ์—…๋กœ๋“œํ•œ NFT ๊ฒฝ๋งค ํŒ๋งค์ค‘์ธ ๊ฒŒ์‹œ๊ธ€ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ -2. ํŽ˜์ด์ง•๋„ค์ด์…˜ (์ตœ๋Œ€ 9๊ฐœ ๊ฒŒ์‹œ๋ฌผ๊นŒ์ง€ ๋ณด์ด๋„๋ก ! ์ดˆ๊ณผ์‹œ ๋‹ค์Œ ํŽ˜์ด์ง€ ๋ฒˆ์ˆ˜๊ฐ€ ์ƒ๊ธด๋‹ค) +1. BTS ํšŒ์› ์œ ์ €๋“ค์ด ์—…๋กœ๋“œํ•œ ๋ชจ๋“  NFT ๊ฒฝ๋งค ๊ฒŒ์‹œ๊ธ€ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ +2. ํŽ˜์ด์ง•๋„ค์ด์…˜ (์ตœ๋Œ€ 9๊ฐœ์˜ ๊ฒŒ์‹œ๋ฌผ์ด ๋ณด์ด๋„๋ก ๊ตฌํ˜„. ์ดˆ๊ณผ์‹œ ๋‹ค์Œ ํŽ˜์ด์ง€ ๋ฒˆ์ˆ˜๊ฐ€ ์ƒ๊ธด๋‹ค.) + +### **Footer** -### **Footer** -1. 4์ฃผ๋™์•ˆ ํ•จ๊ป˜ํ–ˆ๋˜ ํŒ€ ๋ฉค๋ฒ„๋“ค ์†Œ๊ฐœ -2. ๊นƒํ—ˆ๋ธŒ ์ฃผ์†Œ ํด๋ฆญ์‹œ ํ•ด๋‹น ๋ฉค๋ฒ„ ๊นƒํ—ˆ๋ธŒ ์ฃผ์†Œ๋กœ ํŽ˜์ด์ง€ ์ƒˆ์ฐฝ ์—ด๋ฆฌ๊ธฐ +1. 4์ฃผ๋™์•ˆ ํ•จ๊ป˜ ์—ด์‹ฌํžˆ ํ”„๋กœ์ ํŠธ ๋‹ฌ๋ ธ๋˜ ํŒ€ ๋ฉค๋ฒ„๋“ค ์†Œ๊ฐœ +2. ๊นƒํ—ˆ๋ธŒ ์ฃผ์†Œ ํด๋ฆญ์‹œ ํ•ด๋‹น ๋ฉค๋ฒ„ ๊นƒํ—ˆ๋ธŒ ํŽ˜์ด์ง€๋กœ ์ƒˆ์ฐฝ ์—ด๋ฆฌ๊ธฐ -![](https://images.velog.io/images/leemember/post/27e1d2ea-3234-47f7-aba9-6ecb7c58cb90/main.gif) +![](https://images.velog.io/images/leemember/post/5f8e4e67-9a4e-49cb-9334-8b31c807dade/%E1%84%86%E1%85%A6%E1%84%8B%E1%85%B5%E1%86%AB2.gif)
-### ๐Ÿ‘‰ `๋กœ๊ทธ์ธ` +## ๐Ÿ‘‰ `๋กœ๊ทธ์ธ` -- ์นด์นด์˜ค, ๋„ค์ด๋ฒ„ Auth ๋กœ๊ทธ์ธ ๊ตฌํ˜„ +- ์ƒ๋‹จ ํ—ค๋”์— ๋กœ๊ทธ์ธ ๋ฒ„ํŠผ ํด๋ฆญ + +1. ์นด์นด์˜ค auth ๋กœ๊ทธ์ธ +2. ๋„ค์ด๋ฒ„ auth ๋กœ๊ทธ์ธ + +![](https://images.velog.io/images/leemember/post/e491a246-aa14-48bc-8a9a-053f2368ea87/login.gif)
-### ๐Ÿ‘‰ `NFT ์•„์ดํ…œ` +## ๐Ÿ‘‰ `NFT ์นด๋“œ ์•„์ดํ…œ` - ์ข‹์•„์š” & ์ข‹์•„์š” ํ•ด์ œ ๊ธฐ๋Šฅ (์ข‹์•„์š” ์‹œ ๋งˆ์ดํŽ˜์ด์ง€ `์ข‹์•„์š”ํ•œ ์ž‘ํ’ˆ` ์— ์ €์žฅ) - ์‚ญ์ œ ๊ธฐ๋Šฅ (๋งˆ์ดํŽ˜์ด์ง€ `๋‚˜์˜ NFT ์ž‘ํ’ˆ` ํŽ˜์ด์ง€์—์„œ๋งŒ ์‚ญ์ œ ๊ฐ€๋Šฅํ•˜๋„๋ก ๊ตฌํ˜„)
-### ๐Ÿ‘‰ `NFT ๊ฒฝ๋งค ์—…๋กœ๋“œ` +## ๐Ÿ‘‰ `NFT ๊ฒฝ๋งค ์—…๋กœ๋“œ`
-### ๐Ÿ‘‰ `NFT ๊ฒฝ๋งค ๊ฒŒ์‹œ๊ธ€` +## ๐Ÿ‘‰ `NFT ๊ฒฝ๋งค ๊ฒŒ์‹œ๊ธ€`
-### ๐Ÿ‘‰ `์ปค๋ฎค๋‹ˆํ‹ฐ` +## ๐Ÿ‘‰ `์ปค๋ฎค๋‹ˆํ‹ฐ`
-### ๐Ÿ‘‰ `๋งˆ์ดํŽ˜์ด์ง€` +## ๐Ÿ‘‰ `๋งˆ์ดํŽ˜์ด์ง€`
-### ๐Ÿ‘‰ `๊ฒ€์ƒ‰ํŽ˜์ด์ง€` -- ํ—ค๋” ๊ฒ€์ƒ‰๋ฐ”์— ํ•ด๋‹น ํ‚ค์›Œ๋“œ ๊ฒ€์ƒ‰์‹œ ๊ฒ€์ƒ‰ํ•œ ๋‹จ์–ด์˜ NFT ๊ฒฝ๋งค ๊ฒŒ์‹œ๊ธ€ ์ถœ๋ ฅ +## ๐Ÿ‘‰ `๊ฒ€์ƒ‰ํŽ˜์ด์ง€` + +- ํ—ค๋” ๊ฒ€์ƒ‰๋ฐ”์— ํ•ด๋‹น ํ‚ค์›Œ๋“œ ๊ฒ€์ƒ‰์‹œ, ๊ฒ€์ƒ‰ํ•œ ํ‚ค์›Œ๋“œ์˜ NFT ๊ฒฝ๋งค ๊ฒŒ์‹œ๊ธ€ ์ถœ๋ ฅ ![](https://images.velog.io/images/leemember/post/e5989934-70e9-4e88-b9a8-a551ed963faa/search.gif)
diff --git a/src/components/Common/Member/index.js b/src/components/Common/Member/index.js index 0294ecc..2f43973 100644 --- a/src/components/Common/Member/index.js +++ b/src/components/Common/Member/index.js @@ -51,13 +51,18 @@ const MemberInfo = styled.div` margin-top: 16px; text-align: center; h3 { - font-size: 1rem; + font-size: 1.1rem; line-height: 1.75; font-weight: 700; + letter-spacing: -0.8px; } p { - font-size: 0.75rem; + font-size: 0.9rem; line-height: 1.75; font-weight: 500; + margin-bottom: 0.5rem; + } + svg { + font-size: 1.3rem; } `; diff --git a/src/components/Common/Pagination/index.js b/src/components/Common/Pagination/index.js index 6ae2944..157ee29 100644 --- a/src/components/Common/Pagination/index.js +++ b/src/components/Common/Pagination/index.js @@ -1,5 +1,5 @@ /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ -import React from 'react'; +import React, { useState } from 'react'; import styled from '@emotion/styled'; const Pagination = ({ postsPerPage, totalPosts, paginate }) => { @@ -20,7 +20,11 @@ const Pagination = ({ postsPerPage, totalPosts, paginate }) => { {pageNumbers.map(number => (
  • - NextPage(number, e)} href="#" className="page-link"> + NextPage(number, e)} + href="#" + active={number === paginate} + > {number}
  • @@ -32,26 +36,29 @@ const Pagination = ({ postsPerPage, totalPosts, paginate }) => { export default Pagination; const Paging = styled.ul` - display: flex; - justify-content: center; - margin: 2rem 0 7rem 0; + margin: 100px 0 20px; + padding: 0; + list-style: none; + text-align: center; li { - width: 30px; - height: 30px; - border: 1px solid #ccc; - justify-content: center; - align-items: center; - font-size: 1rem; - display: flex; + display: inline-block; + margin-right: 5px; a { - width: 100%; - height: 100%; - display: flex; - justify-content: center; - align-items: center; + color: #666; + padding: 5px 10px; + text-decoration: none; + border: 1px solid #eee; + background-color: #fff; + box-shadow: 0px 0px 10px 0px #eee; &:active { - background: #fe5000; color: #fff; + background-color: #fe5000; + border-color: #fe5000; + } + &.current { + color: #fff; + background-color: #fe5000; + border-color: #fe5000; } } } diff --git a/src/components/MyPage/Profile/index.js b/src/components/MyPage/Profile/index.js index f0c09db..18d97c4 100644 --- a/src/components/MyPage/Profile/index.js +++ b/src/components/MyPage/Profile/index.js @@ -74,10 +74,11 @@ function Profile() { -

    - ์ด๋ฉ”์ผ

    {userInfo.email} +

    ์ด๋ฉ”์ผ

    + {userInfo.email}
    -

    - ์ง€๊ฐ‘ ์ •๋ณด

    +

    ์ง€๊ฐ‘ ์ •๋ณด

    {!userInfo.coin_wallet ? ( <> ๋“ฑ๋ก๋œ ์ง€๊ฐ‘์ด ์—†์Šต๋‹ˆ๋‹ค. @@ -94,7 +95,7 @@ function Profile() { ref={dropdownRef} className={`menu ${isActive ? 'active' : 'inactive'}`} > -
    ๐Ÿ‘ค{userInfo.name}๋‹˜์˜ ์ง€๊ฐ‘์ •๋ณด
    +
    ๐Ÿ‘ค {userInfo.name}๋‹˜์˜ ์ง€๊ฐ‘์ •๋ณด
    {!userInfo.coin_wallet ? null : ( -
    - ํ˜„์žฌ ์ž”์•ก
    {' '} +

    ํ˜„์žฌ ๋‚˜์˜ ์ž”์•ก

    {checkBalanceLoading ? ( ๋กœ๋”ฉ์ค‘ ) : ( - {balanceData} KLAY + {balanceData} KLAY )}
    )} diff --git a/src/components/MyPage/Profile/styles.js b/src/components/MyPage/Profile/styles.js index 3ef6a28..ba38ad6 100644 --- a/src/components/MyPage/Profile/styles.js +++ b/src/components/MyPage/Profile/styles.js @@ -7,7 +7,7 @@ export const Wrapper = styled.div` export const UserInfo = styled.div` display: grid; place-items: center; - margin: 2rem 0 1.5rem 0; + margin: 2rem 0; `; export const ProfileImage = styled.div` width: 160px; @@ -28,16 +28,16 @@ export const UserName = styled.span` `; export const UserEmail = styled.div` - margin: 1rem 2rem 2rem 2rem; + margin: 2rem; font-weight: 400; p { font-weight: 700; - margin-right: 5px; color: #9c9c9c; - margin-bottom: 20px; + margin-bottom: 15px; + font-size: 16px; } - span { - padding-left: 10px; + .desc { + font-size: 16px; } .warn-msg { font-size: 16px; @@ -46,7 +46,6 @@ export const UserEmail = styled.div` display: inline-block; } button { - margin: 0 1rem 0 1rem; position: relative; font-weight: 500; } @@ -54,7 +53,6 @@ export const UserEmail = styled.div` vertical-align: middle; font-size: 1rem; } - .menu { margin-top: 10px; padding: 20px 20px 0 20px; @@ -78,6 +76,10 @@ export const UserEmail = styled.div` } nav { + .me { + font-size: 16px; + margin-bottom: 1.5rem; + } div { &:nth-of-type(1) { color: #4a4a4a; @@ -89,14 +91,14 @@ export const UserEmail = styled.div` export const CopyInputBtn = styled.div` display: flex; justify-content: space-between; - border: 1px solid; border-radius: 5px; - margin-bottom: 0; + margin-bottom: 1.5rem; + border: 1px solid #d1d1d1; input { width: 100%; padding: 7px; color: #000000; - border-right: 1px solid #9c9c9c; + border-right: 1px solid #d1d1d1; background-color: #f6f6f6; border-radius: 5px; border-top-right-radius: 0; @@ -118,7 +120,7 @@ export const EditButton = styled.button` background-color: #f6f6f6; text-align: center; width: 90%; - padding: 5px 0; + padding: 8px 15px; border-radius: 5px; margin: 0 1rem 1rem 1.2rem; `; @@ -128,7 +130,6 @@ export const SaveButton = styled.button` text-align: center; padding: 10px 0; border-radius: 5px; - margin: 0 0.3rem 1rem 0.3rem; color: white; font-weight: 600; width: 100%; @@ -141,8 +142,7 @@ export const CancelButton = styled.button` text-align: center; padding: 5px 0; border-radius: 5px; - margin: 0 0.3rem 1rem 0.3rem; - width: 90%; + width: 100%; `; export const ButtonContainer = styled.div` diff --git a/src/pages/home/index.js b/src/pages/home/index.js index 7c559fb..b7f4cd1 100644 --- a/src/pages/home/index.js +++ b/src/pages/home/index.js @@ -41,7 +41,7 @@ function home() { // ํ˜„์žฌ ํŽ˜์ด์ง€ const [currentPage, setCurrentPage] = useState(1); // ์ „์ฒด ํŽ˜์ด์ง€ (๊ฒŒ์‹œ๋ฌผ ๊ฐœ์ˆ˜) - const [postsPerPage, setPostsPerPage] = useState(6); + const [postsPerPage, setPostsPerPage] = useState(9); // ํ•ด๋‹น ํŽ˜์ด์ง€์—์„œ ๋งˆ์ง€๋ง‰ post์˜ index ๋ฒˆํ˜ธ๋ฅผ ๊ฐ€๋ฅดํ‚ต๋‹ˆ๋‹ค. const indexOfLastPost = currentPage * postsPerPage; // ํ•ด๋‹น ํŽ˜์ด์ง€์—์„œ ์ฒซ๋ฒˆ์งธ post์˜ index ๋ฒˆํ˜ธ๋ฅผ ๊ฐ€๋ฅดํ‚ต๋‹ˆ๋‹ค. diff --git a/src/pages/home/styles.js b/src/pages/home/styles.js index e95c731..284c9d7 100644 --- a/src/pages/home/styles.js +++ b/src/pages/home/styles.js @@ -27,20 +27,7 @@ export const CardListBox = styled.article` export const BottomMailn = styled.section` height: 100%; position: relative; - - .ant-pagination { - text-align: right; - margin-right: 3%; - margin: 70px 35px 140px; - } - .ant-pagination-item-active a { - color: #fe5000; - } - .ant-pagination-item-active { - font-weight: 500; - background: #fff; - border-color: #fe5000; - } + padding-bottom: 200px; `; export const EmptyWrap = styled.section` diff --git a/src/pages/mypage/styles.js b/src/pages/mypage/styles.js index 84a488f..d813423 100644 --- a/src/pages/mypage/styles.js +++ b/src/pages/mypage/styles.js @@ -21,17 +21,19 @@ export const Content = styled.div` export const MyPageLink = styled.div` display: flex; flex-direction: column; - margin-top: 1rem; - margin-left: 2rem; `; export const TabList = styled.li` - padding: 1.2rem 10px; color: ${props => (props.current ? '#4a4a4a' : '#9a9a9a')}; font-weight: ${props => (props.current ? 600 : 400)}; - font-size: 1.1rem; border-radius: 5px; - + text-align: center; + a { + display: inline-block; + font-size: 1.2rem; + width: 100%; + padding: 1.2rem 10px; + } &:hover { background-color: #f8f8f8; }