|
1 | 1 | import styled from '@emotion/styled'; |
2 | 2 |
|
3 | | -export const Container = styled.div` |
| 3 | +const Container = styled.div` |
4 | 4 | width: 100%; |
5 | | - min-height: 100vh; |
| 5 | + height: 100%; |
6 | 6 | background-color: #ffffff; |
| 7 | + border: 1px solid red; |
7 | 8 | `; |
8 | 9 |
|
9 | | -export const ImageContainer = styled.div` |
| 10 | +const ImageContainer = styled.div` |
10 | 11 | width: 100%; |
11 | 12 | height: 487.5px; |
12 | | - background-color: #d9d9d9; |
13 | 13 | position: relative; |
14 | 14 | `; |
15 | 15 |
|
16 | | -export const Image = styled.img` |
| 16 | +const Image = styled.img` |
17 | 17 | width: 100%; |
18 | 18 | height: 100%; |
19 | 19 | object-fit: cover; |
20 | 20 | `; |
21 | 21 |
|
22 | | -export const ContentContainer = styled.div` |
| 22 | +const ShareButton = styled.button` |
| 23 | + position: absolute; |
| 24 | + left: 50%; |
| 25 | + bottom: 20px; |
| 26 | + transform: translateX(-50%); |
| 27 | + background-color: #ffffff; |
| 28 | + border: none; |
| 29 | + padding: 12px 24px; |
| 30 | + border-radius: 8px; |
| 31 | + cursor: pointer; |
| 32 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
| 33 | +`; |
| 34 | + |
| 35 | +const ContentContainer = styled.div` |
23 | 36 | padding: 20px; |
24 | 37 | background-color: #ffffff; |
25 | 38 | `; |
26 | 39 |
|
27 | | -export const TagContainer = styled.div` |
| 40 | +const TagContainer = styled.div` |
28 | 41 | display: flex; |
29 | 42 | gap: 10px; |
30 | 43 | margin-bottom: 20px; |
31 | 44 | `; |
32 | 45 |
|
33 | | -export const CategoryTitle = styled.h2` |
| 46 | +const CategoryTitle = styled.h2` |
34 | 47 | font-size: 14px; |
35 | 48 | color: #434343; |
36 | 49 | margin-bottom: 10px; |
37 | 50 | `; |
38 | 51 |
|
39 | | -export const HashtagContainer = styled.div` |
| 52 | +const HashtagContainer = styled.div` |
40 | 53 | display: flex; |
41 | 54 | gap: 10px; |
42 | 55 | flex-wrap: wrap; |
43 | 56 | margin-bottom: 20px; |
44 | 57 | `; |
45 | 58 |
|
46 | | -export const Hashtag = styled.span` |
| 59 | +const Hashtag = styled.span` |
47 | 60 | padding: 8px 16px; |
48 | 61 | background-color: #2c2c2c; |
49 | 62 | color: #f5f5f5; |
50 | 63 | border-radius: 4px; |
51 | | - font-size: 16px; |
52 | 64 | `; |
53 | 65 |
|
54 | | -export const Description = styled.p` |
55 | | - font-size: 17px; |
| 66 | +const Description = styled.p` |
| 67 | + font-size: 16px; |
56 | 68 | line-height: 1.5; |
57 | | - color: #000000; |
58 | 69 | `; |
59 | 70 |
|
60 | | -export const ShareButton = styled.button` |
61 | | - position: absolute; |
62 | | - left: 50%; |
63 | | - bottom: 20px; |
64 | | - transform: translateX(-50%); |
65 | | - background-color: #ffffff; |
66 | | - border: none; |
67 | | - padding: 12px 24px; |
68 | | - border-radius: 8px; |
69 | | - font-size: 16px; |
70 | | - cursor: pointer; |
71 | | - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
72 | | -`; |
| 71 | +export { |
| 72 | + Container, |
| 73 | + ImageContainer, |
| 74 | + Image, |
| 75 | + ContentContainer, |
| 76 | + TagContainer, |
| 77 | + CategoryTitle, |
| 78 | + HashtagContainer, |
| 79 | + Hashtag, |
| 80 | + Description, |
| 81 | + ShareButton, |
| 82 | +}; |
0 commit comments