Skip to content

Commit

Permalink
FE: [feat] 시험 종료 버튼 추가 #34
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeona01 committed Nov 17, 2024
1 parent f6b0c2f commit 76b79d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/frontend/eyesee-user/src/app/exam-room/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import React, { useEffect, useRef } from "react";
import { api } from "@/apis";
import NextButton from "@/components/common/NextButton";

const RealTimeVideoPage = () => {
const videoRef = useRef<HTMLVideoElement>(null);
Expand Down Expand Up @@ -136,6 +137,14 @@ const RealTimeVideoPage = () => {
style={{ transform: "scaleX(-1)" }} // 좌우 반전
/>
<canvas ref={canvasRef} style={{ display: "none" }} />
<div className="fixed bottom-6 right-6">
<NextButton
action="/"
title="시험 종료"
isAvailable={true}
noArrow={true}
/>
</div>
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const NextButton = ({
return (
<div
onClick={handleClick}
className={`flex justify-between items-center gap-14 text-white text-[14px] tracking-[4.2px] px-4 py-3 ${
className={`z-50 flex justify-between items-center gap-14 text-white text-[14px] tracking-[4.2px] px-4 py-3 ${
isAvailable ? "bg-[rgb(14,29,60,0.8)]" : "bg-[rgb(146,146,146,0.8)]"
}`}
>
Expand Down

0 comments on commit 76b79d8

Please sign in to comment.