Skip to content

Commit

Permalink
update UI to work on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
BANANAPEEL202 committed Feb 11, 2024
1 parent 2fb0a70 commit 148d3c3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
Binary file modified .DS_Store
Binary file not shown.
20 changes: 12 additions & 8 deletions src/AppPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export const AppPage = () => {
const sse = useRef<EventSource | undefined>();

return (
<div className='backgroundImage'>
<Center style={{ width: '100%', height: '100%' }}>
<>
<Center style={{ width: '100%', height: '100%' }} p='md'>
{state.state === 'upload' || state.state === 'uploading' ? (
<Stack align='center' justify='center'>
<div className='addName'>
Expand Down Expand Up @@ -287,20 +287,24 @@ export const AppPage = () => {
</Stack>
) : state.state === 'analyzing' ? (
<Stack align='center' justify='center'>
<Loader size='xl' />
<Loader size='xl' color='#4186d9' />
<Text className='analyzingLoad' ta='center'>
Analyzing your video with our advanced, powerful algorithms. 💪
</Text>
<Text c='dimmed' ta='center'>Video Id: {state.id}</Text>
<Text c='dimmed' ta='center'>
Video Id: {state.id}
</Text>
</Stack>
) : state.state === 'result' ? (
<Stack align='center' justify='center'>
<Title className='analyzedVideo'>
<Title className='analyzedVideo' ta='center'>
Your Video Has Been Analyzed!
</Title>
<Group justify='center' gap='xl'>
<Paper p='md'>
<Title order={2}>Your {numToExercise(exercise)} Feedback</Title>
<Title order={2} ta='center'>
Your {numToExercise(exercise)} Feedback
</Title>
<Accordion maw={rem(270)}>
{state.feedback
.sort((a) => (a.satisfactory ? 1 : 0))
Expand Down Expand Up @@ -341,7 +345,7 @@ export const AppPage = () => {
))}
</Accordion>
</Paper>
<video height={360} ref={videoRef} controls>
<video width='100%' ref={videoRef} controls>
<source src={state.video} type={OUTPUT_MIME}></source>
</video>
</Group>
Expand Down Expand Up @@ -370,6 +374,6 @@ export const AppPage = () => {
</Stack>
) : null}
</Center>
</div>
</>
);
};
11 changes: 9 additions & 2 deletions src/backApp.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
:root body {
background-color: black;
}

.backgroundImage {
//background: linear-gradient(to bottom, #EE4266 0%,blue 100%);
background: black;
height: 100vh;
width: 100vw;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}

.addName {
Expand Down

0 comments on commit 148d3c3

Please sign in to comment.