This commit is contained in:
thatscringebro 2023-10-11 17:32:55 -04:00
parent 9224145060
commit dbbb7a0633
2 changed files with 156 additions and 0 deletions

145
index.html Normal file
View File

@ -0,0 +1,145 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ASCII RACER</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h2>
<pre>
_____ __________________ .___.___ __________ _____ _________ _____________________
/ _ \ / _____/\_ ___ \| | | \______ \ / _ \ \_ ___ \\_ _____/\______ \
/ /_\ \ \_____ \ / \ \/| | | | _/ / /_\ \/ \ \/ | __)_ | _/
/ | \/ \\ \___| | | | | \/ | \ \____| \ | | \
\____|__ /_______ / \______ /___|___| |____|_ /\____|__ /\______ /_______ / |____|_ /
\/ \/ \/ \/ \/ \/ \/ \/
</pre>
</h2>
</header>
<section class="game-description">
<h2>About the Game</h2>
<p>ASCII RACER is an exciting top-down racing game created entirely with ASCII characters. Race against the clock and your opponents on a track filled with challenges and obstacles.</p>
</section>
<section class="game-media">
<h2>Game Media</h2>
<div class="screenshot">
<img src="screenshot1.jpg" alt="Screenshot 1">
</div>
<div class="screenshot">
<img src="screenshot2.jpg" alt="Screenshot 2">
</div>
<div class="video">
<iframe src="https://www.youtube.com/embed/your-video-id" frameborder="0" allowfullscreen></iframe>
</div>
</section>
<section class="download">
<h2>Download the Game</h2>
<p>Download ASCII RACER now and start racing in a world of ASCII art!</p>
<a href="download-link-here" class="download-button">Download Now</a>
</section>
<footer>
<p>&copy; 2023 ASCII RACER | All rights reserved</p>
</footer>
</body>
</html>
<style>
@font-face {
font-family: 'Cascadia';
src: url('cascaydia.otf') format('opentype');
/* You may need to adjust the file path above to point to your cascaydia.otf file */
}
/* Reset default styles */
body, h1, h2, p, img, iframe {
margin: 0;
padding: 0;
}
body {
font-family: 'Cascadia', monospace;
background-color: #f0f0f0;
}
header {
background-color: #333;
color: #fff;
text-align: center;
padding: 20px;
}
h1 {
font-size: 36px;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.game-description, .game-media, .download {
background-color: #fff;
margin: 20px;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
h2 {
font-size: 24px;
}
p {
font-size: 16px;
line-height: 1.5;
}
.screenshot, .video {
margin: 10px;
}
img {
max-width: 100%;
}
iframe {
width: 100%;
height: 400px;
}
.download-button {
display: inline-block;
padding: 10px 20px;
background-color: #333;
color: #fff;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
}
.download-button:hover {
background-color: #555;
}
footer {
text-align: center;
background-color: #333;
color: #fff;
padding: 10px 0;
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
.container {
margin: 10px;
}
.game-description, .game-media, .download {
margin: 10px 0;
}
}
</style>

11
serve.py Normal file
View File

@ -0,0 +1,11 @@
import http.server
import socketserver
PORT = 8002
Handler = http.server.SimpleHTTPRequestHandler
httpd = socketserver.TCPServer(("", PORT), Handler)
print("Serving at http://localhost:{}".format(PORT))
httpd.serve_forever()