diff --git a/components/app.riot b/components/app.riot index f2b243f..24b425e 100644 --- a/components/app.riot +++ b/components/app.riot @@ -40,10 +40,10 @@
Chargement des favoris...
+Aucun favori trouvé.
+Aucun favori trouvé.
+ + this.state.favorites.items = items; + this.state.loading = false; + this.update(); + }, - - \ No newline at end of file + async removeFavoris(id) { + await window.removeFavorite(id); + this.state.favorites.items = this.state.favorites.items.filter(item => item.id !== id); + this.update(); + } + } + + + + diff --git a/components/login.riot b/components/login.riot index fdbaaf3..71e2a15 100644 --- a/components/login.riot +++ b/components/login.riot @@ -22,28 +22,40 @@ form { display: flex; flex-direction: column; - max-width: 300px; + gap: 1rem; + max-width: 400px; margin: auto; - gap: 10px; - margin-top: 2rem; + background: white; + padding: 2rem; + border-radius: 10px; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); } - - input, - button { - padding: 0.5rem; - border-radius: 4px; + + input { + padding: 0.75rem; border: 1px solid #ccc; + border-radius: 6px; + font-size: 1rem; } - + button { background-color: #1976d2; color: white; + padding: 0.75rem; border: none; + border-radius: 6px; + font-weight: bold; cursor: pointer; + transition: background-color 0.3s ease; } - + button:hover { - background-color: #135ba1; + background-color: #125aa3; + } + + p { + text-align: center; + margin-top: 1rem; } \ No newline at end of file diff --git a/components/register.riot b/components/register.riot index f0fb337..b7a5c16 100644 --- a/components/register.riot +++ b/components/register.riot @@ -14,15 +14,6 @@ const password = e.target.password.value; await window.sign(email, password); window.location.href = '#'; - }, - onMounted() { - observeAuthState(user => { - if (user) { - console.log("Connecté :", user.email); - } else { - console.log("Déconnecté"); - } - }); } } @@ -30,28 +21,40 @@ form { display: flex; flex-direction: column; - max-width: 300px; + gap: 1rem; + max-width: 400px; margin: auto; - gap: 10px; - margin-top: 2rem; + background: white; + padding: 2rem; + border-radius: 10px; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); } - - input, - button { - padding: 0.5rem; - border-radius: 4px; + + input { + padding: 0.75rem; border: 1px solid #ccc; + border-radius: 6px; + font-size: 1rem; } - + button { background-color: #1976d2; color: white; + padding: 0.75rem; border: none; + border-radius: 6px; + font-weight: bold; cursor: pointer; + transition: background-color 0.3s ease; } - + button:hover { - background-color: #135ba1; + background-color: #125aa3; + } + + p { + text-align: center; + margin-top: 1rem; } \ No newline at end of file diff --git a/components/release-details.riot b/components/release-details.riot index a9ed9fd..76a30b5 100644 --- a/components/release-details.riot +++ b/components/release-details.riot @@ -1,12 +1,17 @@{state.release.formats?.[0]?.name}-{state.release.year}
-{state.release.community?.rating?.average}({state.release.community?.rating?.count}vote)
+{state.release.formats?.[0]?.name}-{state.release.year}
+{state.release.community?.rating?.average}({state.release.community?.rating?.count}vote)
-{state.release.year}
+ +{state.release.name}
+ +