Skip to content

Commit

Permalink
Fix2 (#9)
Browse files Browse the repository at this point in the history
* [ADD] 상세 설명 디자인 추가

* [FIX] css

* [ADD]Q&A box
  • Loading branch information
kojesung authored Jan 5, 2024
1 parent 9166c8a commit f250993
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 29 deletions.
60 changes: 36 additions & 24 deletions src/Qdetail.jsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,44 @@
// @ts-nocheck
import React from "react";
import { useState } from "react";
import { styles } from "src/components/qdetail/style";

function Qdetail() {
const [login, setLogin] = useState(false);
const [login, setLogin] = useState(false);

return (
<div style={styles.container}>
<div style={styles.q_a_sub}>
<div style={styles.q_container}>
<div>돋보기 사진이 들어갈 자리</div>
<div>궁금한 것을 질문해보세요</div>
</div>
<h2 style={styles.ad}>광고/배너</h2>
</div>
<div style={styles.ad_q}>
<div style={styles.a_b_q_container}>
<div style={styles.b_q_container}>이전 질문으로 이동 칸</div>
{/*Link 컴포넌트로 바꿀 태그*/}
<div style={styles.a_q_contianer}>다음 질문으로 이동 칸</div>
{/*Link 컴포넌트로 바꿀 태그*/}
</div>
<div style={styles.q_a_main}>질문과 대답이 나오는 칸</div>
</div>
<div style={styles.profilecontainer}>
<div style={styles.profilecontainer2}>로그인</div>
</div>
</div>
);
return (
<div style={styles.container}>
<div style={styles.q_a_sub}>
<div style={styles.q_container}>
<div>돋보기 사진이 들어갈 자리</div>
<div>궁금한 것을 질문해보세요</div>
</div>
<h2 style={styles.ad}>광고/배너</h2>
</div>
<div style={styles.ad_q}>
<div style={styles.a_b_q_container}>
<div style={styles.b_q_container}>이전 질문으로 이동 칸</div>
{/*Link 컴포넌트로 바꿀 태그*/}
<div style={styles.a_q_container}>다음 질문으로 이동 칸</div>
{/*Link 컴포넌트로 바꿀 태그*/}
</div>
<div style={styles.q_a_main}>
<div style={{ display: 'flex', flex: '1' }}>
<div style={styles.q_content}>질문</div>
</div>
<hr style={{ width: '90%' }} />
<button>
답변하기
</button>
<div style={styles.answer}>답변1</div>
<div style={styles.answer}>답변2</div>
<div style={styles.answer}>답변3</div>
</div>
</div>
<div style={styles.profilecontainer}>
<div style={styles.profilecontainer2}>로그인</div>
</div>
</div >
);
}
export default Qdetail;
21 changes: 16 additions & 5 deletions src/components/qdetail/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export const styles = {
b_q_container: {
marginTop: '5px',
marginBottom: '10px',
marginleft: '5px'
marginLeft: '5px'
},
a_q_contianer: {
a_q_container: {
marginTop: '5px',
marginBottom: '10px',
marginleft: '5px'
marginLeft: '5px'
},
q_container: {
borderRadius: '15px',
Expand All @@ -43,16 +43,27 @@ export const styles = {
},
q_a_main: {
background: '#EB7125',
wdith: '59.7vw',
width: '59.7vw',
height: '90.2vh',
boxShadow: '0 4px 4px 0 black',
borderRadius: '20px',
display: 'flex',
flexDirection: 'column'
},
profilecontainer: {
flex: "0.6",
},
profilecontainer2: {
background: "#EB7125",
borderRadius: '45px',
},
answer: {
flex: "1",
},
q_content: {
background: "#FFFFFF",
margin: '10px',
borderRadius: "15px",
flex: "1",
}
}
}

0 comments on commit f250993

Please sign in to comment.