Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] 뷰 피그마에 맞게 수정 #97

Merged
merged 4 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/footer/FooterStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ export const footerStyle = (theme: Theme) => css`
`;

export const subtitleStyle = (theme: Theme) => css`
display: flex;
flex-direction: column;
gap: 1rem;

${theme.fonts.kor.bodyBold13}
color: ${theme.colors.gray10};
`;

export const desc = (theme: Theme) => css`
${theme.fonts.kor.captionMedium11};
color: ${theme.colors.gray7};
`;
6 changes: 6 additions & 0 deletions src/components/header/productHeader/CategoryStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export const CategoryLayout = css`
gap: 0;
align-items: center;
justify-content: center;

box-shadow:
0 0.6rem 1.2rem 0 rgb(0 0 0 / 12%),
0 0.4rem 0.8rem 0 rgb(0 0 0 / 8%),
0 0 0.4rem 0 rgb(0 0 0 / 8%);
border-radius: 12px;
`;

export const CategoryContainerStyle = (theme: Theme) => css`
Expand Down
6 changes: 6 additions & 0 deletions src/components/header/productHeader/MyListStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export const MyLayoutStyle = css`
gap: 0;
align-items: center;
justify-content: center;

box-shadow:
0 0.6rem 1.2rem 0 rgb(0 0 0 / 12%),
0 0.4rem 0.8rem 0 rgb(0 0 0 / 8%),
0 0 0.4rem 0 rgb(0 0 0 / 8%);
border-radius: 12px;
`;

export const MyContainerStyle = (theme: Theme) => css`
Expand Down
3 changes: 2 additions & 1 deletion src/components/productPage/review/review/FilterBtn.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { IcArrowbottomGray12 } from '@assets/icons/index';
import {
relativeStyle,
fontStyle,
FilterBtnContainer,
dropDownLayoutStyle,
Expand All @@ -11,7 +12,7 @@ const FilterBtn = () => {
const [isHovered, setIsHovered] = useState(false);

return (
<div css={fontStyle}>
<div css={[fontStyle, relativeStyle]}>
<div css={FilterBtnContainer} onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)}>
<p>최근 작성된 리뷰</p>
<IcArrowbottomGray12 />
Expand Down
7 changes: 5 additions & 2 deletions src/components/productPage/review/review/FilterBtnStyle.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { Theme, css } from '@emotion/react';

export const FilterBtnContainer = (theme: Theme) => css`
export const relativeStyle = css`
position: relative;
`;

export const FilterBtnContainer = (theme: Theme) => css`
display: flex;
align-items: center;
justify-content: space-between;
Expand All @@ -20,7 +23,7 @@ export const fontStyle = (theme: Theme) => css`

export const dropDownLayoutStyle = (theme: Theme) => css`
position: absolute;
top: 5rem;
top: 3.2rem;
width: 15.4rem;

background-color: ${theme.colors.gray1};
Expand Down
3 changes: 1 addition & 2 deletions src/components/productPage/review/reviewTop/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
titleContainer,
fontKoStyle,
fontEnStyle,
alignStyle,
toolStyle,
} from '@components/productPage/review/reviewTop/TitleStyle';
import { useState } from 'react';
Expand All @@ -20,7 +19,7 @@ const Title = () => {
<div css={[titleContainer, relativeStyle]}>
<p css={fontKoStyle}>리뷰</p>
<p css={fontEnStyle}>(497)</p>
<IcHelpGray20 css={alignStyle} onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave} />
<IcHelpGray20 onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave} />
{isHovered && <div css={toolStyle}>{TOOL_MSG}</div>}
</div>
);
Expand Down
5 changes: 0 additions & 5 deletions src/components/productPage/review/reviewTop/TitleStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ export const fontEnStyle = (theme: Theme) => css`
${theme.fonts.eng.titleBold20}
`;

export const alignStyle = css`
margin-top: 0.2rem;

cursor: pointer;
`;
export const toolStyle = (theme: Theme) => css`
position: absolute;
top: 2.8rem;
Expand Down