Added login page

This commit is contained in:
Pratyay Roy 2022-02-15 22:13:40 +05:30
parent d71001231b
commit af143a2ecc
2 changed files with 19 additions and 2847 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,16 +1,15 @@
import { useState } from "react";
import Head from "next/head";
import HomeSection from "components/HomeSection/homeSection";
import NavBar from "components/NavBar";
import Features from "components/Features";
import Reg from "components/Reg/Reg";
import Login from "components/Login/Login";
import { UserAuthProvider, UserContext } from "./user/usercontext";
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import { useState } from 'react'
import Head from 'next/head'
import HomeSection from 'components/HomeSection/homeSection'
import NavBar from 'components/NavBar'
import Features from 'components/Features'
import Reg from 'components/Reg/Reg'
import Login from 'components/Login/Login'
import { UserAuthProvider, UserContext } from './user/usercontext'
export default function Home() {
const [shortUrl, setShortUrl] = useState(null);
const [longURL, setLongURL] = useState("");
const [shortUrl, setShortUrl] = useState(null)
const [longUrl, setLongUrl] = useState('')
return (
<>
@ -19,7 +18,7 @@ export default function Home() {
<link rel="icon" href="/favicon.ico" />
</Head>
<main className={"main-bg"}>
<main className={'main-bg'}>
<NavBar />
<HomeSection
shortUrl={shortUrl}
@ -30,5 +29,5 @@ export default function Home() {
<Features />
</main>
</>
);
)
}