feat: test floating button

This commit is contained in:
julius 2025-01-28 17:21:53 +01:00
parent b8e17331cc
commit 91938efe35
Signed by: julius
GPG Key ID: C80A63E6A5FD7092
2 changed files with 20 additions and 3 deletions

View File

@ -105,10 +105,9 @@ h3 {
button { button {
font-weight: bold; font-weight: bold;
font-size: large;
color: ghostwhite; color: ghostwhite;
background-color: black; background-color: black;
border: 4px solid black;
position: relative;
z-index: 1; z-index: 1;
&:focus { &:focus {
outline: black; outline: black;
@ -118,6 +117,22 @@ button {
} }
} }
@media only screen and (max-width: 768px) {
.submit_text {
display: none;
}
.submit {
position: fixed;
right: 16px;
bottom: 16px;
padding: 0px;
background-color: unset;
font-size: xx-large;
margin-bottom: 20px;
margin-right: 20px;
}
}
::backdrop { ::backdrop {
background-image: linear-gradient( background-image: linear-gradient(
45deg, 45deg,

View File

@ -252,7 +252,9 @@ export function MVP({ user, players }: PlayerInfoProps) {
</div> </div>
</div> </div>
<button onClick={() => handleSubmit()}>submit</button> <button className="submit" onClick={() => handleSubmit()}>
💾 <span className="submit_text">submit</span>
</button>
<dialog <dialog
id="MVPDialog" id="MVPDialog"
onClick={(event) => { onClick={(event) => {