navbar4.js 2.63 KB
Newer Older
EnesKarakas's avatar
EnesKarakas committed
1
import React from "react";
EnesKarakas's avatar
EnesKarakas committed
2

EnesKarakas's avatar
EnesKarakas committed
3
import PropTypes from "prop-types";
EnesKarakas's avatar
EnesKarakas committed
4

EnesKarakas's avatar
EnesKarakas committed
5
import "./navbar4.css";
EnesKarakas's avatar
EnesKarakas committed
6
7
8
9
10
11
12
13
14
15
16
17

const Navbar4 = (props) => {
  return (
    <div className={`navbar4-container ${props.rootClassName} `}>
      <header data-thq="thq-navbar" className="navbar4-navbar-interactive">
        <img
          alt={props.logoAlt}
          src="/external/whatsapp%20bild%202024-03-19%20um%2017.00.17_eac967f9-1500h.jpg"
          className="navbar4-image1"
        />
        <div data-thq="thq-navbar-nav" className="navbar4-desktop-menu">
          <nav className="navbar4-links">
EnesKarakas's avatar
EnesKarakas committed
18
19
20
21
22
23
            <span
              className="thq-link thq-body-small"
              onClick={() => (window.location.href = "/")}
            >
              {props.link1}
            </span>
Weiser's avatar
Updates    
Weiser committed
24
25
            <span className="thq-link thq-body-small"
            onClick={() => (window.location.href = "/about")}>{props.link2}</span>
Weiser's avatar
update    
Weiser committed
26
27
                        <span className="thq-link thq-body-small"
            onClick={() => (window.location.href = "/weatherforecast")}>{props.link3}</span>
EnesKarakas's avatar
EnesKarakas committed
28
29
30
31
32
33
            <span
              className="thq-link thq-body-small"
              onClick={() => (window.location.href = "/data")}
            >
              {props.link4}
            </span>
Weiser's avatar
Updates    
Weiser committed
34
35
            <span className="thq-link thq-body-small"
            onClick={() => (window.location.href = "/historicalweather")}>{props.link5}</span>
EnesKarakas's avatar
EnesKarakas committed
36
37
38
39
          </nav>
        </div>
      </header>
    </div>
EnesKarakas's avatar
EnesKarakas committed
40
41
  );
};
EnesKarakas's avatar
EnesKarakas committed
42
43

Navbar4.defaultProps = {
Weiser's avatar
Updates    
Weiser committed
44
45
  link5: "Historical weather",
  link4: "Current Weather",
Weiser's avatar
update    
Weiser committed
46
  link3: "Weather forecast",
EnesKarakas's avatar
EnesKarakas committed
47
48
49
  link2: "About",
  link1: "Home",
  logoAlt: "Weather App",
EnesKarakas's avatar
EnesKarakas committed
50
  logoSrc:
EnesKarakas's avatar
EnesKarakas committed
51
52
53
54
55
    "https://aheioqhobo.cloudimg.io/v7/_playground-bucket-v2.teleporthq.io_/84ec08e8-34e9-42c7-9445-d2806d156403/fac575ac-7a41-484f-b7ac-875042de11f8?org_if_sml=1&force_format=original",
  imageSrc: "23887698-7562-4cff-bf5f-d07a1767f79b",
  imageAlt: "image",
  imageSrc1: "23887698-7562-4cff-bf5f-d07a1767f79b",
  imageAlt1: "image",
EnesKarakas's avatar
EnesKarakas committed
56
  image1Src:
EnesKarakas's avatar
EnesKarakas committed
57
58
59
    "https://aheioqhobo.cloudimg.io/v7/_playground-bucket-v2.teleporthq.io_/84ec08e8-34e9-42c7-9445-d2806d156403/fac575ac-7a41-484f-b7ac-875042de11f8?org_if_sml=1&force_format=original",
  rootClassName: "",
};
EnesKarakas's avatar
EnesKarakas committed
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

Navbar4.propTypes = {
  link5: PropTypes.string,
  link4: PropTypes.string,
  link3: PropTypes.string,
  link2: PropTypes.string,
  link1: PropTypes.string,
  logoAlt: PropTypes.string,
  logoSrc: PropTypes.string,
  action2: PropTypes.string,
  action1: PropTypes.string,
  imageSrc: PropTypes.string,
  imageAlt: PropTypes.string,
  imageSrc1: PropTypes.string,
  imageAlt1: PropTypes.string,
  image1Src: PropTypes.string,
  rootClassName: PropTypes.string,
EnesKarakas's avatar
EnesKarakas committed
77
};
EnesKarakas's avatar
EnesKarakas committed
78

EnesKarakas's avatar
EnesKarakas committed
79
export default Navbar4;