Ignore:
Timestamp:
09/17/22 01:24:24 (2 years ago)
Author:
Marko <Marko@…>
Branches:
master
Children:
5201690
Parents:
775e15e
Message:

Added more components

Location:
phonelux-frontend/src/components/HeaderComponent
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • phonelux-frontend/src/components/HeaderComponent/HeaderComponent.css

    r775e15e r7e88e46  
    99    height: 200px;
    1010    margin-top: -65px;
     11    cursor: pointer;
    1112}
    1213
  • phonelux-frontend/src/components/HeaderComponent/HeaderComponent.js

    r775e15e r7e88e46  
    66
    77export default class HeaderComponent extends Component {
     8
     9
     10  redirectToHomepage = () =>{
     11    window.location.href = "/"
     12  }
    813  render() {
    914    return (
     
    1318      </div>
    1419      <div className='header-component'>
    15           <Link style={{ textDecoration: 'none' }} to={"/"}>
    16         <img src={logo}></img>
    17         </Link>
     20          {/* <Link style={{ textDecoration: 'none' }} to={"/"}> */}
     21        <img className='phonelux-logo' onClick={this.redirectToHomepage} src={logo}></img>
     22        {/* </Link> */}
    1823      </div>
    1924      </>
Note: See TracChangeset for help on using the changeset viewer.