still syncing

This commit is contained in:
Vri 🌈 2023-06-11 16:50:44 +02:00
parent 455ef5c1d5
commit f079944a3e
Signed by: vrifox
GPG key ID: D40098E5B60B2197
4 changed files with 19 additions and 8 deletions

View file

@ -18,8 +18,8 @@ export default {
</script> </script>
<template> <template>
<header class="w-screen flex flex-row"> <header class="w-screen flex flex-row place-content-center">
<h1 class="">{{ applicationName }}</h1> <h1 class="p-2 text-xl">{{ applicationName }}</h1>
<MainMenu /> <MainMenu />
<Search /> <Search />
</header> </header>

View file

@ -16,7 +16,11 @@ export default {
methods: { methods: {
async fetchData() { async fetchData() {
this.papers = await (await fetch(this.apiUri)).json() this.papers = await (await fetch(this.apiUri)).json()
} },
filterData() {
},
}, },
} }
</script> </script>
@ -24,7 +28,12 @@ export default {
<template> <template>
<ul> <ul>
<li v-for="paper in papers"> <li v-for="paper in papers">
<a :href="paper.url">{{ paper.name }}</a> <article>
<a :href="paper.url">
<h4 class="text-xl">{{ paper.name }}</h4>
<p>{{ paper.published_at }}: FIXME von {{ paper.originator }}</p>
</a>
</article>
</li> </li>
</ul> </ul>
</template> </template>

View file

@ -4,13 +4,13 @@ export default {
return { return {
menuEntries: this.menuEntries, menuEntries: this.menuEntries,
} }
}, },
} }
</script> </script>
<template> <template>
<ul class="flex flex-row"> <ul class="flex flex-row place-content-center">
<li class="p-2" v-for="entry of menuEntries"> <li class="p-2 place-content-center" v-for="entry of menuEntries">
<a :href="entry.uri">{{ entry.name }}</a> <a :href="entry.uri">{{ entry.name }}</a>
</li> </li>
</ul> </ul>

View file

@ -9,5 +9,7 @@ export default {
</script> </script>
<template> <template>
<div>Search</div> <form>
<input class="p-2" type="search" placeholder="Suche …">
</form>
</template> </template>