templates for self-hosting game jams (or any other kind of jam tbh)

start adding stuff to game page

Changed files
+182
plain-html
+104
plain-html/css/style.css
···
margin-top: 5px;
font-size: .8em;
color: color-mix(in srgb-linear, var(--foreground), #FFFFFF 10%);
+
}
+
+
.game main {
+
display: grid;
+
grid-template-areas: "header header" "screenshots stuff";
+
text-align: left;
+
border-bottom: 1px var(--accent) solid;
+
padding-bottom: 0;
+
}
+
+
.game main h3 {
+
margin: 0;
+
}
+
+
.game .game-header {
+
margin: -20px -20px 0;
+
width: calc(100% + 40px);
+
border-bottom: 1px var(--accent) solid;
+
padding: 20px;
+
text-align: left;
+
grid-area: header;
+
}
+
+
.game .game-header .jamsub {
+
font-size: .8em;
+
font-style: italic;
+
color: color-mix(in srgb-linear, var(--foreground), var(--background) 15%);
+
margin: 0;
+
}
+
+
.game .game-header h2 {
+
margin: 0;
+
}
+
+
.game .game-header h2 a {
+
font-size: .9rem;
+
margin-left: 10px;
+
display: inline-block;
+
vertical-align: middle;
+
}
+
+
.game .game-header .blurb {
+
margin: 1em 0;
+
}
+
+
.game .screenshots {
+
border-right: 1px var(--accent) solid;
+
grid-area: screenshots;
+
padding: 20px;
+
}
+
+
.game .screenshots .gallery {
+
display: grid;
+
gap: 10px;
+
grid-template-columns: repeat(2, 1fr);
+
grid-template-rows: auto;
+
grid-template-areas: "featured featured";
+
}
+
+
.game .screenshots .gallery a,
+
.game .screenshots .gallery button {
+
position: relative;
+
padding-top: 50%;
+
width: 100%;
+
}
+
+
.game .screenshots .gallery a img,
+
.game .screenshots .gallery button img {
+
position: absolute;
+
top: 0;
+
left: 0;
+
width: 100%;
+
height: 100%;
+
object-fit: cover;
+
}
+
+
.game .screenshots .gallery > :first-child {
+
grid-area: featured;
+
}
+
+
.game .interaction {
+
grid-area: stuff;
+
}
+
+
.game .downloads {
+
padding: 20px;
+
}
+
+
.game .comments {
+
border-top: 1px var(--accent) solid;
+
}
+
+
[popover] {
+
position: fixed;
+
z-index: 99;
+
top: 50%;
+
left: 50%;
+
max-width: 90%;
+
max-height: 90%;
+
transform: translate(-50%, -50%);
+
}
+
+
[popover]:-internal-popover-in-top-layer::backdrop {
+
background-color: rgba(0,0,0,.5);
}
+78
plain-html/game.html
···
+
<!doctype html>
+
<html>
+
<head>
+
<title>!!YOUR GAME JAM TITLE!!</title>
+
<link rel="stylesheet" type="text/css" href="./css/style.css" />
+
<link rel="stylesheet" type="text/css" href="./css/custom.css" />
+
<link rel="apple-touch-icon" sizes="180x180" href="./images/apple-touch-icon.png">
+
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
+
<link rel="icon" type="image/png" sizes="16x16" href="./images/favicon-16x16.png">
+
<link rel="manifest" href="./site.webmanifest">
+
</head>
+
<body class="wide game">
+
<div id="banner">
+
<!-- uncomment the below line if banner is desired -->
+
<!-- <img src="!!YOURBANNER!!" alt="!!BANNERALT!!" /> -->
+
</div>
+
<div id="page">
+
<header>
+
<h1>!!YOUR GAME JAM TITLE!!</h1>
+
<p class="hosted">Hosted by <a href="!!YOURLINK!!" target="_blank">!!YOURNAME!!</a> &bull; <a href="!!LINK TO HASHTAG FILTER!!" target="_blank">#!!HASHTAG!!</a></p>
+
<div class="entries">
+
<span class="count" id="entriesCount">!!#!!</span>
+
<span class="caption">Entries</span>
+
</div>
+
<nav>
+
<ul>
+
<li><a href="index.html">Overview</a></li>
+
<!-- uncomment the below if you have a discord or a forum or something -->
+
<!-- <li><a href="!!COMMUNITY LINK!!">Community</a></li> -->
+
<li><a href="submissions.html" class="current">Submissions</a></li>
+
</ul>
+
</nav>
+
</header>
+
<main>
+
<div class="game-header">
+
<p class="jamsub">A jam submission</p>
+
<h2>!! GAME TITLE !! <a href="#">View game website &rarr;</a></h2>
+
<div class="blurb">
+
!! BLURB GOES HERE !!
+
</div>
+
<div class="authors">
+
Submitted by <a href="#">Author 1</a>, <a href="#">Author 2</a> &mdash; <span id="timebefore">!! TIME !!</span> before deadline
+
</div>
+
</div>
+
<div class="screenshots">
+
<div class="gallery">
+
<button popovertarget="img1"><img src="https://images.unsplash.com/photo-1756151224665-eba765e8c3b5?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" /></button>
+
<button popovertarget="img2"><img src="https://images.unsplash.com/photo-1754922493956-364a7623a016?q=80&w=2150&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" /></button>
+
<button popovertarget="img3"><img src="https://images.unsplash.com/photo-1755429518361-1d6060edcf3c?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" /></button>
+
<button popovertarget="img4"><img src="https://images.unsplash.com/photo-1755603461859-9da81ff3afea?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" /></button>
+
<button popovertarget="img5"><img src="https://images.unsplash.com/photo-1755467020939-4c3e196545bd?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" /></button>
+
</div>
+
<img src="https://images.unsplash.com/photo-1756151224665-eba765e8c3b5?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" popover id="img1" />
+
<img src="https://images.unsplash.com/photo-1754922493956-364a7623a016?q=80&w=2150&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" popover id="img2" />
+
<img src="https://images.unsplash.com/photo-1755429518361-1d6060edcf3c?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" popover id="img3" />
+
<img src="https://images.unsplash.com/photo-1755603461859-9da81ff3afea?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" popover id="img4" />
+
<img src="https://images.unsplash.com/photo-1755467020939-4c3e196545bd?q=80&w=2340&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" popover id="img5" />
+
</div>
+
<div class="interaction">
+
<div class="downloads">
+
<h3>Downloads</h3>
+
<ul>
+
<li></li>
+
</ul>
+
</div>
+
<!-- uncomment if you want to drop in some kind of commenting system and put in whatever script you're using -->
+
<!--<div class="comments">
+
+
</div>-->
+
</div>
+
</main>
+
<footer>
+
<a href="https://veryroundbird.house">♥︎</a>
+
</footer>
+
</div>
+
<script type="module" src="./js/script.mjs"></script>
+
</body>
+
</html>