Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
5.1 kB
2
Indexable
Never
<!DOCTYPE html>
<html>
<head>
  <title>Simple Webpage</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      background-color: orange;
    }

    #black-section {
      height: 3cm;
      background-color: black;
      display: flex;
      align-items: center;
      padding: 0 20px;
    }

    #algebra-container {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    #algebra-text {
      color: white;
      font-size: 20px;
    }

    #profesori-text {
      color: white;
      font-size: 20px;
      font-weight: bold;
      position: absolute;
      top: 4cm;
      left: 1.5cm;
    }

    #uredi-button {
      color: white;
      font-size: 20px;
      font-weight: bold;
      background-color: orange;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      padding: 10px 15px;
      top: 4cm;
      left: calc(1.5cm + 4cm);
    }

    .button {
      padding: 10px 15px;
      background-color: black;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .bubble-container {
	position: absolute;
      margin-top: 1cm;
      margin-left: 1.5cm;
    }

    .bubble-row {
      display: flex;
      gap: 10px;
      margin-bottom: 10px;
    }

    .bubble {
      display: inline-block;
      position: relative;
      padding: 5px 10px;
      border-radius: 20px;
      background-color: red;
      color: white;
      font-size: 18px;
    }

    .bubble::before {
      content: '';
      position: absolute;
      top: -0.2cm;
      left: -0.2cm;
      width: 0;
      height: 0;
      background-color: blue;
      border-radius: 50%;
      transition: width 0.2s ease, height 0.2s ease;
    }

    .bubble.show-circle::before {
      width: 0.4cm;
      height: 0.4cm;
    }

    .bubble-row .bubble:first-child {
      background-color: black;
    }

    /* New styles for hidden buttons */
    #hidden-buttons {
      display: none; /* Hidden by default */
      margin-top: 0.5cm;
	  margin-left: 0.4cm;
    }

    #hidden-buttons .button {
      background-color: orange;
      color: white;
      font-size: 10px;
      padding: 8px 15px;
      border-radius: 5px;
      margin-left: 1cm;
    }

    /* Styles for orange buttons */
    .orange-buttons {
      margin-top: 2cm;
      display: flex;
      gap: 20px;
	  margin-left: 1.5cm;
    }

    .orange-button {
      padding: 10px 15px;
      background-color: orange;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
  </style>
</head>
<body>
  <div id="black-section">
    <div id="algebra-container">
      <div id="algebra-text">Algebra</div>
      <button class="button">Naslovna</button>
      <button class="button">Kolegiji</button>
      <button class="button">Ja</button>
      
    </div>
  </div>

  <!-- Hidden buttons group -->
  <div id="hidden-buttons">
    <button class="button">Novi profesori</button>
    <button class="button">Novi kolegiji</button>
  </div>

  <!-- Orange buttons -->
  <div class="orange-buttons">
    <div class="orange-button">Profesori</div>
	<button id="uredi-button" class="button">Uredi</button>
    <div class="orange-button">Kolegiji</div>
  </div>

  <div class="bubble-container">
    <div class="bubble-row">
      <div class="bubble">Pero Perić</div>
      <div class="bubble">Baze Podataka 1</div>
      <div class="bubble">Baze Podataka 2</div>
      <div class="bubble">Baze Podataka 3</div>
    </div>
    <div class="bubble-row">
      <div class="bubble">Marko Mandić</div>
      <div class="bubble">Matematika 1</div>
      <div class="bubble">Matematika 2</div>
    </div>
    <div class="bubble-row">
      <div class="bubble">Ana Anić</div>
      <div class="bubble">Programiranje 1</div>
      <div class="bubble">Programiranje 2</div>
      <div class="bubble">Napredno Programiranje</div>
    </div>
    <div class="bubble-row">
      <div class="bubble">Zoran Zorić</div>
      <div class="bubble">Web programiranje 1</div>
      <div class="bubble">Web programiranje 2</div>
      <div class="bubble">HTML 3</div>
    </div>
    <div class="bubble-row">
      <div class="bubble">Maja Majić</div>
      <div class="bubble">Engleski 1</div>
      <div class="bubble">Engleski 2</div>
      <div class="bubble">Engleski 3</div>
    </div>
  </div>

  <script>
    const buttonUredi = document.getElementById("uredi-button");
    const hiddenButtons = document.getElementById("hidden-buttons");
    const bubbles = document.querySelectorAll(".bubble");

    buttonUredi.addEventListener("click", () => {
      buttonUredi.textContent = buttonUredi.textContent === "Uredi" ? "Spremi" : "Uredi";
      hiddenButtons.style.display = buttonUredi.textContent === "Uredi" ? "none" : "block";
      bubbles.forEach((bubble) => bubble.classList.toggle("show-circle"));
    });
  </script>
</body>
</html>