Skip to content

Commit

Permalink
fixed search icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehtarishita committed Oct 18, 2024
1 parent c02f1be commit f0901c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
3 changes: 2 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
#google_translate_element {
position: absolute;
/* top: 20px; Space from the top */
right: 20px; /* Space from the right */
left: 20px; /* Space from the right */
top: 60px;
background-color: #3b82f6;
padding: 10px 15px; /* Padding for better spacing inside the button */
border-radius: 8px; /* Rounded corners */
Expand Down
1 change: 1 addition & 0 deletions frontend/src/Pages/Herosection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const Herosection = () => {

<div className='relative z-50 flex items-center justify-between'>
<div><Navbar /></div>
<div><HamburgerMenu/></div>
</div>
<h1 className='pl-4 text-4xl font-black text-center text-white '>Namaste !! Yatree </h1>
<div className="relative flex items-center justify-center bg-center bg-cover herosection">
Expand Down
21 changes: 1 addition & 20 deletions frontend/src/Pages/hamburger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,26 +215,7 @@ const Hamburger = () => {

return (
<div>
<HamburgerContainer onClick={toggleMenu} aria-label="Toggle Menu" role="button">
<HamburgerIcon>
<Bar1 open={open} />
<Bar2 open={open} />
<Bar3 open={open} />
</HamburgerIcon>
</HamburgerContainer>

{open && <BackButton onClick={handleBack} />}

<Menu open={open}>
<MenuItem href="#back" onClick={handleBack} style={{ fontSize: '30px' }}>
</MenuItem>
<MenuItem className="cursor-pointer " onClick={HomeClick}>Home</MenuItem>
<MenuItem className="cursor-pointer " onClick={SettingsClick}>Settings</MenuItem>
<MenuItem className="cursor-pointer " onClick={helpClick}>Help</MenuItem>
<MenuItem className="cursor-pointer " onClick={aboutClick}>About</MenuItem>
<MenuItem className="cursor-pointer " onClick={Contactclick}>Contact</MenuItem>
</Menu>


<SearchContainer>
<SearchIcon onClick={toggleSearch} />
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useState } from 'react';
import { FaBars, FaTimes, FaUser, FaMoneyCheckAlt, FaHandsHelping, FaBell, FaCogs, FaInfoCircle } from 'react-icons/fa';
import Hamburger from '../Pages/hamburger';

const Navbar = () => {
const [isOpen, setIsOpen] = useState(false);
Expand Down

0 comments on commit f0901c4

Please sign in to comment.