Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from "react";
- class Sidebar extends Component {
- state = {
- hovered: false
- };
- onMouseOver = e => {
- this.setState({ hovered: true });
- };
- render() {
- const { hovered } = this.state;
- if (hovered) {
- return (
- <div
- className="flex-container justify-content-end"
- style={{
- display: "flex",
- textDecoration: "none",
- listStyleType: "none"
- }}
- onMouseOver={this.onMouseOver}
- >
- <div className="col-sm-12 col-md-4">
- <ul className="nav flex-column nav-pills">
- <li
- className="nav-item"
- style={{ padding: "0.5em", backgroundColor: "#809fff" }}
- >
- {" "}
- <a
- href="prva_divizija.html"
- style={{
- backgroundColor: "#809fff",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- onMouseOver={this.onMouseOver}
- >
- PRVA DIVIZIJA
- </a>
- </li>
- <li
- className="nav-item"
- style={{
- padding: "0.5em"
- }}
- >
- {" "}
- <a
- href="druga_divizija.html"
- style={{
- backgroundColor: "#809fff",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- onMouseOver={this.onMouseOver}
- >
- DRUGA DIVIZIJA
- </a>
- </li>
- <li className="nav-item" style={{ padding: "0.5em" }}>
- <a
- href="treca_divizija.html"
- style={{
- backgroundColor: "#809fff",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- onMouseOver={this.onMouseOver}
- >
- TRECA DIVIZIJA
- </a>
- </li>
- <li className="nav-item" style={{ padding: "0.5em" }}>
- <a
- href="cetvrta_divizija.html"
- style={{
- backgroundColor: "#809fff",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- onMouseOver={this.onMouseOver}
- >
- CETVRTA DIVIZIJA
- </a>
- </li>
- <li className="nav-item" style={{ padding: "0.5em" }}>
- <a
- href="peta_divizija.html"
- style={{
- backgroundColor: "#809fff",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- onMouseOver={this.onMouseOver}
- >
- PETA DIVIZIJA
- </a>
- </li>
- <li className="nav-item" style={{ padding: "0.5em" }}>
- <a
- href="divizija_tuzla.html"
- style={{
- backgroundColor: "#809fff",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- onMouseOver={this.onMouseOver}
- >
- DIVIZIJA TUZLA
- </a>
- </li>
- <li className="nav-item" style={{ padding: "0.5em" }}>
- <a
- href="divizija_sarajevo.html"
- style={{
- backgroundColor: "#ff6666",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- onMouseOver={this.onMouseOver}
- >
- DIVIZIJA SARAJEVO
- </a>
- </li>
- <li
- className="nav-item"
- style={{
- padding: "0.5em"
- }}
- >
- <a
- href="divizija_bugojno.html"
- style={{
- backgroundColor: "#ff6666",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- onMouseOver={this.onMouseOver}
- >
- DIVIZIJA BUGOJNO
- </a>
- </li>
- </ul>
- </div>
- </div>
- );
- } else {
- return (
- <div
- className="flex-container justify-content-end"
- style={{
- display: "flex",
- textDecoration: "none",
- listStyleType: "none"
- }}
- >
- <div className="col-sm-12 col-md-4">
- <ul className="nav flex-column nav-pills">
- <li
- className="nav-item"
- style={{ padding: "0.5em" }}
- >
- {" "}
- <a
- href="prva_divizija.html"
- style={{
- backgroundColor: "#0033cc",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- >
- PRVA DIVIZIJA
- </a>
- </li>
- <li
- className="nav-item"
- style={{
- padding: "0.5em"
- }}
- >
- {" "}
- <a
- href="druga_divizija.html"
- style={{
- backgroundColor: "#0033cc",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- >
- DRUGA DIVIZIJA
- </a>
- </li>
- <li className="nav-item" style={{ padding: "0.5em" }}>
- <a
- href="treca_divizija.html"
- style={{
- backgroundColor: "#0033cc",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- >
- TRECA DIVIZIJA
- </a>
- </li>
- <li className="nav-item" style={{ padding: "0.5em" }}>
- <a
- href="cetvrta_divizija.html"
- style={{
- backgroundColor: "#0033cc",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- >
- CETVRTA DIVIZIJA
- </a>
- </li>
- <li className="nav-item" style={{ padding: "0.5em" }}>
- <a
- href="peta_divizija.html"
- style={{
- backgroundColor: "#0033cc",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- >
- PETA DIVIZIJA
- </a>
- </li>
- <li className="nav-item" style={{ padding: "0.5em" }}>
- <a
- href="divizija_tuzla.html"
- style={{
- backgroundColor: "#CC0000",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- >
- DIVIZIJA TUZLA
- </a>
- </li>
- <li className="nav-item" style={{ padding: "0.5em" }}>
- <a
- href="divizija_sarajevo.html"
- style={{
- backgroundColor: "#CC0000",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- >
- DIVIZIJA SARAJEVO
- </a>
- </li>
- <li
- className="nav-item"
- style={{
- padding: "0.5em"
- }}
- >
- <a
- href="divizija_bugojno.html"
- style={{
- backgroundColor: "#CC0000",
- borderRadius: "15px",
- color: "white"
- }}
- className="nav-link"
- >
- DIVIZIJA BUGOJNO
- </a>
- </li>
- </ul>
- </div>
- </div>
- );
- }
- }
- }
- export default Sidebar;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement