new game
Build and Push Docker Images / build-and-push (push) Successful in 19s

This commit is contained in:
Bram committed 2026-11-18 14:44:36 +01:00
1 parent 3f8984bb09
commit 97b2fa58a5
6 files changed
+1196 -180

No files matched your search

+391
View File
@@ -1154,6 +1154,356 @@ h1 {
color: #fff;
}
.minigame-meta {
margin: 6px 0 14px;
color: #7a6440;
font-size: clamp(.76rem, 1.5vw, .84rem);
font-weight: 700;
line-height: 1.45;
}
.memory-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: clamp(6px, 1.2vw, 10px);
margin: 0 0 14px;
}
.memory-card {
position: relative;
aspect-ratio: 3 / 4;
padding: 0;
border: 0;
background: none;
cursor: pointer;
perspective: 800px;
-webkit-tap-highlight-color: transparent;
}
.memory-inner {
position: absolute;
inset: 0;
transform-style: preserve-3d;
transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.memory-card.is-flipped .memory-inner {
transform: rotateY(180deg);
}
.memory-face {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 5px;
overflow: hidden;
border-radius: 5px;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
.memory-back {
border: 1px solid #8a6a2f;
background:
radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .12), transparent 38%),
repeating-linear-gradient(45deg, rgba(240, 201, 106, .05) 0 6px, transparent 6px 12px),
linear-gradient(150deg, #2e4a30, #182f22);
color: var(--brass-bright);
box-shadow:
inset 0 0 0 3px rgba(240, 201, 106, .14),
0 4px 8px rgba(0, 0, 0, .2);
}
.memory-back-mark {
display: grid;
place-items: center;
width: 56%;
aspect-ratio: 1;
border: 1px solid rgba(240, 201, 106, .35);
border-radius: 50%;
background: rgba(0, 0, 0, .14);
}
.memory-back-mark svg {
width: 62%;
height: 62%;
opacity: .85;
}
.memory-front {
transform: rotateY(180deg);
border: 1px solid #b89a5c;
background:
radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .8), transparent 40%),
linear-gradient(180deg, #fff9ea, #ecdbb6);
color: #5c4724;
}
.memory-front svg {
width: 58%;
height: 40%;
overflow: visible;
}
.memory-emblem {
display: grid;
place-items: center;
width: 58%;
height: 40%;
}
.memory-emblem svg {
width: 100%;
height: 100%;
overflow: visible;
}
.memory-label {
max-width: 96%;
padding: 0 2px;
overflow: hidden;
font-family: var(--serif);
font-size: clamp(.5rem, 1.2vw, .68rem);
font-weight: 700;
line-height: 1.1;
text-align: center;
text-overflow: ellipsis;
}
.memory-card.is-matched .memory-front {
border-color: #5f7d4f;
background:
radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .8), transparent 40%),
linear-gradient(180deg, #f3f8e6, #dfecc9);
box-shadow: 0 0 0 2px rgba(95, 125, 79, .42);
}
.memory-card.is-matched {
cursor: default;
}
.memory-card:focus-visible {
outline: 2px solid var(--brass-dark);
outline-offset: 2px;
border-radius: 5px;
}
.memory-card.is-matched:focus-visible {
outline-color: #5f7d4f;
}
.memory-card:disabled {
cursor: default;
}
.shelf-tray {
display: flex;
flex-wrap: wrap;
gap: 7px;
min-height: 62px;
margin-bottom: 10px;
padding: 9px;
border: 1px dashed rgba(154, 107, 35, .45);
border-radius: 9px;
background: rgba(185, 154, 92, .09);
}
.shelf-tray:empty::after {
content: "Alle boeken staan op hun plek.";
align-self: center;
width: 100%;
color: #7a6440;
font-size: .8rem;
font-style: italic;
text-align: center;
}
.shelf-item {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
width: clamp(58px, 11vw, 76px);
min-height: clamp(72px, 14vw, 94px);
padding: 7px 5px 6px 8px;
border: 1px solid rgba(255, 255, 255, .2);
border-radius: 3px 6px 6px 3px;
background:
radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .14), transparent 40%),
linear-gradient(150deg, var(--item-cover, #2e4a30), var(--item-cover-2, #557c4c));
color: var(--item-ink, #f7eedb);
box-shadow: 0 4px 9px rgba(0, 0, 0, .24), inset 0 0 0 1px rgba(255, 255, 255, .1);
cursor: pointer;
transition: transform .15s, box-shadow .15s, border-color .15s;
}
.shelf-item::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 5px;
border-radius: 3px 0 0 3px;
background: linear-gradient(90deg, rgba(0, 0, 0, .4), rgba(255, 255, 255, .08));
}
.shelf-item.is-placed {
cursor: default;
}
.shelf-item:not(.is-placed):hover {
transform: translateY(-2px);
box-shadow: 0 8px 14px rgba(0, 0, 0, .28), 0 0 0 1px rgba(240, 201, 106, .55);
}
.shelf-item.is-selected {
border-color: var(--brass-bright);
box-shadow: 0 0 0 2px var(--brass), 0 8px 14px rgba(0, 0, 0, .28);
transform: translateY(-3px);
}
.shelf-item:focus-visible {
outline: 2px solid var(--brass-dark);
outline-offset: 2px;
}
.mini-emblem {
display: grid;
place-items: center;
width: 28px;
height: 28px;
}
.mini-emblem svg {
width: 100%;
height: 100%;
overflow: visible;
}
.mini-label {
display: -webkit-box;
max-width: 100%;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
font-family: var(--serif);
font-size: clamp(.5rem, 1.15vw, .62rem);
font-weight: 700;
line-height: 1.1;
text-align: center;
overflow-wrap: anywhere;
}
.shelf-racks {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.rack {
position: relative;
display: flex;
flex-direction: column;
gap: 4px;
min-height: 108px;
padding: 9px;
border: 1px solid #c8b48a;
border-radius: 8px;
background: rgba(255, 255, 255, .3);
color: #4b3a20;
font: inherit;
text-align: left;
cursor: pointer;
transition: border-color .15s, background .15s, box-shadow .15s;
}
.rack:hover,
.rack.is-targetable {
border-color: #8a6a2f;
background: #fffaf0;
}
.rack.is-targetable {
box-shadow: inset 0 0 0 1px rgba(138, 106, 47, .18);
}
.rack.is-filled {
border-color: #8fa47b;
background: rgba(232, 240, 217, .58);
}
.rack.is-wrong {
border-color: #a34a3d;
animation: rack-shake .32s ease;
}
.rack:focus-visible {
outline: 2px solid var(--brass-dark);
outline-offset: 2px;
}
.rack:disabled {
cursor: default;
}
.rack-label {
font-size: clamp(.62rem, 1.3vw, .72rem);
font-weight: 800;
letter-spacing: .08em;
text-transform: uppercase;
}
.rack-hint {
color: #7a6440;
font-size: clamp(.56rem, 1.15vw, .64rem);
line-height: 1.3;
}
.rack-slot {
display: flex;
align-items: center;
justify-content: center;
min-height: 58px;
margin-top: auto;
border: 1px dashed rgba(154, 107, 35, .36);
border-radius: 6px;
background: rgba(255, 255, 255, .22);
}
.rack.is-filled .rack-slot {
border-style: solid;
border-color: #8fa47b;
background: rgba(255, 255, 255, .38);
}
.rack .shelf-item {
width: 76px;
min-height: 72px;
box-shadow: none;
}
.rack .shelf-item:hover {
transform: none;
}
.minigame-retry {
align-self: flex-start;
margin-bottom: 14px;
}
@keyframes rack-shake {
0%, 100% { transform: translateX(0); }
30% { transform: translateX(-5px); }
62% { transform: translateX(4px); }
84% { transform: translateX(-2px); }
}
.feedback {
min-height: 2.7em;
margin: 0;
@@ -1612,6 +1962,35 @@ h1 {
gap: 10px;
}
.memory-grid {
gap: 6px;
}
.memory-label {
font-size: .54rem;
}
.shelf-tray {
padding: 7px;
gap: 6px;
}
.shelf-tray .shelf-item {
width: 66px;
min-height: 76px;
padding: 6px 4px 5px 7px;
}
.rack {
min-height: 100px;
padding: 7px;
}
.rack .shelf-item {
width: 52px;
min-height: 66px;
}
.primary-btn {
align-self: stretch;
text-align: center;
@@ -1626,6 +2005,18 @@ h1 {
.shelf {
gap: 5px;
}
.memory-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.memory-label {
font-size: .58rem;
}
.rack-hint {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {