Changes to playmate.scroll.pub

root
root
26 days ago
Initial commit
body.html
Changed around line 1
+
+

Playmate

+

Find your perfect partner for badminton or table tennis.

+
+
+
+
+

Create a Game

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Available Games

+
    +
    +
    +
    +
    +

    Playmate - Connecting players since 2023

    +
    index.scroll
    Changed around line 1
    + buildHtml
    + baseUrl https://playmate.scroll.pub
    + metaTags
    + editButton /edit.html
    + title Playmate - Find Your Game Partner
    + style.css
    + body.html
    + script.js
    readme.scroll
    Changed around line 1
    + # playmate.scroll.pub
    + Website generated by DeepSeek from prompt: i want a site where i can find partner to play in badminton or table tennis, i want to have possibility to create game in a certain time and place for different levels
    script.js
    Changed around line 1
    + document.addEventListener('DOMContentLoaded', function() {
    + const gameForm = document.getElementById('game-form');
    + const gamesList = document.getElementById('games');
    +
    + gameForm.addEventListener('submit', function(e) {
    + e.preventDefault();
    +
    + const sport = document.getElementById('sport').value;
    + const date = document.getElementById('date').value;
    + const time = document.getElementById('time').value;
    + const location = document.getElementById('location').value;
    + const level = document.getElementById('level').value;
    +
    + const gameItem = document.createElement('li');
    + gameItem.innerHTML = `
    + ${sport.toUpperCase()}
    + Date: ${date} | Time: ${time}
    + Location: ${location}
    + Level: ${level}
    + `;
    +
    + gamesList.appendChild(gameItem);
    + gameForm.reset();
    + });
    + });
    style.css
    Changed around line 1
    + :root {
    + --primary-color: #4CAF50;
    + --secondary-color: #45a049;
    + --background-color: #f4f4f4;
    + --text-color: #333;
    + --white: #fff;
    + }
    +
    + body {
    + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    + margin: 0;
    + padding: 0;
    + background-color: var(--background-color);
    + color: var(--text-color);
    + line-height: 1.6;
    + }
    +
    + header {
    + background-color: var(--primary-color);
    + color: var(--white);
    + padding: 2rem;
    + text-align: center;
    + }
    +
    + h1 {
    + margin: 0;
    + font-size: 2.5rem;
    + }
    +
    + main {
    + padding: 2rem;
    + max-width: 800px;
    + margin: 0 auto;
    + }
    +
    + section {
    + background-color: var(--white);
    + padding: 1.5rem;
    + margin-bottom: 2rem;
    + border-radius: 8px;
    + box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    + }
    +
    + form {
    + display: grid;
    + grid-gap: 1rem;
    + }
    +
    + label {
    + font-weight: bold;
    + }
    +
    + input, select, button {
    + padding: 0.5rem;
    + border: 1px solid #ddd;
    + border-radius: 4px;
    + }
    +
    + button {
    + background-color: var(--primary-color);
    + color: var(--white);
    + border: none;
    + cursor: pointer;
    + transition: background-color 0.3s ease;
    + }
    +
    + button:hover {
    + background-color: var(--secondary-color);
    + }
    +
    + #games {
    + list-style: none;
    + padding: 0;
    + }
    +
    + #games li {
    + background-color: var(--white);
    + padding: 1rem;
    + margin-bottom: 1rem;
    + border-radius: 4px;
    + box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    + }
    +
    + @media (max-width: 600px) {
    + h1 {
    + font-size: 2rem;
    + }
    +
    + main {
    + padding: 1rem;
    + }
    + }