@@ -19,11 +19,11 @@ function InformationBar({
1919 const [ showToast , setShowToast ] = useState ( false ) ;
2020 const buttonRef = useRef ( null ) ;
2121
22- // ✅ 카카오 SDK 초기화 (한 번만 실행)
22+
2323 useEffect ( ( ) => {
2424 if ( window . Kakao && ! window . Kakao . isInitialized ( ) ) {
2525 window . Kakao . init ( "0e75199aafea8afc76aa6dd724c8f4bd" ) ; // 🔥 여기에 JavaScript 키 입력
26- console . log ( "✅ Kakao SDK Initialized" ) ;
26+ console . log ( "Kakao SDK Initialized" ) ;
2727 }
2828 } , [ ] ) ;
2929
@@ -109,7 +109,7 @@ function InformationBar({
109109 </ WritedContainer >
110110
111111 < SeparatorContainer >
112- < Separator />
112+ < LeftSeparator />
113113 </ SeparatorContainer >
114114
115115 < Emoji
@@ -120,13 +120,18 @@ function InformationBar({
120120 setRecipientData = { setRecipientData }
121121 />
122122 < Separator />
123- < IconButton ref = { buttonRef } onClick = { toggleModal } image = "share" width = "56" />
123+ < ShareContainer >
124+
125+ < IconButton ref = { buttonRef } onClick = { toggleModal }
126+ image = "share" width = "56" height = "40" />
127+
124128 { isModalOpen && (
125129 < Modal ref = { modalRef } >
126130 < Option onClick = { shareToKakao } > 카카오톡 공유</ Option >
127131 < Option onClick = { handleCopyUrl } > URL 공유</ Option >
128132 </ Modal >
129133 ) }
134+ </ ShareContainer >
130135 </ RightSection >
131136 </ InformationBarContainer >
132137
@@ -148,12 +153,32 @@ function InformationBar({
148153 ) ;
149154}
150155
156+ const ShareContainer = styled . div `
157+ position: relative;
158+ display: inline-block; // 버튼 크기에 맞게 조정
159+ ` ;
160+
161+ const LeftSeparator = styled . span `
162+ display: inline-block;
163+ width: 1px;
164+ height: 30px;
165+ background-color: ${ ( { theme } ) => theme . colors . grayScale [ 300 ] } ;
166+ margin: 0 13px;
167+
168+ @media (max-width: 1199px) {
169+ display: none;
170+ }
171+ ` ;
151172const Separator = styled . span `
152173 display: inline-block;
153174 width: 1px;
154- height: 28px ;
175+ height: 30px ;
155176 background-color: ${ ( { theme } ) => theme . colors . grayScale [ 300 ] } ;
156177 margin: 0 13px;
178+
179+ @media (max-width: 768px) {
180+ margin: 0 0px;
181+ }
157182` ;
158183
159184const SeparatorContainer = styled . div `
@@ -163,6 +188,9 @@ const SeparatorContainer = styled.div`
163188` ;
164189
165190const InformationBarWrapper = styled . nav `
191+ position:fixed;
192+ z-index:998;
193+ top:58px;
166194 display: flex;
167195 justify-content: center;
168196 width: 100%;
@@ -184,21 +212,40 @@ const InformationBarContainer = styled.div`
184212 padding: 13px 24px;
185213 }
186214 @media (max-width: 767px) {
187-
215+ flex-direction: column;
216+ align-items: center;
217+ height: auto;
218+ padding: 10px;
188219 }
189220` ;
190221
191222const LeftSection = styled . div `
192223 flex: 1;
193224 display: flex;
194225 justify-content: flex-start;
226+
227+ @media (max-width: 767px) {
228+ width: 100%;
229+ justify-content: center;
230+ margin-bottom: 10px;
231+ }
195232` ;
196233
197234const RightSection = styled . div `
198235 display: flex;
199236 justify-content: flex-end;
200237 align-items: center;
201238 gap: 10px;
239+ margin-top: 10px;
240+
241+ @media (max-width: 1199px) {
242+ margin-top:0px;
243+ }
244+ @media (max-width: 767px) {
245+ margin-top:-8px;
246+ justify-content: center;
247+ gap: 10px;
248+ }
202249` ;
203250
204251const ToName = styled . div `
@@ -208,12 +255,25 @@ const ToName = styled.div`
208255 line-height: 42px;
209256 letter-spacing: -0.01em;
210257 color: ${ ( { theme } ) => theme . colors . grayScale [ 800 ] } ;
258+ margin-right: 10px;
211259
260+ @media (max-width: 767px) {
261+ left: 22px;
262+ font-size: 24px;
263+ margin-right: 0;
264+ margin-bottom: 10px;
265+ top:10px;
266+ position: absolute;
267+ }
212268` ;
213269
214270const WritedContainer = styled . div `
215271 display: inline-flex;
216272 align-items: center;
273+
274+ @media (max-width: 767px) {
275+ display: none;
276+ }
217277` ;
218278
219279const WriteCount = styled . span `
@@ -223,9 +283,13 @@ const WriteCount = styled.span`
223283 font-size: 18px;
224284 letter-spacing: 0%;
225285 line-height: 27px;
286+
226287 @media (max-width: 1199px) {
227288 display: none;
228289 }
290+ @media (max-width: 767px) {
291+ display: none;
292+ }
229293` ;
230294
231295const WritedText = styled . span `
@@ -239,6 +303,9 @@ const WritedText = styled.span`
239303 @media (max-width: 1199px) {
240304 display: none;
241305 }
306+ @media (max-width: 767px) {
307+ display: none;
308+ }
242309` ;
243310
244311const Avatar = styled . div `
@@ -272,12 +339,17 @@ const Avatar = styled.div`
272339 @media (max-width: 1199px) {
273340 display: none;
274341 }
342+ @media (max-width: 767px) {
343+ display: none;
344+ }
275345` ;
276346
277347const Modal = styled . div `
278- padding: 10px 1px;
279348 position: absolute;
280- top: 122px;
349+ padding: 12px 0px;
350+ right:0px;
351+ margin-top:10px;
352+ top: 100%;
281353 background-color: ${ ( { theme } ) => theme . colors . white } ;
282354 width: 140px;
283355 height: 120px;
@@ -296,10 +368,22 @@ const Modal = styled.div`
296368 transform: scale(1);
297369 }
298370 }
371+ @@media (max-width: 1199px) {
372+ right:7%;
373+ bottom: 100%;
374+ width: 140px;
375+ height: 120px;
376+ }
377+ @media (max-width: 767px) {
378+ right:7%;
379+ bottom: 100%;
380+ width: 140px;
381+ height: 120px;
382+ }
299383` ;
300384
301385const Option = styled . div `
302- padding: 10px ;
386+ padding: 12px ;
303387 cursor: pointer;
304388 font-family: "Pretendard", sans-serif;
305389 font-weight: 400;
@@ -332,6 +416,7 @@ const Toast = styled.div`
332416 height: 64px;
333417 }
334418` ;
419+
335420const ToastMessage = styled . span `
336421 font-family: "Pretendard", sans-serif;
337422 font-weight: 400;
@@ -348,7 +433,6 @@ const IconTextWrapper = styled.div`
348433 align-items: center;
349434` ;
350435
351-
352436const IconWrapper = styled . div `
353437 width: 24px;
354438 height: 24px;
0 commit comments