1
Fork 0

Compare commits

..

8 commits

Author SHA1 Message Date
473d715960
move match title at bottom 2024-12-20 19:13:43 +01:00
4751919c10
make page more compact 2024-12-20 19:12:59 +01:00
751898f625
salt 2024-12-20 19:10:53 +01:00
ab9b704aa2
telecss 2024-12-20 19:09:01 +01:00
ea948d4745
css 2024-12-20 19:06:04 +01:00
955f30dc80
more words 2024-12-20 19:03:35 +01:00
6e110e722b
improve text 2024-12-20 19:00:56 +01:00
cd01cc54fa
intellij being intellij 2024-12-20 18:54:43 +01:00
6 changed files with 21 additions and 27 deletions

View file

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="DiscordProjectSettings"> <component name="DiscordProjectSettings">
<option name="show" value="ASK" /> <option name="show" value="ASK" />

View file

@ -81,15 +81,15 @@ fn match_to_text(r#match: &Match, player_a: &Player, player_b: &Player) -> Strin
match r#match.outcome { match r#match.outcome {
Outcome::AWins => match &r#match.name { Outcome::AWins => match &r#match.name {
Some(name) => format!("🔵 {player_a} ha trionfato su {player_b} in <b>{name}</b>!"), Some(name) => format!("🔵 {player_a} ha trionfato su {player_b} in «<b>{name}</b>»!"),
None => format!("🔵 {player_a} ha trionfato su {player_b}!"), None => format!("🔵 {player_a} ha trionfato su {player_b}!"),
}, },
Outcome::BWins => match &r#match.name { Outcome::BWins => match &r#match.name {
Some(name) => format!("🟠 {player_a} è stato sconfitto da {player_b} in <b>{name}</b>!"), Some(name) => format!("🟠 {player_a} ha subito una sconfitta da {player_b} in «<b>{name}</b>»!"),
None => format!("🟠 {player_a} è stato sconfitto da {player_b}!"), None => format!("🟠 {player_a} ha subito una sconfitta da {player_b}!"),
}, },
Outcome::Tie => match &r#match.name { Outcome::Tie => match &r#match.name {
Some(name) => format!("⚪️ {player_a} e {player_b} hanno pareggiato in <b>{name}</b>!"), Some(name) => format!("⚪️ {player_a} e {player_b} hanno pareggiato in «<b>{name}</b>»!"),
None => format!("⚪️ {player_a} e {player_b} hanno pareggiato!"), None => format!("⚪️ {player_a} e {player_b} hanno pareggiato!"),
}, },
} }

View file

@ -1,5 +1,7 @@
body { body {
padding: 0 4px; padding: 0 4px;
justify-content: flex-start;
min-height: unset;
} }
nextjs-portal { nextjs-portal {
@ -18,7 +20,3 @@ hr {
/* TODO: Fix in bluelib */ /* TODO: Fix in bluelib */
align-items: center; align-items: center;
} }
.fof {
text-align: center;
}

View file

@ -29,12 +29,8 @@ export default function RootLayout({children}) {
<header> <header>
<h2> <h2>
<span> <span>
Stagione 1: Stagione 1
</span> </span>
<br/>
<small>
Standard Brawl
</small>
</h2> </h2>
</header> </header>
<TelegramContext.Provider value={telegram}> <TelegramContext.Provider value={telegram}>
@ -44,9 +40,7 @@ export default function RootLayout({children}) {
<p> <p>
© Stefano Pigozzi © Stefano Pigozzi
&nbsp;-&nbsp; &nbsp;-&nbsp;
Star Shard Star Shard Studio
&nbsp;-&nbsp;
che cursata le miniapp di telegram
</p> </p>
</footer> </footer>
</body> </body>

View file

@ -1,14 +1,17 @@
export default async function Page() { export default async function Page() {
return ( return (
<div className={"panel box fof"}> <div className={"panel box red"}>
<h3> <h3>
👍 Errore
</h3> </h3>
<p> <p>
hai scoperto la pagina di tutti i tempi Se vedi questa pagina vuol dire che Telegram si è scordato di dirmi chi sei o cosa vuoi fare.
</p> </p>
<p> <p>
congrats!! <small>Divertente, vero? Proprio un'applicazione 10/10...</small>
</p>
<p>
Chiudi completamente questa pagina, poi clicca nuovamente sul link che hai premuto; solitamente così si mette a posto...
</p> </p>
</div> </div>
) )

View file

@ -39,12 +39,6 @@ export function ReportBox({players, playerA, playerB, setPlayerB, outcome, setOu
Registra risultato Registra risultato
</h3> </h3>
<hr className="separator-lightest"/> <hr className="separator-lightest"/>
<label>
<span>Titolo</span>
<input type={"text"} onChange={e => setName(e.target.value)} value={name} placeholder={"Scontro al Garasauto"}/>
<small>opzion.</small>
</label>
<hr className="separator-lightest"/>
<label> <label>
<span>Tu</span> <span>Tu</span>
<select disabled={true}> <select disabled={true}>
@ -82,6 +76,12 @@ export function ReportBox({players, playerA, playerB, setPlayerB, outcome, setOu
<span></span> <span></span>
</div> </div>
<hr className="separator-lightest"/> <hr className="separator-lightest"/>
<label>
<span>Titolo</span>
<input type={"text"} onChange={e => setName(e.target.value)} value={name} placeholder={"Scontro al Garasauto"}/>
<small>opzion.</small>
</label>
<hr className="separator-lightest"/>
<input <input
type={"submit"} type={"submit"}
value={"Invia"} value={"Invia"}