Added frontend, build scripts

This commit is contained in:
Seoxi Ryouko
2025-02-09 00:47:16 -06:00
parent b135bea535
commit 2936440103
7 changed files with 382 additions and 1 deletions

91
web-src/style.scss Normal file
View File

@ -0,0 +1,91 @@
$view-container-side-offset: 5%;
$param-container-side-offset: 5%;
*, *::before, *::after {
box-sizing: border-box;
}
html, body, main {
margin: 0;
padding: 0;
}
body {
width: 100vw;
height: 100vh;
}
main {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.hand {
height: 14%;
width: 100%;
background-color: #0002;
display: flex;
flex-direction: row;
justify-content: center;
gap: 0.2%;
align-items: center;
img {
display: flex;
height: 95%;
}
}
aside {
position: absolute;
height: 100%;
top: 0;
left: $view-container-side-offset;
display: flex;
flex-direction: column;
justify-content: center;
img {
opacity: 0;
display: flex;
height: 50%;
}
}
.right {
left: initial;
right: $view-container-side-offset;
}
#param-container {
position: absolute;
top: 5%;
left: $param-container-side-offset;
}
.right #param-container {
left: initial;
right: $param-container-side-offset;
}
#param {
font-size: 2rem;
}
.right #param {
text-align: right;
}
#border {
position: absolute;
top: 48%;
bottom: 48%;
left: 0;
right: 0;
background-color: #f002;
}
.my-turn #border {
background-color: #0ff2;
}