mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Add kind page for sections
This commit is contained in:
parent
ec0c8f6b79
commit
51e1965535
1 changed files with 56 additions and 0 deletions
56
pages/kind/_slug.vue
Normal file
56
pages/kind/_slug.vue
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<template>
|
||||
<section class="container py-24">
|
||||
<div class="flex flex-col items-center">
|
||||
<h1 class="title text-3xl md:text-5xl font-hairline leading-tight text-center pb-4">
|
||||
{{ section.label }} that are reported to support Apple Silicon
|
||||
</h1>
|
||||
<!-- <h2 class="subtitle md:text-xl font-light text-center">
|
||||
{{ section.label }} that are reported to support Apple Silicon
|
||||
</h2> -->
|
||||
|
||||
<Search
|
||||
:app-list="sectionAppList"
|
||||
:quick-buttons="[]"
|
||||
/>
|
||||
|
||||
<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 {
|
||||
async asyncData ({ params: { slug } }) {
|
||||
|
||||
return {
|
||||
slug,
|
||||
app: appList.find(app => (app.slug === slug))
|
||||
}
|
||||
},
|
||||
components: {
|
||||
Search,
|
||||
LinkButton
|
||||
},
|
||||
computed: {
|
||||
section() {
|
||||
return appList.find(app => {
|
||||
return app.section.slug === this.slug
|
||||
}).section
|
||||
},
|
||||
sectionAppList() {
|
||||
return appList.filter(app => {
|
||||
return app.section.slug === this.slug
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue