Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Audio Video Conferencing Tool
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
1
Merge Requests
1
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
2021-184 4TH YEAR RESEARCH GROUP
Audio Video Conferencing Tool
Commits
5f0f3d22
Commit
5f0f3d22
authored
Apr 26, 2021
by
Sachin Kodagoda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding files
parent
c1ae35b4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
4 deletions
+59
-4
src/pages/api/test.js
src/pages/api/test.js
+0
-3
src/pages/auth.tsx
src/pages/auth.tsx
+14
-0
src/pages/index.tsx
src/pages/index.tsx
+1
-1
src/pages/login.tsx
src/pages/login.tsx
+44
-0
No files found.
src/pages/api/test.js
View file @
5f0f3d22
import
*
as
tf
from
"
@tensorflow/tfjs-node
"
;
export
default
async
(
req
,
res
)
=>
{
export
default
async
(
req
,
res
)
=>
{
try
{
try
{
res
.
status
(
200
).
json
({
res
.
status
(
200
).
json
({
success
:
true
,
success
:
true
,
type
:
"
success
"
,
type
:
"
success
"
,
...
...
src/pages/auth.tsx
0 → 100644
View file @
5f0f3d22
import
React
from
"
react
"
;
import
styled
from
"
styled-components
"
;
const
Auth
=
():
JSX
.
Element
=>
{
return
<
Container
>
This is auth page
</
Container
>;
};
const
Container
=
styled
.
div
`
width: 100%;
height: 100vh;
background: #fff;
`
;
export
default
Auth
;
src/pages/index.tsx
View file @
5f0f3d22
import
{
useEffect
,
useRef
,
useState
}
from
"
react
"
;
import
{
useEffect
,
useRef
,
useState
}
from
"
react
"
;
import
styled
from
"
styled-components
"
;
import
styled
from
"
styled-components
"
;
//
import * as tf from "@tensorflow/tfjs";
import
*
as
tf
from
"
@tensorflow/tfjs
"
;
import
*
as
handpose
from
"
@tensorflow-models/handpose
"
;
import
*
as
handpose
from
"
@tensorflow-models/handpose
"
;
import
Webcam
from
"
react-webcam
"
;
import
Webcam
from
"
react-webcam
"
;
import
{
drawHand
}
from
"
../components/utilities
"
;
import
{
drawHand
}
from
"
../components/utilities
"
;
...
...
src/pages/login.tsx
0 → 100644
View file @
5f0f3d22
import
Link
from
"
next/link
"
;
import
React
from
"
react
"
;
import
styled
from
"
styled-components
"
;
const
Login
=
():
JSX
.
Element
=>
{
return
(
<
Container
>
<
form
action=
""
className=
"form"
>
<
input
type=
"text"
placeholder=
"Input your name"
className=
"input_username"
/>
<
Link
href=
"/auth"
>
<
input
type=
"submit"
value=
"Submit"
/>
</
Link
>
</
form
>
</
Container
>
);
};
const
Container
=
styled
.
div
`
width: 100%;
height: 100vh;
background: #fff;
display: flex;
align-items: center;
justify-content: center;
.form {
background: #f1f1f1;
border: 1px solid #ccc;
width: 50%;
height: 50%;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
.input_username {
margin-bottom: 16px;
}
`
;
export
default
Login
;
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