Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

관리자페이지 (질문,답변 ) ui 구현 및 api 연결 #348

Merged
merged 2 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/components/pages/adminPage/adminMainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import ReportQuestions from '../../ui/adminSelection/reportQuestions';
import ReportAnswers from '../../ui/adminSelection/reportAnswers';
import ReportComments from '../../ui/adminSelection/reportComments';
import NoticeSelection from '../../ui/adminSelection/noticeSelection';
import QuestionSelection from '../../ui/adminSelection/questionSelection';
import AnswerSelection from '../../ui/adminSelection/answerSelection';

function AdminPage() {
const [currentSection, setCurrentSection] = useState<string>('users');
Expand All @@ -24,8 +26,8 @@ function AdminPage() {
{currentSection === 'users' && <MemberSelection />}
{currentSection === 'company' && <CompanySelection />}
{currentSection === 'notification' && <NoticeSelection />}
{currentSection === 'questions' && <div>질문관리 섹션</div>}
{currentSection === 'answers' && <div>답변관리 섹션</div>}
{currentSection === 'question' && <QuestionSelection />}
{currentSection === 'answer' && <AnswerSelection />}
{currentSection === 'comments' && <div>댓글관리 섹션</div>}
{/* 신고관리 매뉴 */}
{currentSection === 'report-questions' && <ReportQuestions />}
Expand Down
316 changes: 316 additions & 0 deletions src/components/ui/adminSelection/answerSelection.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,316 @@
.ad-answerSelection-container {
width: 100%;
height: 100%;
}

.ad-answer-pagination {
padding-bottom: 50px;
padding-top: 50px;
cursor: pointer;
}

.ad-answerfinal-Calendar {
display: flex;
flex-direction: row;
padding-left: 20rem;
}
.ad-answerSelection-Calendar {
display: flex;
flex-direction: row;
padding-left: 10rem;
}

.ad-answeritem-direction {
display: flex;
flex-direction: column;
height: 20rem;
}

.ad-answer-checkbox {
width: 26px;
height: 26px;
margin-left: 3rem;
align-items: right;
}
.ad-answer-total {
font-size: 2rem;
letter-spacing: -1.5px;
padding-right: 5rem;
}

.ad-answerOption-maxitem {
width: 25rem;
// height: 10rem;
display: flex;
padding-bottom: 2%;
justify-content: space-between;
align-items: center;
}

.ad-answerOption-maxend {
width: 40rem;
// height: 10rem;
display: flex;
padding-bottom: 2%;
justify-content: space-between;
align-items: center;
}

// 검색창
.ad-search {
width: 100%;
height: 16%;
display: flex;
justify-content: center;
align-items: center;
padding-bottom: 20px;
}

.search-container {
border-radius: 10px;
border: 1px solid #909090;
background-color: #f4f3f3;
position: relative;
margin: 2rem auto 0 auto;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
padding: 0 34.2px 0 0;
width: 895px;
box-sizing: border-box;
}

.search-row {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}

.search-divider {
border: none;
border-right: solid 1px #909090;
background-color: transparent;

margin: 0 30px 0 0;

width: 10rem;
height: 61px;
display: flex;
align-items: center;
&:focus {
outline: none;
}
}

.search-prompt {
margin: auto 0 auto 0;
width: 40rem;
height: 3rem;
font-weight: normal;
font-size: 20px;
letter-spacing: -1.4px;
color: #909090;
border: none;
background-color: transparent;

&:focus {
outline: none;
}
}

.toggle-icon {
margin: 0 0 0 80%;
width: 1rem;
height: 1rem;
}

.search-icon {
margin-top: 1.5%;
width: 2rem;
height: 2rem;
}

.ad-searchOption-detail {
width: 100%;
height: 55%;
background-color: rgba(244, 243, 243, 1);
display: flex;
flex-direction: column;
justify-content: center;
padding: 3rem 0 0 10rem;
}

.ad-answerOption {
width: 100%;
height: 350px;
background-color: rgba(244, 243, 243, 1);
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 5rem;
padding-top: 1.5rem;
}

.ad-answerOption-item {
width: 25rem;
height: 10rem;
display: flex;
padding-bottom: 2%;
justify-content: space-between;
align-items: center;
}

.ad-searchOption-select {
width: 60%;
height: 2rem;
background-color: rgba(217, 217, 217, 1);
border: none;
}

.ad-answer-title {
color: rgba(144, 144, 144, 1);
font-size: 2rem;
letter-spacing: -1.5px;
}

.ad-answerResult-header,
.ad-answerResult-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px;
border-bottom: 1px solid #ccc;
height: 3rem;
span {
flex: 1;
text-align: center;
}
}

.admin-btn-wrapper {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}

.ad-cnt-num {
font-weight: bolder;
font-size: 1.5rem;
color: #ff8d1d;
padding-right: 0.5rem;
}

.ad-button-container {
display: flex;
justify-content: space-between;
align-items: center;
margin: 1.5rem auto 5rem auto;
height: 2rem;
width: 30%;
}

.ad-cnt {
padding: 0 0 1rem 1rem;
font-weight: bolder;
font-size: 1.2rem;
}

.ad-answer-result {
border: 1px solid #ccc;
}

.ad-detail {
background-color: rgba(217, 217, 217, 1);
padding: 0.5rem 2rem;
border-radius: 0.7rem;
border: solid 0.5px #242424;
}

.ad-company-title {
font-weight: bolder;
font-size: xx-large;
padding: 3rem;
}

.ad-feedbackSelection-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}

.ad-feedbackSelection {
margin: 5rem 3rem 0 3rem;
width: 100%;
height: 80%;
}

.ad-feedback-result {
border: 1px solid gray;
height: fit-content;
min-height: 73%;
}

.ad-feedbackSelection-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}

.ad-feedbackSelection {
margin: 5rem 3rem 0 3rem;
width: 100%;
height: 80%;
}

.ad-feedback-result {
border: 1px solid gray;
height: fit-content;
min-height: 73%;
}
.ad-feedback-content {
width: 50%;
min-height: 5rem;
margin-left: 50%;
padding: 1rem;
}

.ad-answerResult-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px;

border-bottom: 1px solid #ccc;
height: 3rem;
}
.ad-answerResult-item {
display: flex;
align-items: center;
justify-content: space-between;
// padding: 8px;

border-bottom: 1px solid #ccc;
height: 3rem;
span {
flex: 1;
text-align: center;

.email {
padding-right: 2rem;
}
}
}

.ad-answerdetail {
background-color: rgba(217, 217, 217, 1);
padding: 0.5rem 2rem;
border-radius: 0.7rem;
border: solid 0.5px #242424;
}
Loading
Loading