generated from Team-INSERT/Repository-generator-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from Team-INSERT/layouts/emoticon
이모티콘 모달 추가
- Loading branch information
Showing
40 changed files
with
575 additions
and
182 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
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ const navigations = [ | |
}, | ||
{ | ||
name: "일정표", | ||
href: "/schedule", | ||
href: "/calender", | ||
}, | ||
{ | ||
name: "게시판", | ||
|
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,47 @@ | ||
import XIcon from "@/global/assets/svgs/XIcon"; | ||
import HoldingBackTears from "@/global/assets/svgs/emojis/HoldingBackTears"; | ||
import color from "@/styles/color"; | ||
import { font } from "@/styles/font"; | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
interface IModalHeaderProps { | ||
handleClickCloseButton: () => void; | ||
} | ||
|
||
const ModalHeader = ({ handleClickCloseButton }: IModalHeaderProps) => { | ||
return ( | ||
<Container> | ||
<HoldingBackTears width={14} height={14} isHover /> | ||
<Title /> | ||
<CloseButton onClick={handleClickCloseButton}> | ||
<XIcon width={10} height={10} /> | ||
</CloseButton> | ||
</Container> | ||
); | ||
}; | ||
|
||
const Container = styled.header` | ||
width: 100%; | ||
padding: 10px 0 10px 14px; | ||
display: flex; | ||
gap: 6px; | ||
align-items: center; | ||
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1); | ||
`; | ||
|
||
const Title = styled.span` | ||
${font.p3}; | ||
font-weight: 600; | ||
color: ${color.black}; | ||
&:after { | ||
content: "이모티콘"; | ||
} | ||
`; | ||
|
||
const CloseButton = styled.button` | ||
margin: 0 20px 0 auto; | ||
`; | ||
|
||
export default ModalHeader; |
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,25 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
import ModalListItem from "./ModalListItem"; | ||
|
||
const ModalList = () => { | ||
return ( | ||
<List> | ||
{Array.from({ length: 4 }).map((_, i) => ( | ||
<ModalListItem key={i} /> | ||
))} | ||
</List> | ||
); | ||
}; | ||
|
||
const List = styled.div` | ||
width: 100%; | ||
height: 300px; | ||
padding: 12px; | ||
overflow-y: scroll; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
`; | ||
|
||
export default ModalList; |
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,71 @@ | ||
import color from "@/styles/color"; | ||
import { font } from "@/styles/font"; | ||
import Image from "next/image"; | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
const ModalListItem = () => { | ||
return ( | ||
<ListItem> | ||
<ListItemHead> | ||
<ListItemImage | ||
src="https://bssm.kro.kr/resource/board/emoticon/11/3.webp" | ||
width={16} | ||
height={16} | ||
alt="emoji" | ||
/> | ||
<ListItemTitle>동물티콘</ListItemTitle> | ||
</ListItemHead> | ||
<EmojiList> | ||
{Array.from({ length: 13 }).map((_, i) => ( | ||
<EmojiListItem | ||
key={i} | ||
src={`https://bssm.kro.kr/resource/board/emoticon/3/${i}.png`} | ||
alt="emoji" | ||
width={50} | ||
height={50} | ||
/> | ||
))} | ||
</EmojiList> | ||
</ListItem> | ||
); | ||
}; | ||
|
||
const ListItem = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 4px; | ||
`; | ||
|
||
const ListItemHead = styled.hgroup` | ||
display: flex; | ||
align-items: center; | ||
gap: 4px; | ||
padding-left: 3px; | ||
`; | ||
|
||
const ListItemTitle = styled.h1` | ||
${font.p3}; | ||
`; | ||
|
||
const ListItemImage = styled(Image)` | ||
border-radius: 4px; | ||
`; | ||
|
||
const EmojiList = styled.div` | ||
width: 100%; | ||
flex-wrap: wrap; | ||
`; | ||
|
||
const EmojiListItem = styled(Image)` | ||
cursor: pointer; | ||
padding: 1.5px 3px; | ||
&:hover { | ||
background-color: ${color.on_tertiary}; | ||
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1); | ||
border-radius: 2px; | ||
} | ||
`; | ||
|
||
export default ModalListItem; |
Oops, something went wrong.