Skip to content

Commit 79775e4

Browse files
committed
🎨Design: ChatModal BackgroundImage
1 parent a82d694 commit 79775e4

File tree

5 files changed

+33
-1
lines changed

5 files changed

+33
-1
lines changed

src/assets/dog_howling.svg

Lines changed: 18 additions & 0 deletions
Loading

src/components/Message.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const Message = styled.div`
66
border-radius: 12px;
77
white-space: pre-line;
88
margin: 16px 0;
9+
z-index: 1;
910
`
1011
export const IncomingMessage = styled(Message)`
1112
width: fit-content;

src/components/SendMessageForm/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const SendMessageForm = styled.form`
1111
display: flex;
1212
align-items: center;
1313
gap: 12px;
14+
z-index: 1;
1415
`
1516
export const ChatInput = styled.input`
1617
flex: 1;

src/modals/ChatModal/styles.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
import { styled } from 'styled-components'
22
import { HEADER_HEIGHT_LG } from '~constants/layout'
3+
import DogHowling from '~assets/dog_howling.svg'
34

45
export const ChatModal = styled.div`
6+
position: relative;
57
width: 100%;
68
height: 100%;
7-
background-color: ${({ theme }) => theme.colors.grayscale.gc_4};
89
padding: ${HEADER_HEIGHT_LG}px 20px 0;
910
background-color: ${({ theme }) => theme.colors.brand.lighten_3};
1011
overflow: auto;
12+
&::after {
13+
background: url(${DogHowling}) center/cover;
14+
content: '';
15+
width: 190px;
16+
height: 260px;
17+
position: fixed;
18+
bottom: 95px;
19+
left: 50%;
20+
translate: -50%;
21+
}
1122
`
1223
export const ProfileWrapper = styled.div`
1324
display: flex;

src/pages/SocialPage/components/FriendChatList/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { styled } from 'styled-components'
22

33
export const FriendChatList = styled.div`
4+
position: relative;
45
overflow: auto;
56
margin-top: 8px;
67
height: 100%;

0 commit comments

Comments
 (0)