-
Notifications
You must be signed in to change notification settings - Fork 344
/
Copy pathindex.vue
39 lines (32 loc) · 1.12 KB
/
index.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<template>
<div class="flex flex-col min-h-full border-t">
<section class="py-12 sm:py-16 bg-gray-50 border-b border-gray-200">
<div class="px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto">
<div class="text-center max-w-xl mx-auto">
<h1 class="text-3xl sm:text-4xl lg:text-5xl font-bold tracking-tight text-gray-900">
Form Templates
</h1>
<p class="text-gray-600 mt-4 text-lg font-normal">
Our collection of beautiful templates to create your own forms!
</p>
</div>
</div>
</section>
<templates-list :templates="templates" :loading="loading"/>
<open-form-footer class="mt-8 border-t"/>
</div>
</template>
<script setup>
import {loadAllTemplates} from "~/stores/templates.js";
defineRouteRules({
// swr: 3600
})
useOpnSeoMeta({
title: 'Form Templates',
description: 'Our collection of beautiful templates to create your own forms!'
})
const templatesStore = useTemplatesStore()
loadAllTemplates(templatesStore)
const loading = computed(() => templatesStore.loading)
const templates = computed(() => templatesStore.getAll)
</script>