text: (()=>{"use strict";const e=e=>{const t=document.createElement("p");return t.textContent=e,t},t=()=>{const t=document.getElementById("main");t.textContent="",t.appendChild((()=>{const t=document.createElement("div");t.classList.add("home");const n=document.createElement("img");return n.src="images/chef.png",n.alt="Chef",t.appendChild(e("Best colombian beans")),t.appendChild(e("Made with love")),t.appendChild(n),t.appendChild(e("Order online or visit us!")),t})())},n=(e,t)=>{const n=document.createElement("div");n.classList.add("menu-item");const a=document.createElement("h2");a.textContent=e;const d=document.createElement("p");d.textContent=t;const c=document.createElement("img");return c.src=`images/beans/${e.toLowerCase()}.jpg`,c.alt=`${e}`,n.appendChild(c),n.appendChild(a),n.appendChild(d),n},a=document.createElement("header"),d=e=>{document.querySelectorAll(".button-nav").forEach((e=>{void 0!==e&&e.classList.remove("active")})),e.classList.add("active")};(()=>{const e=document.getElementById("content");e.appendChild((()=>{a.classList.add("header");const e=document.createElement("h1");return e.classList.add("restaurant-name"),e.textContent="Frijolada",a.appendChild(e),a})()),e.appendChild((()=>{const e=document.createElement("main");return e.classList.add("main"),e.setAttribute("id","main"),e})()),e.appendChild((()=>{const e=document.createElement("footer");e.classList.add("footer");const t=document.createElement("p");t.textContent="Copyright © 2021 Carlos Gutierrez";const n=document.createElement("a");n.href="https://github.com/cgcarlosg";const a=document.createElement("i");return a.classList.add("fab"),a.classList.add("fa-github"),n.appendChild(a),e.appendChild(t),e.appendChild(n),e})()),a.appendChild((()=>{const e=document.createElement("nav"),a=document.createElement("button");a.classList.add("button-nav"),a.textContent="Home",a.addEventListener("click",(e=>{e.target.classList.contains("active")||(d(a),t())}));const c=document.createElement("button");c.classList.add("button-nav"),c.textContent="Menu",c.addEventListener("click",(e=>{e.target.classList.contains("active")||(d(c),(()=>{const e=document.getElementById("main");e.textContent="",e.appendChild((()=>{const e=document.createElement("div");return e.classList.add("menu"),e.appendChild(n("Bacony","Beans with fried bacon")),e.appendChild(n("Piggy","Beans with fried pig")),e.appendChild(n("Traditional","Beans with steak")),e.appendChild(n("Special","Beans with mix of beacon and pig")),e.appendChild(n("Familiar","Beans in a huge pot for the whole family")),e.appendChild(n("Gourmet","Selected beans and species added")),e.appendChild(n("Creamy","Beans made soup with rice and avocato")),e.appendChild(n("Steaky","Beans with multiple variety of steaks")),e})())})())}));const o=document.createElement("button");return o.classList.add("button-nav"),o.textContent="Contact",o.addEventListener("click",(e=>{e.target.classList.contains("active")||(d(o),(()=>{const e=document.getElementById("main");e.textContent="",e.appendChild((()=>{const e=document.createElement("div");e.classList.add("contact");const t=document.createElement("p");t.textContent="Phone: 123 456 789";const n=document.createElement("p");n.textContent="Addres: Bogota Andinos Mall";const a=document.createElement("img");return a.src="images/restaurant-location.jpg",a.alt="Frijolada restaurant location",e.appendChild(t),e.appendChild(n),e.appendChild(a),e})())})())})),e.appendChild(a),e.appendChild(c),e.appendChild(o),e})()),d(document.querySelector(".button-nav")),t()})()})();