diff --git a/index - Copia.html b/index - Copia.html deleted file mode 100644 index c37ee9b..0000000 --- a/index - Copia.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - JMP GAMES - - - - - -
-
- -
- -
-

GAMES

-
-

The Drunken Beard

- -
-
-

In The Drunken Beard, you take the reins of a lively tavern where every pint tells a story. Brew craft beers, manage orders between thirsty dwarves and impatient adventurers, expand the inn and turn it into a legendary haven. Between secret recipes, rustic furnishings, and demanding customers, only the finest innkeeper will win over hearts and livers. Glory awaits.. one beer at a time! -

-
Demo available May 2025
-
Coming December 2025
- Steam -
-

- Searching Steam events... -

-
-
-
- -
-

JOIN THE NEWSLETTER

-

Subscribe for development updates and exclusive content

-
- - - - -
-
- -
-

THE TEAM

-
-
-

Michele Rossi

-

Developer

-
-
-

Mauro Cirafisi

-

Developer

-
-
-

Flavio Fabbrizi

-

CEO

-
-
-

Matteo Sonaglioni

-

2D & 3D Artist

-
-
-

Ambra Cirafisi

-

Concept Artist

-
-
-

Agnese Lucchese

-

Animator

-
-
-

Angelo Carnemolla

-

Sound Designer & Composer

-
-
-
- - - -
- - - - diff --git a/script - Copia.js b/script - Copia.js deleted file mode 100644 index 80d8b18..0000000 --- a/script - Copia.js +++ /dev/null @@ -1,111 +0,0 @@ -document.addEventListener('DOMContentLoaded', () => { - - // Newsletter form submission - const form = document.getElementById('newsletter-form'); - form.addEventListener('submit', async (e) => { - e.preventDefault(); - const email = e.target.querySelector('input[type="email"]').value; - const subscribe = e.target.querySelector('input[id="subscribe"]').value; - const message = e.target.querySelector('input[id="sub_message"]'); - message.setAttribute('type','text'); - message.type = 'text'; - const response = await fetch('/api/newsletter', { - method: 'POST', - body: JSON.stringify({ - "email": email, - "subscribe": subscribe - }), - headers: { - 'Content-Type': 'application/json' - } - }); - }); - - // Add subtle parallax effect to video background - document.addEventListener('mousemove', (e) => { - const mouseX = e.clientX / window.innerWidth; - const mouseY = e.clientY / window.innerHeight; - - const video = document.getElementById('background-video'); - video.style.transform = `scale(1.1) translate(${mouseX * -20}px, ${mouseY * -20}px)`; - }); - - - //retrieve steam events - (async () => { - const container = document.querySelector("#steam-events"); - console.log(container); - if (!container) return; - - const appId = container.dataset.appid || "3622810"; - const count = 5; - - async function loadSteamEvents({ appId, count }) { - const url = `/api/steamevents?appId=${appId}&count=${count}`; - const res = await fetch(url); - if (!res.ok) throw new Error("Unable to retrieve events"); - return res.json(); - } - - function escapeHTML(str) { - const p = document.createElement("p"); - p.textContent = str || ""; - return p.innerHTML; - } - - function renderSteamEvents(container, data) { - if (!data.items?.length) { - container.innerHTML = "

No event available.

"; - return; - } - - const list = document.createElement("ul"); - list.style.listStyle = "none"; - list.style.padding = "0"; - list.style.margin = "0"; - - data.items.forEach(item => { - const li = document.createElement("li"); - li.style.border = "1px solid #ddd"; - li.style.borderRadius = "12px"; - li.style.padding = "12px 16px"; - li.style.margin = "8px 0"; - li.style.background = "#fff"; - li.style.boxShadow = "0 1px 2px rgba(0,0,0,0.05)"; - - const title = document.createElement("a"); - title.href = item.url; - title.target = "_blank"; - title.rel = "noopener"; - title.textContent = item.title || "Update"; - - const meta = document.createElement("div"); - meta.style.fontSize = "12px"; - meta.style.opacity = "0.7"; - const d = item.date ? new Date(item.date).toLocaleString() : ""; - meta.textContent = [d, item.feedlabel].filter(Boolean).join(" • "); - - const excerpt = document.createElement("p"); - const short = (item.contents || "").replace(/\s+/g, " ").trim().slice(0, 240); - excerpt.innerHTML = escapeHTML(short) + (short.length >= 240 ? "…" : ""); - - li.appendChild(title); - li.appendChild(meta); - li.appendChild(excerpt); - list.appendChild(li); - }); - - container.innerHTML = ""; - container.appendChild(list); - } - - try { - const data = await loadSteamEvents({ appId, count }); - renderSteamEvents(container, data); - } catch (e) { - container.innerHTML = "

Error loading Steam events.

"; - console.error(e); - } - })(); - -}); \ No newline at end of file