Added login page
This commit is contained in:
parent
d71001231b
commit
af143a2ecc
File diff suppressed because it is too large
Load Diff
|
@ -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>
|
||||
</>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue