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

View File

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