Stranica

mail@pastecode.io avatar
unknown
plain_text
a year ago
3.7 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;
      justify-content: space-between;
      padding: 0 20px;
    }

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

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

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

    #orange-buttons {
      display: flex;
      align-items: center;
      gap: 3cm;
      padding: 20px;
      margin-left: 1cm;
    }

    .orange-button {
      padding: 10px 15px;
      color: white;
      background-color: orange;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 20px;
      font-weight: bold;
    }

    .bubble-container {
      margin-top: 10px;
      margin-left: 1.5cm;
    }

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

    .bubble {
      display: inline-block;
      padding: 5px 10px;
      border-radius: 20px;
      background-color: red;
      color: white;
      font-size: 18px;
      max-width: max-content;
      margin-right: 0.5cm;
    }

    .bubble-row .bubble:first-child {
      background-color: black;
    }
  </style>
</head>
<body>
  <div id="black-section">
    <div id="algebra-container">
      <div id="algebra-text">Algebra</div>
      <button class="black-button">Naslovna</button>
      <button class="black-button">Kolegiji</button>
      <button class="black-button">Ja</button>
    </div>
  </div>

  <div id="orange-buttons">
    <button class="orange-button" id="profesori-text">Profesori</button>
    <button class="orange-button" id="kolegiji-text">Kolegiji</button>
    <button class="orange-button" id="uredi-button">Uredi</button>
  </div>

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

  <script>
    const buttonUredi = document.getElementById("uredi-button");
    buttonUredi.addEventListener("click", () => {
      buttonUredi.textContent = buttonUredi.textContent === "Uredi" ? "Spremi" : "Uredi";
    });
  </script>
</body>
</html>