no longer trying to make it look like the tanki main menu
This commit is contained in:
Currency
2024-12-12 13:18:22 +01:00
parent 5668babc44
commit 9e4933aad9
5 changed files with 438 additions and 504 deletions

View File

@@ -3,124 +3,89 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Archives</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #1a1a1a;
font-family: Arial, sans-serif;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.title {
font-size: 2em;
font-weight: bold;
margin-bottom: 20px;
text-transform: uppercase;
letter-spacing: 2px;
color: #FFD700;
}
.back-button {
font-size: 1em;
color: #fff;
background-color: #444;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
margin-bottom: 20px;
text-transform: uppercase;
font-weight: bold;
transition: background-color 0.3s;
}
.back-button:hover {
background-color: #666;
}
.container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-auto-rows: 300px;
gap: 20px;
padding: 20px;
scroll-snap-type: x mandatory;
width: 100%;
place-items: center; /* Center align incomplete rows */
}
.box {
background-color: #2c2f36;
border-radius: 10px;
display: flex;
align-items: start; /* Align items to the top */
justify-content: center; /* Center text horizontally */
text-align: center;
color: #fff;
scroll-snap-align: start;
padding: 15px;
position: relative;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-decoration: none;
background-size: cover;
background-position: center;
width: 100%; /* Makes the box occupy full grid cell */
height: 300px; /* Sets the box height */
}
.box .title {
font-size: 1em;
font-weight: bold;
background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
padding: 5px 10px;
border-radius: 5px;
position: absolute;
top: 10px; /* Positions title at the top of the box */
left: 50%;
transform: translateX(-50%); /* Centers title horizontally */
}
/* Hover Effect */
.box:hover {
transform: translateY(-10px);
box-shadow: 0 8px 15px rgba(0, 255, 127, 0.5);
background-color: #3a3f4b;
}
</style>
<title>Archives - Map Makers & Programmers</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./css/styles.css">
</head>
<body>
<div class="noise-overlay"></div>
<div class="title">Archives</div>
<button class="back-button" onclick="window.location.href='index.html'">Back</button>
<div class="overlay">
<div class="page-header">
<a href="index.html" class="back-button">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M15 18l-6-6 6-6" />
</svg>
Back
</a>
<h1 class="page-title">Archives</h1>
</div>
<div class="container">
<a href="https://github.com/MapMakersAndProgrammers/tanki-xml-maps" class="box" style="background-image: url('assets/xml.png');">
<div class="title">XML format maps</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/tanki-json-maps" class="box" style="background-image: url('assets/json.png');">
<div class="title">JSON format maps</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/tanki-bin-maps" class="box" style="background-image: url('assets/bin.png');">
<div class="title">BIN format maps</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/tanki-prop-libraries" class="box" style="background-image: url('assets/proplibrary.png');">
<div class="title">Prop Libraries</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/tanki-model-archive" class="box" style="background-image: url('assets/tankimodels.png');">
<div class="title">Tanki models</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/alternativa3d-archive" class="box" style="background-image: url('assets/a3d.png');">
<div class="title">Alternativa3D versions</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/alternativaphysics-archive" class="box" style="background-image: url('assets/ap.png');">
<div class="title">AlternativaPhysics versions</div>
</a>
<main class="archives-content">
<div class="archives-grid">
<a href="https://github.com/MapMakersAndProgrammers/tanki-xml-maps" class="archive-box" target="_blank" style="background-image: url('assets/xml.png');">
<div class="archive-overlay">
<h2>XML Format Maps</h2>
<p>Archive of XML format maps</p>
<span class="github-link">View on GitHub</span>
</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/tanki-json-maps" class="archive-box" target="_blank" style="background-image: url('assets/json.png');">
<div class="archive-overlay">
<h2>JSON Format Maps</h2>
<p>Archive of JSON format maps</p>
<span class="github-link">View on GitHub</span>
</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/tanki-bin-maps" class="archive-box" target="_blank" style="background-image: url('assets/bin.png');">
<div class="archive-overlay">
<h2>BIN Format Maps</h2>
<p>Archive of BIN format maps</p>
<span class="github-link">View on GitHub</span>
</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/tanki-prop-libraries" class="archive-box" target="_blank" style="background-image: url('assets/proplibrary.png');">
<div class="archive-overlay">
<h2>Prop Libraries</h2>
<p>Archive of TO prop libraries</p>
<span class="github-link">View on GitHub</span>
</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/tanki-model-archive" class="archive-box" target="_blank" style="background-image: url('assets/tankimodels.png');">
<div class="archive-overlay">
<h2>Tanki Models</h2>
<p>Archive of TO models</p>
<span class="github-link">View on GitHub</span>
</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/alternativa3d-archive" class="archive-box" target="_blank" style="background-image: url('assets/a3d.png');">
<div class="archive-overlay">
<h2>Alternativa3D Versions</h2>
<p>Archive of various version of Alternativa3D</p>
<span class="github-link">View on GitHub</span>
</div>
</a>
<a href="https://github.com/MapMakersAndProgrammers/alternativaphysics-archive" class="archive-box" target="_blank" style="background-image: url('assets/ap.png');">
<div class="archive-overlay">
<h2>AlternativaPhysics Versions</h2>
<p>Archive of various versions of AlternativaPhysics</p>
<span class="github-link">View on GitHub</span>
</div>
</a>
</div>
</main>
<footer class="site-footer">
<div class="footer-content">
<p>&copy; 2024 Map Makers & Programmers. A few rights reserved...</p>
</div>
</footer>
</div>
</body>
</html>