Skip to content

Commit

Permalink
refactor: 피드백 페이지 CSS 중간 코드
Browse files Browse the repository at this point in the history
[#75]
  • Loading branch information
9ooDa committed Aug 6, 2024
1 parent 8b91322 commit 192f943
Show file tree
Hide file tree
Showing 3 changed files with 238 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,5 @@ yesi.py

*.wav

# 테스트용
mopic-app
58 changes: 58 additions & 0 deletions CssTest/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import React from 'react';
import './App.css';

function App() {
return (
<div className="App">
<header className="header">
<div className="header-left">MOPIc</div>
<div className="header-right">
<a href="#">History</a>
<button>Login</button>
</div>
</header>
<main>
<div className="top-container">
<h1>You are likely to get</h1>
<span className="result">IH</span>
</div>
<div className="questions">
<ul class="tabnav-question">
<li><a href="#tab-q1">Q1</a></li>
<li><a href="#tab-q2">Q2</a></li>
<li><a href="#tab-q3">Q3</a></li>
</ul>
</div>
<div className="question">
Who is your best friend? How did you meet them? How long have you known each other?
</div>
<div className="feedback-container">
<ul className="tabnav-feedback">
<li><a href="#tab-text">텍스트</a></li>
<li><a href="#tab-audio">오디오</a></li>
</ul>
<div className="content">
<div className="box coherence">
<h2>Coherence</h2>
<p className="description">발화 내용의 연결성<br/>전체 발화 중 동일한 말을 몇 번 반복했는지 확인한 비율은</p>
<p className="score">낮음</p>
</div>
<div className="box complexity">
<h2>Complexity</h2>
<p className="description">문장의 복잡도<br/>문장이 모두 간단하게 구성되어 있어 내용 전달이 명확해요.<br/>하지만 복문이나 접속문을 사용한 문장을 추가하면 문장의 다양성을 더할 수 있어요.</p>
</div>
<div className="box grammar">
<h2>Grammar</h2>
<p className="description">전체 발화 중 올바른 문법 사용 비율은</p>
<p className="score">87.27 %</p>
<p className="example incorrect">I like to watch movie like in a week sometimes.</p>
<p className="example correct">I like to watch a movie once a week sometimes.</p>
</div>
</div>
</div>
</main>
</div>
);
}

export default App;
178 changes: 178 additions & 0 deletions CssTest/FeedbackPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: Arial, sans-serif;
background-color: white;
color: #333;
}

.App {
text-align: center;
}
/* 여기는 탑바 */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: white;
border-bottom: 1px solid #ddd;
}

.header-left {
font-size: 24px;
font-weight: bold;
}
/* 탑바 오른쪽 버튼 */
.header-right a,
.header-right button {
margin-left: 15px;
font-size: 16px;
background: none;
border: none;
cursor: pointer;
}

/* 탑바 history */
header a {
text-decoration: none;
color: black;
}

main {
display: block;
justify-content: center;
align-items: center;
height: calc(100vh - 50px);
}

.top-container {
width: 100%;
background-color: white;
padding: 20px;
border-radius: 8px;
text-align: center;
margin-top: 10%;
margin-bottom: 5%;
}

h1 {
color: grey;
font-size: 18px;
margin-bottom: 20px;
font-weight: lighter;
}

.result {
font-size: 48px;
font-weight: bold;
margin-bottom: 20px;
}

.feedback-container {
/* height: 80%; */
width: 80%;
margin: 0 auto;
background-color: #F1F8E8;
padding: 20px;
border-radius: 3px;
text-align: left;
}

.questions {
margin-bottom: 20px;
}

.question-number {
margin: 0 10px;
padding: 5px 10px;
border: none;
border-radius: 50%;
}

.question {
font-size: 18px;
margin-bottom: 20px;
}

.tabs {
display: flex;
justify-content: left;
margin-bottom: 20px;
border-radius: 20px;
}

ul.tabnav-feedback {
margin: 0 auto;
padding: 0px;
list-style: none;
}

ul.tabnav-feedback li {
background: white;
color: black;
display: inline-block;
padding: 5px 10px;
cursor: pointer;
}

ul.tabnav-feedback li.current{
background: #F1F8E8;
color: black;
}

.content {
margin-top: 30px;
margin-bottom: 30px;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}

.box {
width: 45%;
background-color: #f9f9f9;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.coherence {
background-color: white;
}

.complexity {
background-color: white;
}

.grammar {
background-color: white;
}

.description {
font-size: 14px;
margin-bottom: 10px;
}

.score {
font-size: 24px;
font-weight: bold;
}

.example {
font-size: 14px;
margin-top: 10px;
}

.example.incorrect {
color: red;
}

.example.correct {
color: green;
}

0 comments on commit 192f943

Please sign in to comment.