Skip to content

Commit

Permalink
Fix: PR 리뷰에 관한 사항들
Browse files Browse the repository at this point in the history
- import 상대경로 보다는 절대경로로 설정
- CamelCase: Myagenda -> MyAgenda
- �Scss Style: color, border, box-shadow 등 공통 사항들 변수로 빼서 사용
  • Loading branch information
JeongRon committed Jul 24, 2024
1 parent 20a313c commit 1d3c7bd
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 30 deletions.
8 changes: 4 additions & 4 deletions components/agenda/Home/MyAgendaBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ const MyAgendaBtn = () => {

return (
<div
className={`${styles.myagendaContainer} ${
className={`${styles.myAgendaContainer} ${
widthExpanded ? styles.expandedWidth : ''
} ${heightExpanded ? styles.expandedHeight : ''}`}
>
<div className={styles.myagendaBtnToggle} onClick={handleClick}>
<div className={styles.myagendaText}>my agenda</div>
<div className={styles.myAgendaBtnToggle} onClick={handleClick}>
<div className={styles.myAgendaText}>my agenda</div>
<div className={styles.imageWrapper}>
<Image
src='/image/agenda/ChevronRight.svg'
Expand All @@ -48,7 +48,7 @@ const MyAgendaBtn = () => {
</div>
</div>

<div className={styles.myagendaListContainer}>
<div className={styles.myAgendaListContainer}>
<AgendaItemBtn />
<AgendaItemBtn />
<AgendaItemBtn />
Expand Down
2 changes: 1 addition & 1 deletion styles/agenda/Home/Agenda.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../common.scss';
@import 'styles/agenda/common.scss';

.agendaPageContainer {
display: flex;
Expand Down
6 changes: 3 additions & 3 deletions styles/agenda/Home/AgendaDeadLine.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../common.scss';
@import 'styles/agenda/common.scss';

.agendaItemDeadLineBox {
position: absolute;
Expand All @@ -8,8 +8,8 @@
width: 4rem;
height: 4rem;
flex-direction: column;
color: #ffffff;
background: rgba(255, 75, 75, 0.8);
color: $color-white;
background: $color-deadline-background;
border-radius: $circle-radius;
justify-content: center;
gap: 0.2rem;
Expand Down
4 changes: 2 additions & 2 deletions styles/agenda/Home/AgendaInfo.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../common.scss';
@import 'styles/agenda/common.scss';

.agendaInfoContainer {
display: flex;
Expand Down Expand Up @@ -50,8 +50,8 @@

.agendaItemTimeBox {
display: flex;
height: 0.9rem;
align-items: center;
height: 0.9rem;
gap: 1.5rem;
@include lightTextFont(small);

Expand Down
9 changes: 4 additions & 5 deletions styles/agenda/Home/AgendaList.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../common.scss';
@import 'styles/agenda/common.scss';

.agendaListContainer {
display: flex;
Expand Down Expand Up @@ -31,11 +31,10 @@
max-height: 600px;
padding: 0.7rem 1.2rem;
cursor: pointer;
background: linear-gradient(180deg, #fff 65px, rgba(0, 0, 0, 0) 100%),
url('/image/agenda/42.jpg') lightgray 50% / cover no-repeat;
border: 0.1rem solid black;
background: $color-agenda-list-background;
border: $border-common;
border-radius: $medium-radius;
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
box-shadow: $box-bottom-shadow;
justify-content: center;
align-items: flex-start;
}
6 changes: 3 additions & 3 deletions styles/agenda/Home/AgendaTitle.module.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@import '../common.scss';
@import 'styles/agenda/common.scss';

.agendaTitleContainer {
display: flex;
width: 100%;
padding: 0 1rem;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 0 1rem;
@include titleFont;

.agendaCreateBtn {
Expand Down
24 changes: 12 additions & 12 deletions styles/agenda/Home/MyAgendaBtn.module.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
@import '../common.scss';
@import 'styles/agenda/common.scss';

.myagendaContainer {
.myAgendaContainer {
display: flex;
width: 12.5rem;
height: 3rem;
flex-direction: column;
padding: 0.55rem 1rem;
overflow: hidden;
background-color: #e3e3e3;
border: 0.1rem solid black;
background-color: $color-light-gray;
border: $border-common;
border-left-style: none;
border-top-right-radius: $big-radius;
border-bottom-right-radius: $big-radius;
Expand All @@ -18,24 +18,24 @@
@include subTitleFont;
}

.myagendaContainer.expandedHeight {
.myAgendaContainer.expandedHeight {
height: 28rem;
}

.myagendaContainer.expandedWidth {
.myAgendaContainer.expandedWidth {
width: 23rem;
}

.myagendaBtnToggle {
.myAgendaBtnToggle {
display: flex;
width: fit-content;
max-height: 3rem;
cursor: pointer;
align-items: center;
justify-content: flex-start;
width: fit-content;
max-height: 3rem;
gap: 0.2rem;
cursor: pointer;

.myagendaText {
.myAgendaText {
width: 9rem;
height: fit-content;
}
Expand All @@ -59,7 +59,7 @@
}
}

.myagendaListContainer {
.myAgendaListContainer {
display: flex;
width: 100%;
height: 23rem;
Expand Down
17 changes: 17 additions & 0 deletions styles/agenda/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@ $color-coalition-lee: #ff8a85;

// color
$color-placeholder: #b4a5b5;
$color-white: #ffffff;
$color-light-gray: #e3e3e3;

// background
$color-deadline-background: rgba(255, 75, 75, 0.8);
$color-agenda-list-background: linear-gradient(
180deg,
#fff 65px,
rgba(0, 0, 0, 0) 100%
),
url('/image/agenda/42.jpg') lightgray 50% / cover no-repeat;

// border
$border-common: 0.1rem solid black;

// box-shadow
$box-bottom-shadow: 0 0.3rem 0.3rem 0 rgba(0, 0, 0, 0.25);

// font-family
$logo-font: 'Overgrow', sans-serif;
Expand Down

0 comments on commit 1d3c7bd

Please sign in to comment.