-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
72 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ | |
// Email : <[email protected]> | ||
// Twitter: @Watasuke102 | ||
// This software is released under the MIT or MIT SUSHI-WARE License. | ||
'use client'; | ||
import css from './ExamPage.module.scss'; | ||
import React from 'react'; | ||
import Exam from '@mytypes/Exam'; | ||
import Button from '@/common/Button/Button'; | ||
import ArrowLeftIcon from '@assets/arrow-left.svg'; | ||
import ArrowRightIcon from '@assets/arrow-right.svg'; | ||
import Head from 'next/head'; | ||
|
||
type Props = { | ||
title: string; | ||
|
@@ -40,23 +40,54 @@ export function ExamPage(props: Props): JSX.Element { | |
|
||
return ( | ||
<> | ||
<Head> | ||
<title>{}</title> | ||
</Head> | ||
<div className={css.exam_area_wrapper}> | ||
<section className={css.exam_status}> | ||
<section className={`${css.exam_status} ${css.scroll_area}`}> | ||
<div className={css.current_index_status}>{`${index + 1} / ${props.exam.length}`}</div> | ||
{[...Array(1000)].map((e, i) => ( | ||
<span key={i}>{`00${i}`.slice(-3)}:1000問正解</span> | ||
))} | ||
</section> | ||
<section className={css.exam_area}> | ||
<div className={css.question}>{props.exam[index].question}</div> | ||
<div className={css.answer}>answer</div> | ||
<div className={css.result}>result</div> | ||
<div className={css.question}> | ||
{props.exam[index].question} | ||
{'00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'} | ||
</div> | ||
<div className={`${css.answer} ${css.scroll_area}`}> | ||
{[...Array(100)].map((e, i) => ( | ||
<> | ||
<span key={i}> | ||
{`00${i}`.slice(-3)}:{'0000000000000000000000000000000000000000000000000000' + i * i * i} | ||
</span> | ||
<br /> | ||
</> | ||
))} | ||
answer | ||
</div> | ||
<div className={`${css.result} ${css.scroll_area}`}> | ||
{[...Array(100)].map((e, i) => ( | ||
<> | ||
<span key={i}> | ||
{`00${i}`.slice(-3)}: | ||
{'0000000000000000000012345678901234500000000000000000000000000000000' + i * i * i} | ||
</span> | ||
<br /> | ||
</> | ||
))} | ||
result | ||
</div> | ||
<div className={css.button_container}> | ||
<Button type='material' text='戻る' OnClick={() => handle_index_update_button('prev')} icon={<ArrowLeftIcon />} /> | ||
<Button type='material' text='次へ' OnClick={() => handle_index_update_button('next')} icon={<ArrowRightIcon />} /> | ||
<Button | ||
type='material' | ||
text='戻る' | ||
OnClick={() => handle_index_update_button('prev')} | ||
icon={<ArrowLeftIcon />} | ||
/> | ||
<Button | ||
type='material' | ||
text='次へ' | ||
OnClick={() => handle_index_update_button('next')} | ||
icon={<ArrowRightIcon />} | ||
/> | ||
</div> | ||
</section> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// TAGether - Share self-made exam for classmates | ||
// CopyRight (c) 2020-2023 watasuke | ||
// | ||
// Email : <[email protected]> | ||
// Twitter: @Watasuke102 | ||
// This software is released under the MIT or MIT SUSHI-WARE License. | ||
import Loading from '@/common/Loading/Loading'; | ||
|
||
export default Loading; |