-
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.
refactor: page style파일 분리 (mypage qspace제외)
- Loading branch information
Showing
52 changed files
with
1,529 additions
and
1,382 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import { css } from '@emotion/react'; | ||
|
||
// 스타일 정의 | ||
export const containerStyle = css` | ||
display: flex; | ||
flex-direction: column; | ||
height: 100vh; | ||
background-color: #f9f4ef; | ||
`; | ||
|
||
export const headerStyle = css` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
position: relative; | ||
padding: 10px 15px; | ||
background-color: #ffffff; | ||
border-bottom: 1px solid #ccc; | ||
`; | ||
export const readWrap = css` | ||
display: flex; | ||
text-align: center; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding-right: 12px; | ||
`; | ||
|
||
export const backIconStyle = css` | ||
position: absolute; | ||
left: 15px; | ||
font-size: 24px; | ||
cursor: pointer; | ||
`; | ||
|
||
export const headerTitleStyle = css` | ||
font-size: 18px; | ||
font-weight: bold; | ||
`; | ||
|
||
export const markAllAsReadStyle = css` | ||
font-size: 14px; | ||
border-radius: 16px; | ||
padding: 6px; | ||
color: #b9a298; | ||
background-color: #f3ebe1; | ||
cursor: pointer; | ||
`; | ||
|
||
export const unreadCountStyle = css` | ||
padding: 10px 15px; | ||
font-size: 14px; | ||
color: #666; | ||
`; | ||
|
||
export const listStyle = css` | ||
flex: 1; | ||
overflow-y: auto; | ||
background-color: #f9f3ec; | ||
`; | ||
|
||
export const listCon = css` | ||
background-color: #f3ebe1; | ||
padding: 8px; | ||
height: 80px; | ||
border-bottom: 1px solid #ccc; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
cursor: pointer; | ||
`; | ||
|
||
export const listConRead = css` | ||
background-color: #f9f4ef; /* 읽음 처리된 배경 색 */ | ||
`; | ||
|
||
export const notificationContentStyle = css` | ||
flex: 1; | ||
margin-left: 8px; | ||
`; | ||
|
||
export const notificationTypeStyle = css` | ||
font-size: 12px; | ||
color: #999; | ||
`; | ||
|
||
export const notificationMessageStyle = css` | ||
margin-top: 4px; | ||
font-size: 14px; | ||
color: #333; | ||
`; | ||
|
||
export const timeStyle = css` | ||
font-size: 12px; | ||
color: #999; | ||
`; |
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,59 @@ | ||
// 스타일 정의 | ||
import { css } from '@emotion/react'; | ||
|
||
export const chatListContainerStyle = css` | ||
padding: 0; | ||
height: 773px; | ||
`; | ||
export const chatListStyle = css` | ||
height: 100vh; | ||
background-color: #f9f3ec; | ||
border-bottom: 1px solid #ccc; | ||
`; | ||
|
||
export const chatItemStyle = css` | ||
display: flex; | ||
align-items: center; | ||
padding: 10px; | ||
border-bottom: 0.5px solid #ccc; | ||
cursor: pointer; | ||
&:hover { | ||
background-color: #f0e8dc; | ||
} | ||
`; | ||
|
||
export const chatContentStyle = css` | ||
flex: 1; | ||
margin-left: 10px; | ||
`; | ||
|
||
export const userNameStyle = css` | ||
display: flex; | ||
justify-content: space-between; | ||
font-size: 14px; | ||
font-weight: bold; | ||
`; | ||
|
||
export const timeStyle = css` | ||
color: #999; | ||
font-size: 12px; | ||
`; | ||
|
||
export const lastMessageStyle = css` | ||
display: flex; | ||
justify-content: space-between; | ||
font-size: 12px; | ||
color: #666; | ||
margin-top: 4px; | ||
`; | ||
|
||
export const unreadCountStyle = css` | ||
background-color: #ff4d4f; | ||
color: #fff; | ||
font-size: 10px; | ||
padding: 2px 6px; | ||
border-radius: 12px; | ||
margin-left: 5px; | ||
`; |
Oops, something went wrong.