Commit 9242e32b authored by Duminda Kodagoda's avatar Duminda Kodagoda

Merge branch 'it15061058' into 'master'

common parts were added

See merge request !6
parents c1ae35b4 5f0f3d22
import * as tf from "@tensorflow/tfjs-node";
export default async (req, res) => {
try {
res.status(200).json({
success: true,
type: "success",
......
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;
import { useEffect, useRef, useState } from "react";
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 Webcam from "react-webcam";
import { drawHand } from "../components/utilities";
......
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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment