@@ -15,13 +15,12 @@ const Header = styled.div`
1515 }
1616` ;
1717
18- const CoverSection = styled . div < { isCover : boolean } > `
18+ const CoverSection = styled . div `
1919 position: relative;
2020 width: 100%;
2121 height: 0;
2222 padding-top: 100%;
2323 overflow: hidden;
24- border-radius: ${ ( { isCover } ) => ( isCover ? '20px 20px 0 0' : '0' ) } ;
2524 :after {
2625 content: '';
2726 position: absolute;
@@ -31,6 +30,10 @@ const CoverSection = styled.div<{ isCover: boolean }>`
3130 height: 100%;
3231 background: linear-gradient(to bottom, rgba(18, 19, 24, 0.2) 0%, rgba(18, 19, 24, 1) 100%);
3332 }
33+
34+ ${ mq_lg } {
35+ border-radius: 20px 20px 0 0;
36+ }
3437` ;
3538
3639const CoverImage = styled . img `
@@ -70,57 +73,6 @@ const UserName = styled.h1`
7073 margin: 0;
7174` ;
7275
73- const ModalOverlay = styled . div `
74- position: fixed;
75- top: 0;
76- left: 0;
77- right: 0;
78- bottom: 0;
79- background-color: rgba(0, 0, 0, 0.7);
80- display: flex;
81- align-items: center;
82- justify-content: center;
83- z-index: 1000;
84- padding: 20px;
85- ` ;
86-
87- const ModalContent = styled . div `
88- background-color: white;
89- border-radius: 20px;
90- padding: 40px 24px 24px;
91- max-width: 450px;
92- width: 100%;
93- display: flex;
94- flex-direction: column;
95- justify-content: space-between;
96- min-height: 168px;
97- ` ;
98-
99- const ModalText = styled . p `
100- ${ ( { theme } ) => theme . typo . b3 } ;
101- color: '#282B33';
102- text-align: left;
103- margin: 0;
104- ` ;
105-
106- const ModalButton = styled . a `
107- width: auto;
108- height: 48px;
109- padding: 0 24px;
110- display: flex;
111- align-items: center;
112- justify-content: center;
113- background-color: #ff5623;
114- color: white;
115- text-decoration: none;
116- border-radius: 8px;
117- ${ ( { theme } ) => theme . typo . sh1 } ;
118- font-weight: 600;
119- cursor: pointer;
120- transition: background-color 0.2s;
121- align-self: flex-end;
122- ` ;
123-
12476export default {
12577 Header,
12678 CoverSection,
@@ -129,8 +81,4 @@ export default {
12981 ProfileInfo,
13082 Nickname,
13183 UserName,
132- ModalOverlay,
133- ModalContent,
134- ModalText,
135- ModalButton,
13684} ;
0 commit comments