This commit is contained in:
2024-11-05 14:12:16 +01:00
parent 066a99657e
commit e172166886
2 changed files with 44 additions and 11 deletions

View File

@@ -1,6 +1,36 @@
body {
background-color: #333;
color: #FFF;
max-width: 600px;
margin: 0 auto;
padding: 2rem 1rem;
}
a.title {
color: #FF9800;
font-weight: bold;
text-decoration: none;
font-size: 1.5rem;
}
.puzzleno {
border: 1px solid grey;
color: grey;
padding: .2em .5em;
border-radius: 1em;
text-align: right;
float: right;
}
.instructions {
padding: 2rem 0;
}
input[type="text"] {
box-sizing: border-box;
width: 100%;
padding: .5rem;
}
button {
@@ -8,5 +38,14 @@ button {
color: #333;
border: 0;
padding: .2rem;
padding: .5rem;
margin-top: .5rem;
cursor: pointer;
width: 100%;
}
ul {
list-style-type: none;
}

View File

@@ -9,20 +9,14 @@
</head>
<body>
<div
id="container"
x-data=""
>
<div id="container" x-data="">
<a href="/" x-cloak class="title">alfagok</a> <span class="puzzleno">puzzle #<span x-text="$store.alfagok.gameID"></span><span id="nextgame"></span></span>
<a href="/" x-cloak class="title">alfagok</a> <span class="puzzleno">puzzel #<span x-text="$store.alfagok.gameID"></span><span id="nextgame"></span></span>
<div x-cloak x-show="$store.alfagok.guessesBefore.length || $store.alfagok.guessesAfter.length"><br></div>
<div x-cloak class="instructions" x-else>
<div x-cloak class="instructions" x-show="$store.alfagok.guessesBefore.length === 0 && $store.alfagok.guessesAfter.length === 0">
<p>Raad het woord van de dag. Elke gok geeft een hint over waar het woord zich in het alfabet bevindt.</p>
</div>
<center>
<ul>
@@ -49,7 +43,7 @@
<p>Het woord van vandaag was <b x-text="$store.alfagok.guessValue"></b>.</p>
<div id="stats">
<div id="results">
<p><b x-data="{ message: '🧩 Puzzle #' + $store.alfagok.gameID }" x-text="message"></b></p>
<p><b x-data="{ message: '🧩 Puzzel #' + $store.alfagok.gameID }" x-text="message"></b></p>
<p x-data="{ message: '🤔 '+ $store.alfagok.nrGuesses + ' gokken' }" x-text="message"></p>
<p x-data="{ message: '⏱️ ' + getFormattedTime($store.alfagok.winTime - $store.alfagok.startTime) }" x-text="message"></p>
<p>🔗 <span style="color:var(--blue)">alfagok.diginaut.net</span></p>