-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 메인 페이지 UI 컴포넌트 추가 - FloatingSquare, FloatingQuestion 컴포넌트 추가 - floating 애니메이션 추가 * feat: 메인 페이지 UI 변경 * feat: 응답값이 없는 경우, 분기 처리 * feat: 클래스 리스트 get, 클래스 생성 api 추가 및 적용 * style: 스타일 변경 * refactor: 레이아웃 수정 - HostLayout 사이드바 삭제 - 헤더에서 로그아웃, 세팅 버튼 삭제 * fix: 오타 수정 - elasped에서 elapsed로 변경 * fix: 라우트 수정 * feat: input에 value값 추가 * feat: useCreateQuiz 추가 - classId를 useParams로 받음 * feat: 퀴즈 타이틀 모달 로직 추가 - 아직 완성되지 않은 api 미연결 * feat: 퀴즈 번호 로직 수정 * feat: 퀴즈 시작 아이디 argument로 추가 * style: input 백그라운드 색상 변경 * feat: Get quiz 연결, Post class response 연결
- Loading branch information
Showing
23 changed files
with
377 additions
and
137 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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import MessageIcon from '@/shared/assets/icons/circle-message.svg?react'; | ||
|
||
interface FloatingQuestionProps { | ||
delay: number; | ||
position: string; | ||
} | ||
|
||
export default function FloatingQuestion({ delay, position }: FloatingQuestionProps) { | ||
return ( | ||
<div | ||
style={{ | ||
animationDelay: `${delay}s`, | ||
}} | ||
className={`absolute ${position} text-4xl w-32 h-32 font-bold text-white/30 animate-floating`} | ||
> | ||
<div className="relative w-full h-full"> | ||
<MessageIcon stroke="#3b82f6" className="w-full h-full opacity-20" /> | ||
<div className="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-3xl font-bold text-blue-500 opacity-40"> | ||
? | ||
</div> | ||
</div> | ||
</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,15 @@ | ||
interface FloatingSquareProps { | ||
color: string; | ||
size: string; | ||
position: string; | ||
delay: number; | ||
} | ||
|
||
export default function FloatingSquare({ color, size, position, delay }: FloatingSquareProps) { | ||
return ( | ||
<div | ||
style={{ width: `${size}px`, height: `${size}px`, animationDelay: `${delay}s` }} | ||
className={`absolute ${position} rounded-2xl animate-floating delay-${delay} drop-shadow-sm backdrop-blur bg-gradient-to-br ${color}`} | ||
/> | ||
); | ||
} |
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
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
Oops, something went wrong.