JSFiddle - React, Tailwind, and code Playground

by der_robert

HTML

<!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Mini UI Bar</title>
  <style>
    body {
      margin: 0;
      background-color: #f0f2f5;
      font-family: 'Segoe UI', sans-serif;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
    }

    .mini-bar {
      width: 150px;
      height: 50px;
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 8px;
      box-sizing: border-box;
    }

    .logo {
      font-size: 20px;
      font-weight: bold;
      color: #2c3e50;
    }

    .icon-button {
      background: none;
      border: none;
      padding: 6px;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .icon-button:hover {
      background: #e0ecf8;
    }

    .icon-button svg {
      width: 20px;
      height: 20px;
      fill: #2c3e50;
    }
  </style>
</head>
<body>

  <div class="mini-bar">
    <div class="logo">🎯</div>

    <!-- Max Button -->
    <button class="icon-button" title="Maximieren">
      <svg viewBox="0 0 24 24">
        <path d="M7 14H5v5h5v-2H7v-3zm0-4h2V7h3V5H7v5zm10 4h-2v3h-3v2h5v-5zm-2-7v2h3v3h2V5h-5z"/>
      </svg>
    </button>

    <!-- Verschieben Button -->
    <button class="icon-button" title="Verschieben">
      <svg viewBox="0 0 24 24">
        <path d="M7 10c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm10-8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"/>
      </svg>
    </button>
  </div>

</body>
</html>