1
Fork 0

Compare commits

..

No commits in common. "473d71596077273434aa4b828595d10aec786a9c" and "c5e5d11572b968d48d86b6e48ccaeb8fbdc845b7" have entirely different histories.

6 changed files with 27 additions and 21 deletions

View file

@ -1,3 +1,4 @@
<?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} ha subito una sconfitta da {player_b} in «<b>{name}</b>»!"), Some(name) => format!("🟠 {player_a} è stato sconfitto da {player_b} in <b>{name}</b>!"),
None => format!("🟠 {player_a} ha subito una sconfitta da {player_b}!"), None => format!("🟠 {player_a} è stato sconfitto 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,7 +1,5 @@
body { body {
padding: 0 4px; padding: 0 4px;
justify-content: flex-start;
min-height: unset;
} }
nextjs-portal { nextjs-portal {
@ -20,3 +18,7 @@ hr {
/* TODO: Fix in bluelib */ /* TODO: Fix in bluelib */
align-items: center; align-items: center;
} }
.fof {
text-align: center;
}

View file

@ -29,8 +29,12 @@ 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}>
@ -40,7 +44,9 @@ export default function RootLayout({children}) {
<p> <p>
© Stefano Pigozzi © Stefano Pigozzi
&nbsp;-&nbsp; &nbsp;-&nbsp;
Star Shard Studio Star Shard
&nbsp;-&nbsp;
che cursata le miniapp di telegram
</p> </p>
</footer> </footer>
</body> </body>

View file

@ -1,17 +1,14 @@
export default async function Page() { export default async function Page() {
return ( return (
<div className={"panel box red"}> <div className={"panel box fof"}>
<h3> <h3>
Errore 👍
</h3> </h3>
<p> <p>
Se vedi questa pagina vuol dire che Telegram si è scordato di dirmi chi sei o cosa vuoi fare. hai scoperto la pagina di tutti i tempi
</p> </p>
<p> <p>
<small>Divertente, vero? Proprio un'applicazione 10/10...</small> congrats!!
</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,6 +39,12 @@ 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}>
@ -76,12 +82,6 @@ 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"}