diff --git a/src/App.jsx b/src/App.jsx index ce09bf0..8ee9266 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -45,7 +45,7 @@ function App() { } /> } /> } /> - } /> + } /> {/* id를 URL 파라미터로 사용 */} } /> } /> diff --git a/src/components/footer/Footer.style.js b/src/components/footer/Footer.style.js index fc4ce9d..070c7e4 100644 --- a/src/components/footer/Footer.style.js +++ b/src/components/footer/Footer.style.js @@ -12,6 +12,7 @@ export const FooterContainer = styled.footer` @media(max-width: 768px) { font-size: 0.8em; + margin : 0; } @@ -24,11 +25,12 @@ export const FooterTop = styled.div` width: 100%; max-width: 85vw; margin: 0 auto; - padding: 1% 5%; + padding: 0% 5%; @media(max-width: 768px) { flex-direction: column; margin-top:5%; + padding :0; } `; @@ -214,7 +216,6 @@ export const UrlContainer = styled.div` img{ height : 5vh; - width: 8vw; } } diff --git a/src/components/guestBook/MessageCard.style.js b/src/components/guestBook/MessageCard.style.js index 73327e5..8d2ea75 100644 --- a/src/components/guestBook/MessageCard.style.js +++ b/src/components/guestBook/MessageCard.style.js @@ -21,7 +21,7 @@ export const CardContainer = styled.div` //cd 이미지 및 관련 내용 export const CDContainer = styled.div` width: 24vw; - height: 50vh; + height: 24vw; background-image: url(${(props) => props.src}); background-size: cover; background-position: center; @@ -33,20 +33,20 @@ export const CDContainer = styled.div` @media (max-width:768px) { width:40vw; - height:25vh; + height:40vw; margin:2%; } @media (min-width: 769px) and (max-width: 1024px) { width: 30vw; /* 아이패드에서 이미지 크기 조정 */ - height: 40vh; + height: 30vw; margin:0 auto ; } `; export const ToText = styled.p` color: black; - font-size: 1.5em; + font-size: 1.2em; text-align: left; position: absolute; top: 5%; @@ -68,7 +68,7 @@ export const ToText = styled.p` export const FromText = styled.p` color: black; - font-size: 1.5em; + font-size: 1.2em; text-align: right; position: absolute; bottom: 5%; @@ -83,7 +83,7 @@ export const FromText = styled.p` } @media (min-width: 769px) and (max-width: 1024px) { - font-size: 1.2em; + font-size: 1.1em; right: 8%; bottom:15%; } @@ -97,14 +97,15 @@ export const MessageText = styled.p` position: absolute; top: 18%; left:15%; - max-height:33vh; - width:16vw; + max-height:95%; + width:70%; + height:60%; overflow:auto; z-index: 10; /* 스크롤바 스타일링 (Webkit 기반 브라우저용) */ &::-webkit-scrollbar { - width: 0.7vw; /* 스크롤바 너비 */ + width: 0.6vw; /* 스크롤바 너비 */ } &::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.5); /* 스크롤바 색상 */ @@ -129,8 +130,8 @@ export const MessageText = styled.p` @media (min-width: 769px) and (max-width: 1024px) { font-size: 1em; - width: 20vw; - height:23vh; + width: 40%; + height:50%; top: 18%; } diff --git a/src/components/guestBook/MessageInputSection.jsx b/src/components/guestBook/MessageInputSection.jsx index f54aa45..b74f0bb 100644 --- a/src/components/guestBook/MessageInputSection.jsx +++ b/src/components/guestBook/MessageInputSection.jsx @@ -75,7 +75,7 @@ const MessageInputSection = ({ onSendMessage, onViewGuestBook }) => { onChange={(e) => setNewMessage({ ...newMessage, message: e.target.value })} /> -