main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
571 bytes
|
Rev | Line | |
---|
[0c6b92a] | 1 | import React from "react";
|
---|
| 2 | import { useNavigate } from "react-router-dom";
|
---|
[79a0317] | 3 | import novo_logo from "../../assets/novo_logo_nobg_cropped.png";
|
---|
[0c6b92a] | 4 | import styles from "./Logo.module.css";
|
---|
| 5 |
|
---|
| 6 | function Logo({ position = "fixed" }) {
|
---|
| 7 | const navigate = useNavigate();
|
---|
| 8 |
|
---|
| 9 | const handleClick = () => {
|
---|
| 10 | navigate("/");
|
---|
| 11 | };
|
---|
| 12 |
|
---|
| 13 | return (
|
---|
| 14 | <div
|
---|
| 15 | className={position === "fixed" ? styles.fixedLogoContainer : styles.inlineLogoContainer}
|
---|
| 16 | onClick={handleClick}
|
---|
| 17 | >
|
---|
[79a0317] | 18 | <img src={novo_logo} alt="Logo" className={styles.logoImage} />
|
---|
[0c6b92a] | 19 | </div>
|
---|
| 20 | );
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | export default Logo;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.