feat: add and improve hints

This commit is contained in:
julius 2025-01-25 15:02:34 +01:00
parent 1065b0cdeb
commit 6b70ce8bb2
Signed by: julius
GPG Key ID: C80A63E6A5FD7092
2 changed files with 19 additions and 7 deletions

View File

@ -1,5 +1,5 @@
body {
background-color: ghostwhite;
/* background-color: ghostwhite; */
color: black;
overflow-wrap: anywhere;
}
@ -15,6 +15,15 @@ body {
color: #444;
}
.hint {
position: absolute;
top: auto;
left: 4px;
bottom: auto;
right: 4px;
z-index: -1;
}
h1,
h2 {
margin-top: 0px;
@ -38,6 +47,7 @@ h2 {
}
.box {
position: relative;
min-width: 30%;
max-width: 10vw;
padding: 4px;
@ -47,9 +57,9 @@ h2 {
}
.user {
max-width: 80vw;
width: 80%;
margin: auto;
max-width: 400px;
min-width: 200px;
margin: 4px auto;
.item {
font-weight: bold;
border-style: solid;

View File

@ -75,7 +75,9 @@ export default function Chemistry() {
<span className="grey">cool ultimate team tool</span>
<div className="box user">
<h2>your name?</h2>
{user.length < 1 && <span className="grey">drag your name here:</span>}
{user.length < 1 && (
<span className="grey hint">drag your name here:</span>
)}
<PlayerList
list={user}
setList={setUser}
@ -92,7 +94,7 @@ export default function Chemistry() {
<div className="box">
<h2>😬</h2>
{playersLeft.length < 1 && (
<span className="grey">
<span className="grey hint">
drag people here that you'd rather not play with
</span>
)}
@ -116,7 +118,7 @@ export default function Chemistry() {
<div className="box">
<h2>😍</h2>
{playersRight.length < 1 && (
<span className="grey">
<span className="grey hint">
drag people here that you love playing with
</span>
)}