Skip to content

Commit a8df37e

Browse files
committed
header completed
1 parent 45d2b3b commit a8df37e

File tree

1 file changed

+35
-4
lines changed
  • 04_REACT/ecommerce-app/src/components

1 file changed

+35
-4
lines changed

04_REACT/ecommerce-app/src/components/Header.js

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,41 @@ const Header = () => {
7474
</div>
7575
</div>
7676
</header>
77-
<header className='py-3 bg-[#232f3e]'>
78-
<div className='flex text-white'>
79-
<div className='w-[30%]'></div>
77+
<header className='py-3 bg-[#232f3e] flex justify-evenly text-white'>
78+
<div className='flex justify-evenly w-[30%] text-white '>
79+
<div className='ml-20'><img src='images/menu.svg' alt='menu' className='h-[30px] w-[30px]'/></div>
80+
<div className='dropdown flex w-[65%] justify-between relative inline-block text-left '>
81+
<button
82+
id="dropdownDefaultButton"
83+
data-dropdown-toggle="dropdown"
84+
class="text-white bg-[#232f3e] uppercase hover:bg-[#232f3e] focus:outline-none font-medium rounded-lg text-sm px-4 py-2.5 text-center inline-flex items-center "
85+
type="button">Shop Categories
86+
</button>
87+
<svg class="w-4 h-4 mr-5 mt-3"
88+
aria-hidden="true" fill="none"
89+
stroke="currentColor"
90+
viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
91+
<path stroke-linecap="round" stroke-linejoin="round"
92+
stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>
93+
<div id="dropdown" class="z-10 hidden bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700">
94+
<ul class="py-2 text-sm text-gray-700 dark:text-gray-200" aria-labelledby="dropdownDefaultButton">
95+
<li>
96+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Dashboard</a>
97+
</li>
98+
<li>
99+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Settings</a>
100+
</li>
101+
<li>
102+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Earnings</a>
103+
</li>
104+
<li>
105+
<a href="#" class="block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white">Sign out</a>
106+
</li>
107+
</ul>
108+
</div>
109+
</div>
110+
<div className='h-[100%] bg-white ring-1 ring-gray-100 shadow-2xl'></div>
111+
</div>
80112
<div className='flex justify-start items-center w-[70%]'>
81113
<NavLink to="/"
82114
className='px-4 text-[14px] leading-[14px] tracking-[0.3] font-[400] uppercase hover:text-gray-300'>
@@ -91,7 +123,6 @@ const Header = () => {
91123
className='px-4 text-[14px] leading-[14px] tracking-[0.3] font-[400] uppercase hover:text-gray-300'>
92124
Contact</NavLink>
93125
</div>
94-
</div>
95126
</header>
96127
</>
97128
)

0 commit comments

Comments
 (0)