gpt-4o-mini-2024-07-18· openai
from WildChat-4.8M
create HTML CSS JS code for A site that displays football match results
- User
create HTML CSS JS code for A site that displays football match results
- Assistant
Sure! Below is a simple HTML, CSS, and JavaScript code snippet for a website that displays football match results. This example includes a basic structure with some sample data. You can expand on this as needed.
HTML (index.html)
html<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Football Match Results</title> <link rel="stylesheet" href="styles.css"> </head> <body> <header> <h1>Football Match Results</h1> </header> <main> <div id="resultsContainer"> <!-- Match results will be displayed here --> </div> <button id="loadMoreButton">Load More Results</button> </main> <footer> <p>© 2023 Football Match Results</p> </footer> <script src="script.js"></script> </body> </html>CSS (styles.css)
cssbody { font-family: Arial, sans-serif; background-color: #f4f4f4; text-align: center; margin: 0; padding: 20px; } header { background: #35424a; color: #ffffff; padding: 10px 0; } main { margin: 20px 0; } .match { background: #ffffff; margin: 10px auto; padding: 15px; border-radius: 5px; width: 300px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .load-more { background: #35424a; color: #ffffff; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; } .load-more:hover { background: #4caf50; transition: background-color 0.3s; }JavaScript (script.js)
javascript