Added vercel.json for deployment
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import { useNavigate } from 'react-router-dom';
|
||||||
|
|
||||||
function Home() {
|
function Home() {
|
||||||
|
|
||||||
|
const navigator = useNavigate();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex bg-base-200 min-h-screen flex-col items-center text-white p-8">
|
<div className="flex bg-base-200 min-h-screen flex-col items-center text-white p-8">
|
||||||
<h1 className="text-4xl mt-2 md:text-5xl font-bold mb-6 text-center flex flex-col gap-2 md:block">Welcome to <span className='bg-slate-800 px-4 rounded-md relative'>LivePoll</span></h1>
|
<h1 className="text-4xl mt-2 md:text-5xl font-bold mb-6 text-center flex flex-col gap-2 md:block">Welcome to <span className='bg-slate-800 px-4 rounded-md relative'>LivePoll</span></h1>
|
||||||
@@ -34,9 +38,9 @@ function Home() {
|
|||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
className="btn btn-primary px-6 py-3 font-semibold text-lg"
|
className="btn btn-primary px-6 py-3 font-semibold text-lg"
|
||||||
onClick={() => navigate("/login")}
|
onClick={() => navigator("/dashboard")}
|
||||||
>
|
>
|
||||||
Get Started
|
Make a Poll
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
6
frontend/vercel.json
Normal file
6
frontend/vercel.json
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"rewrites": [{
|
||||||
|
"source": "/(.*)",
|
||||||
|
"destination": "/"
|
||||||
|
}]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user