Skip to content

Commit

Permalink
Fix(overwriting): 중복된 notice 컴포넌트 삭제
Browse files Browse the repository at this point in the history
업스트림 최신버전 fetch 완료, 중복된 컴포넌트 삭제, npm run prettier
  • Loading branch information
Kim-jaeyeon committed Sep 10, 2024
1 parent ff6541c commit 419ce39
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 87 deletions.
70 changes: 0 additions & 70 deletions src/Notice.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/pages/Notice/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function Notice() {
// downbtn 클릭 시 상세 내용을 보여주는 로직
const toggleNotice = (id: number) => {
setExpandedNotices((prev) =>
prev.includes(id) ? prev.filter((noticeId) => noticeId !== id) : [...prev, id]
prev.includes(id) ? prev.filter((noticeId) => noticeId !== id) : [...prev, id],
);
};

Expand Down Expand Up @@ -224,4 +224,4 @@ function Notice() {
);
}

export default Notice;
export default Notice;
27 changes: 12 additions & 15 deletions src/pages/Notice/notice.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { style, globalStyle, keyframes } from "@vanilla-extract/css";

// body에 글로벌 스타일 적용
globalStyle("body", {
position:'relative',
position: "relative",
margin: 0,
padding: 0,
backgroundImage: 'url("src/assets/background.svg")', // 배경 이미지 경로
Expand All @@ -20,12 +20,12 @@ globalStyle("::-webkit-scrollbar", {
height: "0px",
});

export const titleText=style({
fontSize:20,
fontWeight:600,
color:'white',
marginTop:60,
})
export const titleText = style({
fontSize: 20,
fontWeight: 600,
color: "white",
marginTop: 60,
});
// 검색 필드와 버튼을 감싸는 컨테이너
export const searchContainer = style({
display: "flex",
Expand All @@ -36,7 +36,7 @@ export const searchContainer = style({
width: "80%",
height: "40px",
position: "fixed",
top:150,
top: 150,
marginBottom: 20,
});

Expand All @@ -53,8 +53,6 @@ export const searchbar = style({
fontWeight: 500,
});



// 상단의 빨간 컨테이너
export const container = style({
width: "100%",
Expand All @@ -65,11 +63,11 @@ export const container = style({

// 중간에 검색창을 배치하는 컨테이너
export const mid = style({
position:'relative',
position: "relative",
width: "100%",
height: 650,
display: "flex",
margin:'20px 0',
margin: "20px 0",
justifyContent: "center",
flexDirection: "column",
alignItems: "center",
Expand Down Expand Up @@ -108,8 +106,8 @@ export const notice = style({
});

export const copyright = style({
position:'absolute',
bottom:0,
position: "absolute",
bottom: 0,
margin: 0,
padding: 0,
backgroundImage: 'url("src/assets/copyright.svg")', // 배경 이미지 경로
Expand All @@ -127,7 +125,6 @@ export const noticeNumber = style({
marginLeft: 20,
});


export const noticeContentWrapper = style({
width: "90%", // 부모 요소의 너비에 맞추기
overflow: "hidden", // 넘치는 부분을 숨김
Expand Down

0 comments on commit 419ce39

Please sign in to comment.