Skip to content

Commit b916851

Browse files
committed
fix back button to compt thinking and hint
1 parent fd12b7b commit b916851

6 files changed

Lines changed: 62 additions & 46 deletions

File tree

src/assets/left-arrow.png

231 Bytes
Loading

src/pages/Quiz/QuizSection.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import styled from 'styled-components';
33
import { LeftSection as QuizSectionLayout } from '../../components/LayoutSection';
44
import { Link } from 'react-router-dom';
55
import {
6-
Topic,
76
SubTopic,
87
Text,
98
CodeBox,
109
CodeText,
1110
SubTitle,
1211
} from '../../components/contentComponent';
12+
import leftArrow from '../../assets/left-arrow.png';
1313

1414
const SubWrapper = styled.div`
1515
display: flex;
@@ -18,25 +18,26 @@ const SubWrapper = styled.div`
1818
color: #303030;
1919
text-decoration: none;
2020
}
21-
`;
2221
23-
const Back = styled.p`
24-
font-size: 60%;
25-
color: #303030;
26-
margin: 2px 0 0 10px;
27-
&:hover {
28-
color: #009d86;
22+
img {
23+
/* margin-top: -3px; */
24+
margin-right: 10px;
2925
}
3026
`;
3127

28+
const Topic = styled.p`
29+
font-size: 70%;
30+
margin-top: 2px;
31+
`;
32+
3233
const QuizSection = () => {
3334
return (
3435
<QuizSectionLayout>
3536
<SubWrapper>
36-
<Topic>Kuis | Array</Topic>
3737
<Link to="/quiz-list" className="link">
38-
<Back>(back to Quiz List)</Back>
38+
<img src={leftArrow} alt="back" />
3939
</Link>
40+
<Topic>Kuis | Array</Topic>
4041
</SubWrapper>
4142
<SubTopic>Rotasi Matriks</SubTopic>
4243
<SubTitle>Deskripsi</SubTitle>

src/pages/Quiz/component/Abstraksi.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
RightSection as ResultSection,
1111
} from '../../../components/LayoutSection';
1212
import { Link } from 'react-router-dom';
13+
import leftArrow from '../../../assets/left-arrow.png';
1314

1415
const BoxResult = styled.div`
1516
width: 100%;
@@ -48,17 +49,21 @@ const SubWrapper = styled.div`
4849
color: #303030;
4950
text-decoration: none;
5051
}
51-
`;
5252
53-
const Back = styled.p`
54-
font-size: 60%;
55-
color: #303030;
56-
margin: 10px 0 0 5px;
57-
&:hover {
58-
color: #009d86;
53+
img {
54+
margin-top: 7px;
55+
margin-right: 10px;
5956
}
6057
`;
6158

59+
const TextHint = styled.p`
60+
font-size: 80%;
61+
line-height: 20px;
62+
margin-top: 20px;
63+
margin-bottom: 30px;
64+
font-weight: bold;
65+
`;
66+
6267
const Abstraksi = () => {
6368
const [color1, setColor1] = useState('#009d86');
6469
const [color2, setColor2] = useState('#009d86');
@@ -137,15 +142,16 @@ const Abstraksi = () => {
137142
<QuizSection />
138143
<AnswerSection padding="20px">
139144
<SubWrapper>
140-
<SubTopic>Abstraksi</SubTopic>
141145
<Link to="/quiz" className="link">
142-
<Back>(back to computational thinking)</Back>
146+
<img src={leftArrow} alt="back" />
143147
</Link>
148+
<SubTopic>Abstraksi</SubTopic>
144149
</SubWrapper>
145150
<Text>
146151
Silahkan pilih <span>Abstraksi</span> mana saja yang tepat untuk
147152
persoalan di samping.
148153
</Text>
154+
<TextHint>Hint: Jawaban yang tepat bisa lebih dari satu</TextHint>
149155
<CheckboxWrapper>
150156
<CheckboxItem
151157
id={1}

src/pages/Quiz/component/Algoritma.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import rightArrow from '../../../assets/right-arrow.png';
1818
import adaptive from '../../../assets/adaptive.png';
1919
import { TextHighlight } from '../../../components/contentComponent';
2020
import { Link } from 'react-router-dom';
21+
import leftArrow from '../../../assets/left-arrow.png';
2122

2223
const TitleEditor = styled.p`
2324
font-size: 120%;
@@ -54,14 +55,10 @@ const SubWrapper = styled.div`
5455
color: #303030;
5556
text-decoration: none;
5657
}
57-
`;
5858
59-
const Back = styled.p`
60-
font-size: 60%;
61-
color: #303030;
62-
margin: 10px 0 0 10px;
63-
&:hover {
64-
color: #009d86;
59+
img {
60+
margin-top: 7px;
61+
margin-left: 20px;
6562
}
6663
`;
6764

@@ -229,10 +226,10 @@ const rotasiMatriks = (m, n, matriks) => {
229226
<QuizSection />
230227
<CodeSection>
231228
<SubWrapper>
232-
<TitleEditor>Algoritma</TitleEditor>
233229
<Link to="/quiz" className="link">
234-
<Back>(back to computational thinking)</Back>
230+
<img src={leftArrow} alt="back" />
235231
</Link>
232+
<TitleEditor>Algoritma</TitleEditor>
236233
</SubWrapper>
237234
<Text>
238235
Silahkan tulis <span>Algoritma</span> yang tepat untuk persoalan di

src/pages/Quiz/component/Dekomposisi.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
RightSection as ResultSection,
1111
} from '../../../components/LayoutSection';
1212
import { Link } from 'react-router-dom';
13+
import leftArrow from '../../../assets/left-arrow.png';
1314

1415
const BoxResult = styled.div`
1516
width: 100%;
@@ -48,17 +49,21 @@ const SubWrapper = styled.div`
4849
color: #303030;
4950
text-decoration: none;
5051
}
51-
`;
5252
53-
const Back = styled.p`
54-
font-size: 60%;
55-
color: #303030;
56-
margin: 10px 0 0 10px;
57-
&:hover {
58-
color: #009d86;
53+
img {
54+
margin-top: 7px;
55+
margin-right: 10px;
5956
}
6057
`;
6158

59+
const TextHint = styled.p`
60+
font-size: 80%;
61+
line-height: 20px;
62+
margin-top: 20px;
63+
margin-bottom: 30px;
64+
font-weight: bold;
65+
`;
66+
6267
const Dekomposisi = () => {
6368
const [color1, setColor1] = useState('#009d86');
6469
const [color2, setColor2] = useState('#009d86');
@@ -137,15 +142,16 @@ const Dekomposisi = () => {
137142
<QuizSection />
138143
<AnswerSection padding="20px">
139144
<SubWrapper>
140-
<SubTopic>Dekomposisi</SubTopic>
141145
<Link to="/quiz" className="link">
142-
<Back>(back to computational thinking)</Back>
146+
<img src={leftArrow} alt="back" />
143147
</Link>
148+
<SubTopic>Dekomposisi</SubTopic>
144149
</SubWrapper>
145150
<Text>
146151
Silahkan pilih <span>Dekomposisi</span> mana saja yang tepat untuk
147152
persoalan di samping.
148153
</Text>
154+
<TextHint>Hint: Jawaban yang tepat bisa lebih dari satu</TextHint>
149155
<CheckboxWrapper>
150156
<CheckboxItem
151157
id={1}

src/pages/Quiz/component/PengenalanPola.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
RightSection as ResultSection,
1111
} from '../../../components/LayoutSection';
1212
import { Link } from 'react-router-dom';
13+
import leftArrow from '../../../assets/left-arrow.png';
1314

1415
const BoxResult = styled.div`
1516
width: 100%;
@@ -48,17 +49,21 @@ const SubWrapper = styled.div`
4849
color: #303030;
4950
text-decoration: none;
5051
}
51-
`;
5252
53-
const Back = styled.p`
54-
font-size: 60%;
55-
color: #303030;
56-
margin: 10px 0 0 10px;
57-
&:hover {
58-
color: #009d86;
53+
img {
54+
margin-top: 7px;
55+
margin-right: 10px;
5956
}
6057
`;
6158

59+
const TextHint = styled.p`
60+
font-size: 80%;
61+
line-height: 20px;
62+
margin-top: 20px;
63+
margin-bottom: 30px;
64+
font-weight: bold;
65+
`;
66+
6267
const PengenalanPola = () => {
6368
const [color1, setColor1] = useState('#009d86');
6469
const [color2, setColor2] = useState('#009d86');
@@ -137,15 +142,16 @@ const PengenalanPola = () => {
137142
<QuizSection />
138143
<AnswerSection padding="20px">
139144
<SubWrapper>
140-
<SubTopic>Pengenalan Pola</SubTopic>
141145
<Link to="/quiz" className="link">
142-
<Back>(back to computational thinking)</Back>
146+
<img src={leftArrow} alt="back" />
143147
</Link>
148+
<SubTopic>Pengenalan Pola</SubTopic>
144149
</SubWrapper>
145150
<Text>
146151
Silahkan pilih <span>Pengenalan Pola</span> mana saja yang tepat untuk
147152
persoalan di samping.
148153
</Text>
154+
<TextHint>Hint: Jawaban yang tepat bisa lebih dari satu</TextHint>
149155
<CheckboxWrapper>
150156
<CheckboxItem
151157
id={1}

0 commit comments

Comments
 (0)