Skip to content

Commit

Permalink
design: 토글 버튼, 더보기 아이콘 디자인 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
gominzip committed Aug 28, 2024
1 parent ce0dfe7 commit 1fb78f5
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 46 deletions.
42 changes: 3 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/dropdowntrireverse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/common/common.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const CommonTitleWrapper = styled.div`
align-items: flex-start;
margin: 5px;
.more {
display: flex;
margin-right: 1rem;
font-size: 1.8rem;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/dropDown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Dropdown = ({ selectList, setter, width }: DropdownProps) => {
)}
{selectedText || "옵션 선택"}
<img
src="/dropdowntri.png"
src={isOpen?"/dropdowntrireverse.png":"/dropdowntri.png"}
alt="드롭다운 삼각형"
onClick={toggleDropdown}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { CardProps } from "@type/card";
import { useNavigate } from "react-router-dom";
import { useMediaQuery } from "react-responsive";
import Card from "@components/common/card/Card";
import { FaAngleRight } from "react-icons/fa6";

const HomeRecentTales = () => {
const mediaQuery = useMediaQuery({ query: "(max-width: 710px)" });
Expand Down Expand Up @@ -41,7 +42,8 @@ const HomeRecentTales = () => {
<CommonTitleWrapper>
<CommonTitle>최근 생성한 동화</CommonTitle>
<div className="more" onClick={handleMoreClick}>
{"더보기 >"}
{"더보기"}
<FaAngleRight />
</div>
</CommonTitleWrapper>
{mediaQuery ? (
Expand Down
5 changes: 3 additions & 2 deletions src/components/main/learnMain/learned/Learned.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import {
ItemWrapper,
} from "@components/common/common.styled";
import { LearnedProps } from "@type/card";

import { useEffect, useState } from "react";
import { useMediaQuery } from "react-responsive";
import { useNavigate } from "react-router-dom";
import { FaAngleRight } from "react-icons/fa6";

const Learned = () => {
const navigate = useNavigate();
Expand All @@ -34,7 +34,8 @@ const Learned = () => {
<CommonTitleWrapper>
<CommonTitle>최근 학습한 동화</CommonTitle>
<div className="more" onClick={handleMoreClick}>
{"더보기 >"}
{"더보기"}
<FaAngleRight />
</div>
</CommonTitleWrapper>
<ItemWrapper>
Expand Down
4 changes: 3 additions & 1 deletion src/components/main/learnMain/unLearned/UnLearned.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { UnLearnedProps } from "@type/card";
import { useEffect, useState } from "react";
import { useMediaQuery } from "react-responsive";
import { useNavigate } from "react-router-dom";
import { FaAngleRight } from "react-icons/fa6";

const UnLearned = () => {
const navigate = useNavigate();
Expand All @@ -34,7 +35,8 @@ const UnLearned = () => {
<CommonTitleWrapper>
<CommonTitle>아직 학습하지 않은 동화</CommonTitle>
<div className="more" onClick={handleMoreClick}>
{"더보기 >"}
{"더보기"}
<FaAngleRight />
</div>
</CommonTitleWrapper>
<ItemWrapper>
Expand Down
5 changes: 3 additions & 2 deletions src/components/main/learnMain/word/Word.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
} from "@components/common/common.styled";
import { WordProps } from "@type/card";
import * as S from "./Word.styled";

import { useEffect, useState } from "react";
import { useNavigate } from "react-router-dom";
import { FaAngleRight } from "react-icons/fa6";

const Word = () => {
const navigate = useNavigate();
Expand Down Expand Up @@ -43,7 +43,8 @@ const Word = () => {
<CommonTitleWrapper>
<CommonTitle>단어장</CommonTitle>
<div className="more" onClick={handleMoreClick}>
{"더보기 >"}
{"더보기"}
<FaAngleRight />
</div>
</CommonTitleWrapper>
<S.GridWrapper>
Expand Down

0 comments on commit 1fb78f5

Please sign in to comment.