-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.vue
73 lines (64 loc) · 1.32 KB
/
app.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
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
<script setup>
const meta = {
url: "https://desci.world",
title: "World of DeSci: Bengaluru",
description:
"World of DeSci: Bengaluru is a conference for open scientists and engineers, AI and Web3 advocates and students.",
image: "/images/meta.jpg",
};
// get theme color from css
const themeColor = ref(null);
useHead({
htmlAttrs: {
lang: "en",
},
meta: [
{
name: "viewport",
content: "width=device-width, initial-scale=1",
},
],
link: [
{
rel: "icon",
type: "image/x-icon",
href: "/images/favicon.svg",
},
],
});
useSeoMeta({
// ogUrl: "https://desci.world",
// ogType: "website",
title: meta.title,
ogTitle: meta.title,
twitterTitle: meta.title,
//
description: meta.description,
ogDescription: meta.description,
twitterDescription: meta.description,
//
image: meta.image,
ogImage: {
url: meta.image,
width: 1200,
height: 627,
alt: "DeSci World Logo",
},
twitterImage: {
url: meta.image,
width: 1200,
height: 627,
alt: "DeSci World Logo",
},
twitterCard: "summary_large_image",
themeColor: themeColor.value ?? "#fb9637",
});
onMounted(() => {
themeColor.value = getComputedStyle(
document.documentElement
).getPropertyValue("--color");
});
</script>
<template>
<NuxtPage />
</template>