diff --git a/src/components/molecules/CategoryButton/index.tsx b/src/components/molecules/CategoryButton/index.tsx index ea69d0a5..991a5f7d 100644 --- a/src/components/molecules/CategoryButton/index.tsx +++ b/src/components/molecules/CategoryButton/index.tsx @@ -31,11 +31,11 @@ function CategoryButton({ tag, isMore, selectedCategory, onClickInterest }: IPro const SCategoryButton = Styled.label` height: 46px; border-radius: 60px; - padding: 12px 25px; + padding: 12px 30px; margin-right: 10px; background-color:${({ isCategoryClicked }) => (isCategoryClicked ? '#03b6ce' : '#ffffff')}; border: ${({ isCategoryClicked }) => - isCategoryClicked ? '#03b6ce' : ({ readMore }) => (readMore ? '1px solid #8b8b8b' : '1px solid #03b6ce')}; + isCategoryClicked ? '1px solid #03b6ce' : ({ readMore }) => (readMore ? '1px solid #8b8b8b' : '1px solid #03b6ce')}; .button { white-space : nowrap; font-size: 16px; diff --git a/src/components/molecules/ChallengeHeader.tsx/index.tsx b/src/components/molecules/ChallengeHeader.tsx/index.tsx index de77dc9b..1c02f73b 100644 --- a/src/components/molecules/ChallengeHeader.tsx/index.tsx +++ b/src/components/molecules/ChallengeHeader.tsx/index.tsx @@ -55,7 +55,7 @@ function ChallengeHeader({ const [selectedCategory, setSelectedCategory] = useState('전체'); const [keyword, setKeyword] = useState(''); const [booleanMine, setBooleanMine] = useState(false); - const [ismine, setIsmine] = useState(1); + const [ismine, setIsmine] = useState(0); const [userStateNum, setUserState] = useState(userStatusData ? userStatusData.userType : 0); const getChallengeCategoryData = useCallback( diff --git a/src/components/molecules/ChallengeRegister/index.tsx b/src/components/molecules/ChallengeRegister/index.tsx index 8a43923a..d738d49d 100644 --- a/src/components/molecules/ChallengeRegister/index.tsx +++ b/src/components/molecules/ChallengeRegister/index.tsx @@ -96,32 +96,34 @@ const ChallengeRegister = (): React.ReactElement => {
{datetoString(periodData.challengeStartDT)} ~ {datetoString(periodData.challengeEndDT)}
-
-
챌린지 개수 설정
-
2개 이상부터 뱃지 획득 가능
-
-
+
+
+
챌린지 개수 설정
+

2개 이상부터 뱃지 획득 가능

+
- +
{registerCount} - +
-
-
+
주의사항
@@ -289,6 +299,7 @@ const SRegister = Styled.div` font-size: 14px; &__minus-plus{ + cursor: pointer; border:none; background-color: #FFFFFF; } @@ -303,12 +314,16 @@ const SRegister = Styled.div` &__box{ display:inline-block; float:right; - border: 1px solid #DFDFDF; + border: solid 1px #dfdfdf; border-radius: 4px; - padding-top:5px; width: 119px; height: 36px; - line-height: 1.25; + margin-top: 60px; + padding: 0 16px; + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; font-family: HomepageBaukasten; font-size: 16px; font-weight: bold; @@ -340,21 +355,13 @@ const SRegister = Styled.div` font-size: 14px; } &__notice{ - font-family: Apple SD Gothic Neo; - font-style: normal; - font-weight: normal; - font-size: 12px; - line-height: 18px; - /* identical to box height, or 150% */ - - display: flex; - align-items: center; - text-align: center; - letter-spacing: -0.5px; - - /* LightGray2 */ - - color: #C1C1C1; + width: 126px; + height: 18px; + line-height: 1.5; + letter-spacing: -0.5px; + color: #c1c1c1; + font-family: AppleSDGothicNeo; + font-size: 12px; } } .card{ @@ -466,10 +473,14 @@ const SRegister = Styled.div` background: linear-gradient(91.91deg, #36C8F5 7.34%, #13E2DD 90.35%); width:500px; height:64px; - + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; } .modal__img{ display:inline-block; + margin-right: 10px; } .modal__register-button{ display:inline-block; @@ -515,17 +526,17 @@ const SRegister = Styled.div` } &__icon{ - display:inline-block; - padding-top:50px; + /* display:inline-block; + padding-top:50px; */ + margin-right: 8px; } &__caution{ - display:inline-block; - padding-top:50px; + /* display:inline-block; + padding-top:50px; */ text-align: center; - line-height: 1.5; letter-spacing: -0.5px; - color: var(--colors-grayscale-3-d-dark-gray); + color: #3d3d3d; font-family: AppleSDGothicNeo; font-size: 14px; diff --git a/src/components/molecules/HamDropDown/index.tsx b/src/components/molecules/HamDropDown/index.tsx index ac4fe1ca..a25f4324 100644 --- a/src/components/molecules/HamDropDown/index.tsx +++ b/src/components/molecules/HamDropDown/index.tsx @@ -97,7 +97,22 @@ const SHamDropDown = Styled.div<{ isOpened?: boolean; isEnglish: boolean }>` display : flex; flex-direction : column; max-height : 229px; - overflow: scroll; + overflow-y: scroll; + ::-webkit-scrollbar { + width: 0.8rem; + } + ::-webkit-scrollbar-track { + background: none; + } + ::-webkit-scrollbar-thumb { + background: #c1c1c1; + border-radius: 0.5rem; + box-sizing: border-box; + } + /* Handle on hover */ + ::-webkit-scrollbar-thumb:hover { + background: #c1c1c1; + } align-items : center; } &__btn{ diff --git a/src/components/molecules/Loginform/index.tsx b/src/components/molecules/Loginform/index.tsx index 18974799..5e78332b 100644 --- a/src/components/molecules/Loginform/index.tsx +++ b/src/components/molecules/Loginform/index.tsx @@ -87,7 +87,7 @@ function Loginform(): React.ReactElement { { diff --git a/src/components/molecules/RegisterHeader/index.tsx b/src/components/molecules/RegisterHeader/index.tsx index 60660a52..8cd99bb6 100644 --- a/src/components/molecules/RegisterHeader/index.tsx +++ b/src/components/molecules/RegisterHeader/index.tsx @@ -6,6 +6,9 @@ interface IProps { title: string; img: string; } +interface ISHeader { + url?: string; +} const indextoName = (index: number) => { switch (index) { case 1: @@ -21,34 +24,32 @@ const indextoName = (index: number) => { const RegisterHeader = ({ generation, title, img }: IProps) => { return ( - +
- - Learn Myself {indextoName(generation)} 모집 +
+
+ {title} {indextoName(generation)} 모집 +
+
); }; -const SHeader = Styled.div` +const SHeader = Styled.div` .header{ &__img{ width: 100%; height:253px; position:relative; - + background: url(${(props) => props.url}) center center / cover; + display: flex; + align-items: center; + justify-content: center; } &__text{ - position: absolute; - top:50%; - left:50%; - color: white; - z-index: 2; - text-align: center; - top:0; - padding-top:300px; - transform: translate(-50%, -50%); + color: white; font-family: AppleSDGothicNeo; font-size: 48px; } diff --git a/src/components/molecules/ViewListCard/index.tsx b/src/components/molecules/ViewListCard/index.tsx index 759bb9a3..c4c3431c 100644 --- a/src/components/molecules/ViewListCard/index.tsx +++ b/src/components/molecules/ViewListCard/index.tsx @@ -98,6 +98,7 @@ function ViewListCard({ const [userStateNickname, setUserStateNickname] = useState(userData ? userData.nickname : 0); const [isMine, setIsMine] = useState(false); const [likeRender, setLikeRender] = useState(isLike); + const [scrapRender, setScrapRender] = useState(isScrap); const getCommentList = useCallback(async () => { if (userStatusData) { @@ -152,14 +153,20 @@ function ViewListCard({ const submitScarp = async () => { if (userStatusData) { const token = userStatusData.token; - await ChallengeScrap(token, id); + const submitSuccess = await ChallengeScrap(token, id); + if (submitSuccess) { + setScrapRender(true); + } } }; const cancelScrap = async () => { if (userStatusData) { const token = userStatusData.token; - await CancelChallengeScrap(token, id); + const cancelSuccess = await CancelChallengeScrap(token, id); + if (cancelSuccess) { + setScrapRender(false); + } } }; @@ -184,7 +191,7 @@ function ViewListCard({

{dayjs(createdAt).format('MM.DD')}

{userStateNum === 0 || userStateNum === 1 || userStateNum === 2 || isMine === false ? ( - isScrap === false ? ( + scrapRender === false ? (