Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-029
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-029
2023-029
Commits
d08eb3ff
Commit
d08eb3ff
authored
May 14, 2023
by
supundileepa00
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : Implemented UI main navigation page to convert sign language
parent
97ce69dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
100 additions
and
0 deletions
+100
-0
Project/Frontend/Web_App/src/pages/translate-page.tsx
Project/Frontend/Web_App/src/pages/translate-page.tsx
+100
-0
No files found.
Project/Frontend/Web_App/src/pages/translate-page.tsx
0 → 100644
View file @
d08eb3ff
// next
import
Head
from
'
next/head
'
;
// @mui
import
{
Box
,
Button
,
ButtonGroup
,
Card
,
CardContent
,
CardHeader
,
Divider
,
Grid
,
}
from
'
@mui/material
'
;
// layouts
import
MainLayout
from
'
../layouts/main
'
;
// sections
import
{
AboutTranslate
,
AboutWhat
,
AboutTeam
,
AboutVision
,
AboutTestimonials
,
}
from
'
../sections/slToText
'
;
import
{
Upload
}
from
'
src/components/upload
'
;
import
{
useCallback
,
useState
}
from
'
react
'
;
import
UploadIcon
from
'
@mui/icons-material/Upload
'
;
import
EmergencyRecordingIcon
from
'
@mui/icons-material/EmergencyRecording
'
;
// ----------------------------------------------------------------------
AboutPage
.
getLayout
=
(
page
:
React
.
ReactElement
)
=>
<
MainLayout
>
{
page
}
</
MainLayout
>;
// ----------------------------------------------------------------------
export
default
function
AboutPage
()
{
const
[
file
,
setFile
]
=
useState
<
File
|
string
|
null
>
(
null
);
const
handleDropSingleFile
=
useCallback
((
acceptedFiles
:
File
[])
=>
{
const
file
=
acceptedFiles
[
0
];
if
(
file
)
{
setFile
(
Object
.
assign
(
file
,
{
preview
:
URL
.
createObjectURL
(
file
),
})
);
}
},
[]);
return
(
<>
<
Head
>
<
title
>
Translate SSL to Text
</
title
>
</
Head
>
<
Box
sx=
{
{
flexGrow
:
1
}
}
>
<
ButtonGroup
disableElevation
variant=
"contained"
aria
-
label=
"Disabled elevation buttons"
>
<
Button
variant=
"outlined"
startIcon=
{
<
UploadIcon
/>
}
>
Upload
</
Button
>
<
Button
variant=
"contained"
endIcon=
{
<
EmergencyRecordingIcon
/>
}
>
Send
</
Button
>
</
ButtonGroup
>
<
Card
>
<
Grid
container
spacing=
{
2
}
sx=
{
{
mt
:
'
3%
'
,
px
:
'
1%
'
,
}
}
>
<
Grid
item
xs=
{
12
}
md=
{
6
}
>
<
Card
>
<
CardHeader
title=
"Upload a video containing Sign Language"
/>
<
CardContent
>
<
Upload
file=
{
file
}
onDrop=
{
handleDropSingleFile
}
onDelete=
{
()
=>
setFile
(
null
)
}
/>
</
CardContent
>
</
Card
>
</
Grid
>
<
Grid
item
xs=
{
12
}
md=
{
6
}
>
<
Card
>
<
CardHeader
title=
"Upload a video containing Sign Language"
/>
<
CardContent
>
<
Upload
file=
{
file
}
onDrop=
{
handleDropSingleFile
}
onDelete=
{
()
=>
setFile
(
null
)
}
/>
</
CardContent
>
</
Card
>
</
Grid
>
</
Grid
>
</
Card
>
</
Box
>
</>
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment