Addeed voting and home page ✔

This commit is contained in:
Manik Maity
2024-11-07 12:05:27 +05:30
parent 0a6faad13e
commit ece2b33eb7
8 changed files with 158 additions and 39 deletions

View File

@@ -1,42 +1,20 @@
import React from 'react'
import { Link } from 'react-router-dom'
function Header() {
return (
<div className="navbar bg-base-100">
<div className="flex-1">
<a className="btn btn-ghost text-xl">daisyUI</a>
<Link to={"/"}><a className="btn btn-ghost text-xl">LivePoll</a></Link>
</div>
<div className="flex-none">
<div className="dropdown dropdown-end">
<div tabIndex={0} role="button" className="btn btn-ghost btn-circle">
<div className="indicator">
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-5 w-5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor">
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z" />
</svg>
<span className="badge badge-sm indicator-item">8</span>
</div>
</div>
<div
tabIndex={0}
className="card card-compact dropdown-content bg-base-100 z-[1] mt-3 w-52 shadow">
<div className="card-body">
<span className="text-lg font-bold">8 Items</span>
<span className="text-info">Subtotal: $999</span>
<div className="card-actions">
<button className="btn btn-primary btn-block">View cart</button>
</div>
</div>
</div>
</div>
<ul className="menu menu-horizontal px-1">
<li><Link to={"/login"}>Login</Link></li>
<li><Link to={'/bookmark'}>Bookmarks</Link></li>
</ul>
</div>
<div className="flex-none">
<div className="dropdown dropdown-end">
<div tabIndex={0} role="button" className="btn btn-ghost btn-circle avatar">
<div className="w-10 rounded-full">
@@ -49,12 +27,11 @@ function Header() {
tabIndex={0}
className="menu menu-sm dropdown-content bg-base-100 rounded-box z-[1] mt-3 w-52 p-2 shadow">
<li>
<a className="justify-between">
<Link to={'/dashboard'}><a className="justify-between" >
Profile
<span className="badge">New</span>
</a>
</a></Link>
</li>
<li><a>Settings</a></li>
<li><a>Logout</a></li>
</ul>
</div>