-
Notifications
You must be signed in to change notification settings - Fork 254
Expand file tree
/
Copy pathjobs.vue
More file actions
76 lines (69 loc) · 1.95 KB
/
jobs.vue
File metadata and controls
76 lines (69 loc) · 1.95 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<script setup lang="ts">
definePageMeta({
heroBackground: 'opacity-80 -z-10'
})
const { fetchList, filteredJobs } = useEnterpriseJobs()
const { data: page } = await useAsyncData('jobs-landing', () => queryCollection('landing').path('/enterprise/jobs').first())
if (!page.value) {
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
}
const title = page.value.head?.title || page.value.title
const description = page.value.head?.description || page.value.description
useSeoMeta({
titleTemplate: '%s · Enterprise',
title,
description,
ogDescription: description,
ogTitle: `${title} · Enterprise`
})
useCanonical()
defineOgImage('Docs.takumi', {
headline: 'Enterprise',
title,
description
})
await fetchList()
</script>
<template>
<UContainer v-if="page">
<UPageHero
:title="title"
:description="description"
:links="page.links"
:ui="{
title: 'text-left',
description: 'text-left',
links: 'justify-start'
}"
/>
<UPage id="smooth" class="pt-20 -mt-20">
<UPageBody>
<UContainer class="space-y-8">
<UPageCard
v-for="(job, index) in filteredJobs"
:key="index"
:to="job.link"
:title="job.title"
:description="job.description"
>
<template #leading>
<UAvatar :src="job.organization.avatar" size="lg" />
</template>
<template #footer>
<div class="flex flex-wrap gap-3">
<UBadge
v-for="location of job.locations"
:key="location"
:label="location"
size="lg"
variant="subtle"
/>
<UBadge :label="job.remote" size="lg" variant="subtle" />
</div>
</template>
</UPageCard>
</UContainer>
</UPageBody>
</UPage>
</UContainer>
</template>