Compare commits
7 Commits
de751e1595
...
da9c3be1cd
Author | SHA1 | Date | |
---|---|---|---|
da9c3be1cd | |||
970a06cf9c | |||
39258f37fc | |||
2ae9a04aae | |||
91938efe35 | |||
b8e17331cc | |||
a41c6717c8 |
57
src/App.css
57
src/App.css
@ -11,6 +11,10 @@ body {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
font-size: x-small;
|
||||||
|
}
|
||||||
|
|
||||||
#root {
|
#root {
|
||||||
max-width: 1280px;
|
max-width: 1280px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@ -25,6 +29,7 @@ body {
|
|||||||
.hint {
|
.hint {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
|
padding: 4px;
|
||||||
top: auto;
|
top: auto;
|
||||||
left: 4px;
|
left: 4px;
|
||||||
bottom: auto;
|
bottom: auto;
|
||||||
@ -33,16 +38,18 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2 {
|
h2,
|
||||||
|
h3 {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
margin-bottom: 0px;
|
margin-bottom: 0px;
|
||||||
|
padding: 4px 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
min-width: min(80vw, 800px);
|
min-width: 737px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dragbox {
|
.dragbox {
|
||||||
@ -103,10 +110,9 @@ h2 {
|
|||||||
|
|
||||||
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;
|
||||||
@ -116,6 +122,25 @@ button {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.container {
|
||||||
|
min-width: 96vw;
|
||||||
|
}
|
||||||
|
.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,
|
||||||
@ -154,6 +179,30 @@ button {
|
|||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
position: relative;
|
||||||
|
text-align: center;
|
||||||
|
height: 196px;
|
||||||
|
margin: auto;
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
h3 {
|
||||||
|
position: absolute;
|
||||||
|
width: 200px;
|
||||||
|
top: 33%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
color: aliceblue;
|
||||||
|
background-color: black;
|
||||||
|
border-radius: unset;
|
||||||
|
letter-spacing: 8px;
|
||||||
|
padding: 0px 40px;
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.loader {
|
.loader {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
15
src/App.tsx
15
src/App.tsx
@ -5,15 +5,24 @@ import Rankings from "./Rankings";
|
|||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<div className="logo">
|
||||||
<a href={baseUrl}>
|
<a href={baseUrl}>
|
||||||
<img alt="logo" height="128px" src="logo.svg" />
|
<img alt="logo" height="66%" src="logo.svg" />
|
||||||
</a>
|
</a>
|
||||||
<h1>cutt</h1>
|
<h3 className="centered">cutt</h3>
|
||||||
<span className="grey">cool ultimate team tool</span>
|
<span className="grey">cool ultimate team tool</span>
|
||||||
|
</div>
|
||||||
<Rankings />
|
<Rankings />
|
||||||
<footer>
|
<footer>
|
||||||
<p className="grey">
|
<p className="grey">
|
||||||
something not working? message <a href="https://t.me/x0124816">me</a>.
|
something not working?
|
||||||
|
<br />
|
||||||
|
message <a href="https://t.me/x0124816">me</a>.
|
||||||
|
<br />
|
||||||
|
or fix it here:{" "}
|
||||||
|
<a href="https://git.0124816.xyz/julius/cutt" key="gitea">
|
||||||
|
<img src="gitea.svg" alt="gitea" height="16" />
|
||||||
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
</>
|
</>
|
||||||
|
@ -40,9 +40,9 @@ export function SelectUser({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="box user">
|
<div className="box user">
|
||||||
<span>your name?</span>
|
|
||||||
{user.length < 1 ? (
|
{user.length < 1 ? (
|
||||||
<>
|
<>
|
||||||
|
<span>your name?</span>
|
||||||
<br /> <span className="grey hint">drag your name here</span>
|
<br /> <span className="grey hint">drag your name here</span>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
@ -55,7 +55,6 @@ export function SelectUser({
|
|||||||
>
|
>
|
||||||
{" ✕"}
|
{" ✕"}
|
||||||
</span>
|
</span>
|
||||||
<br />
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<PlayerList
|
<PlayerList
|
||||||
@ -175,7 +174,9 @@ export function Chemistry({ 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="ChemistryDialog"
|
id="ChemistryDialog"
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
@ -233,8 +234,8 @@ export function MVP({ user, players }: PlayerInfoProps) {
|
|||||||
<h1>🏆</h1>
|
<h1>🏆</h1>
|
||||||
{rankedPlayers.length < 1 && (
|
{rankedPlayers.length < 1 && (
|
||||||
<span className="grey hint">
|
<span className="grey hint">
|
||||||
carefully place the <i>Most Valuable Player</i> (according to your
|
carefully place as many of the <i>Most Valuable Players</i>{" "}
|
||||||
humble opinion) in this box
|
(according to your humble opinion) in this box
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
<PlayerList
|
<PlayerList
|
||||||
@ -252,7 +253,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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user