-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ayout [Feat] agenda list layout #1437
- Loading branch information
Showing
14 changed files
with
341 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import styles from 'styles/agenda/Home/AgendaDeadLine.module.scss'; | ||
|
||
// props : API | ||
const AgendaDeadLine = () => { | ||
return ( | ||
<div className={styles.agendaItemDeadLineBox}> | ||
<div className={styles.agendaDeadLineText}>모집마감</div> | ||
<div className={styles.agendaDeadLine}>D-2</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AgendaDeadLine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import Image from 'next/image'; | ||
import AgendaTag from 'components/agenda/utils/AgendaTag'; | ||
import styles from 'styles/agenda/Home/AgendaInfo.module.scss'; | ||
|
||
// Props: API data | ||
const AagendaInfo = () => { | ||
return ( | ||
<div className={styles.agendaInfoContainer}> | ||
<div className={styles.agendaDateBox}> | ||
<div className={styles.agendaDateMonth}>12</div> | ||
<div className={styles.agendaDateDay}>31</div> | ||
</div> | ||
|
||
<div className={styles.agendaInfoWrapper}> | ||
<div className={styles.agendaItemTitleBox}>PUSH SWAP 경진대회</div> | ||
|
||
<div className={styles.agendaItemTimeBox}> | ||
<div className={styles.agendaItemTimeWrapper}> | ||
<div className={styles.imageWrapper}> | ||
<Image | ||
src='/image/agenda/Time.svg' | ||
width={15} | ||
height={15} | ||
alt='Time' | ||
className={styles.imageBox} | ||
/> | ||
</div> | ||
<div>12.31</div> | ||
<div>14:00 ~ 17:00</div> | ||
</div> | ||
|
||
<div className={styles.agendaItemTimeWrapper}> | ||
<div className={styles.imageWrapper}> | ||
<Image | ||
src='/image/agenda/People.svg' | ||
width={15} | ||
height={15} | ||
alt='count' | ||
className={styles.imageBox} | ||
/> | ||
</div> | ||
<div>20/100</div> | ||
</div> | ||
</div> | ||
|
||
<div className={styles.agendaItemTagBox}> | ||
<AgendaTag tagName='공식' /> | ||
<AgendaTag tagName='팀' /> | ||
<AgendaTag tagName='과제' /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AagendaInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import AgendaInfo from 'components/agenda/Home/AgendaInfo'; | ||
import styles from 'styles/agenda/utils/AgendaItemBtn.module.scss'; | ||
|
||
const AgendaItemBtn = () => { | ||
return ( | ||
<div className={styles.myagendaItemContainer}> | ||
<AgendaInfo /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AgendaItemBtn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import 'styles/agenda/common.scss'; | ||
|
||
.agendaItemDeadLineBox { | ||
position: absolute; | ||
right: 1rem; | ||
bottom: 1rem; | ||
display: flex; | ||
width: 4rem; | ||
height: 4rem; | ||
flex-direction: column; | ||
color: $color-white; | ||
background: $color-deadline-background; | ||
border-radius: $circle-radius; | ||
justify-content: center; | ||
gap: 0.2rem; | ||
|
||
.agendaDeadLineText { | ||
@include regularTextFont(small); | ||
} | ||
|
||
.agendaDeadLine { | ||
@include boldTextFont(medium); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
@import 'styles/agenda/common.scss'; | ||
|
||
.agendaInfoContainer { | ||
display: flex; | ||
width: 100%; | ||
height: 4.5rem; | ||
gap: 1rem; | ||
} | ||
|
||
.agendaDateBox { | ||
display: flex; | ||
width: fit-content; | ||
height: 100%; | ||
flex-direction: column; | ||
margin-top: 0.5rem; | ||
justify-content: flex-start; | ||
align-items: center; | ||
gap: 0.2rem; | ||
.agendaDateMonth { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 1.5rem; | ||
@include boldTextFont(giant); | ||
} | ||
.agendaDateDay { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 1.5rem; | ||
@include lightTextFont(giant); | ||
} | ||
} | ||
|
||
.agendaInfoWrapper { | ||
display: flex; | ||
width: 100%; | ||
height: 100%; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: center; | ||
gap: 0.3rem; | ||
|
||
.agendaItemTitleBox { | ||
display: flex; | ||
align-items: center; | ||
height: 1.5rem; | ||
@include boldTextFont(big); | ||
} | ||
|
||
.agendaItemTimeBox { | ||
display: flex; | ||
align-items: center; | ||
height: 0.9rem; | ||
gap: 1.5rem; | ||
@include lightTextFont(small); | ||
|
||
.agendaItemTimeWrapper { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 0.5rem; | ||
} | ||
} | ||
|
||
.agendaItemTagBox { | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
} | ||
|
||
.imageWrapper { | ||
display: flex; | ||
width: 0.8rem; | ||
height: 0.8rem; | ||
.imageBox { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} |
Oops, something went wrong.