Added Private route and global store

This commit is contained in:
Manik Maity
2024-11-08 18:53:34 +05:30
parent 81657315f5
commit 700b0136fc
9 changed files with 138 additions and 41 deletions

View File

@@ -1,10 +1,12 @@
import React from 'react'
import { useNavigate } from 'react-router-dom';
import useStore from '../store/useStore';
function Home() {
const navigator = useNavigate();
return (
<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>