diff --git a/index.html b/index.html index feaf27c..eb9c726 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,8 @@ - - Vite + Svelte + Legislativas 2024
diff --git a/src/App.svelte b/src/App.svelte index 9da7ed3..4a5ef52 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,13 +1,8 @@ + diff --git a/src/Debate.svelte b/src/Debate.svelte index f9fa73c..e0ce911 100644 --- a/src/Debate.svelte +++ b/src/Debate.svelte @@ -56,6 +56,8 @@ } +

{debateData.title}

+ diff --git a/src/HomePage.svelte b/src/HomePage.svelte index 8eb145d..d77d313 100644 --- a/src/HomePage.svelte +++ b/src/HomePage.svelte @@ -1,8 +1,12 @@ +Aqui pode encontrar os vídeos dos debates para as eleições legislativas de 2024, +bem como as respectivas transcrições (obtidas automáticamente, e por isso sujeitas a erros. + +Clique num vídeo para ver o debate completo. + +

Debates Legislativas 2024

+
{#each debates as { title, thumbnail, slug }}
(window.location.href = `/debate/${slug}`)}> diff --git a/src/main.js b/src/main.js index 8a909a1..57f6eca 100644 --- a/src/main.js +++ b/src/main.js @@ -1,8 +1,7 @@ -import './app.css' +// Initialize the Svelte app and inject it in the DOM import App from './App.svelte' - const app = new App({ - target: document.getElementById('app'), + target: document.body }) export default app diff --git a/src/routes.js b/src/routes.js new file mode 100644 index 0000000..ad7bd21 --- /dev/null +++ b/src/routes.js @@ -0,0 +1,8 @@ +import HomePage from './HomePage.svelte' +import Debate from './Debate.svelte' + +// Export the route definition object +export const routes = { + '/debate/:slug': Debate, + '/': HomePage, +}