<nav x-data="{mobileMenu:false}">

    <div class="md:hidden flex justify-between bg-grey">

        <div>Website titel</div>

        <button @click="mobileMenu = ! mobileMenu" type="button" class="md:hidden p-2 hover:bg-gray-100" aria-controls="mobile-menu" aria-expanded="false">
            <span class="sr-only">Open main menu</span>

            <svg :class="mobileMenu ? 'hidden' : 'block'" class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
            </svg>

            <svg :class="mobileMenu ? '' : 'hidden'" class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
            </svg>
        </button>

    </div>

    <ul class="md:hidden flex flex-col" x-show="mobileMenu">
        <li><a href="#">menu item 1</a></li>
        <li><a href="#">menu item 2</a></li>
        <li><a href="#">menu item 3</a></li>
    </ul>

    <ul class="hidden md:flex justify-between flex-grow bg-grey p-4">
        <li><a href="#" title="Titel">Logo</a></li>
        <li><a href="#">Menu item 1</a></li>
        <li><a href="#">Menu item 2</a></li>
        <li><a href="#">Menu item 3</a></li>
    </ul>

</nav>
<nav x-data="{mobileMenu:false}">

{# MOBILE #}
  <div class="md:hidden flex justify-between bg-grey">

    <div>Website titel</div>

    {# Hamburger #}
    <button
      @click="mobileMenu = ! mobileMenu"
      type="button"
      class="md:hidden p-2 hover:bg-gray-100"
      aria-controls="mobile-menu" aria-expanded="false"
    >
      <span class="sr-only">Open main menu</span>
      {# burger icon #}
      <svg :class="mobileMenu ? 'hidden' : 'block'" class="h-6 w-6"
        xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
      </svg>
      {# close icon #}
      <svg :class="mobileMenu ? '' : 'hidden'" class="h-6 w-6"
        xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
      </svg>
    </button>
    {# /hamburger #}

  </div>

  {#  Mobile menu, show/hide based on menu state. #}
  <ul class="md:hidden flex flex-col" x-show="mobileMenu">
    <li><a href="#">menu item 1</a></li>
    <li><a href="#">menu item 2</a></li>
    <li><a href="#">menu item 3</a></li>
  </ul>
{# / MOBILE #}

{# LARGE #}
  <ul class="hidden md:flex justify-between flex-grow bg-grey p-4">
    <li><a href="#" title="Titel">Logo</a></li>
    <li><a href="#">Menu item 1</a></li>
    <li><a href="#">Menu item 2</a></li>
    <li><a href="#">Menu item 3</a></li>
  </ul>
{# LARGE #}
</nav>
{
  "title": "Lorem ipsum dolor sit amet",
  "titlelong": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor",
  "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
  "date": "2. januar 2018",
  "data-small": "05/08/2019",
  "user": "Steve Jobs",
  "email": "steve@apple.com",
  "url": "https://thememachine.io",
  "streetaddress": "RÃ¥dhuspladsen 1",
  "zip": 1321,
  "city": "kbh",
  "phone": "+45 12 13 14 15",
  "labeltext": "Label",
  "linktext": "Click !",
  "items": [
    {
      "item": null,
      "title": "This is a title for an item",
      "url": "https://test.dk",
      "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod"
    },
    {
      "item": null,
      "title": "This is sanother title for another item",
      "url": "https://test.dk",
      "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod"
    },
    {
      "item": null,
      "title": "This is a third title",
      "url": "https://test.dk",
      "text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod"
    }
  ]
}

No notes defined.