mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Add no results message and action
This commit is contained in:
parent
32a14c10b7
commit
e416ec0e07
2 changed files with 16 additions and 2 deletions
|
|
@ -19,12 +19,18 @@
|
|||
ref="search-container"
|
||||
class="search-container relative w-full"
|
||||
>
|
||||
<div class="search-wrapper flex justify-center pb-32">
|
||||
<div class="search-wrapper flex justify-center">
|
||||
<div class="search-scroller w-full relative">
|
||||
|
||||
<div class="search-results py-8">
|
||||
|
||||
<ul class="results-container rounded-lg border border-gray-700 divide-y divide-gray-700 neumorphic-shadow px-5">
|
||||
<li
|
||||
v-if="results.length === 0"
|
||||
class="text-center py-4"
|
||||
>
|
||||
No apps found
|
||||
</li>
|
||||
<li
|
||||
v-for="(app, i) in results"
|
||||
:key="`${app.slug}-${i}`"
|
||||
|
|
|
|||
|
|
@ -9,18 +9,26 @@
|
|||
</h2>
|
||||
|
||||
<Search />
|
||||
|
||||
<LinkButton
|
||||
href="https://github.com/ThatGuySam/doesitarm/issues"
|
||||
>
|
||||
Request an App
|
||||
</LinkButton>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Search from '~/components/search.vue'
|
||||
import LinkButton from '~/components/link-button.vue'
|
||||
|
||||
import appList from '~/assets/app-list.json'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Search
|
||||
Search,
|
||||
LinkButton
|
||||
},
|
||||
computed: {
|
||||
appList() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue