Update contact.vue
This commit is contained in:
parent
b554d64e69
commit
54cb07433d
1 changed files with 15 additions and 55 deletions
|
@ -29,48 +29,14 @@
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script setup>
|
||||||
import { computed } from "vue"
|
|
||||||
import { useRoute } from "vue-router"
|
|
||||||
import TopBarLayout from "../components/TopBarLayout.vue"
|
import TopBarLayout from "../components/TopBarLayout.vue"
|
||||||
import LinkCardList from "../components/LinkCardList.vue"
|
import LinkCardList from "../components/LinkCardList.vue"
|
||||||
import BlurredBlobCanvas from "../components/BlurredBlobCanvas.vue"
|
import BlurredBlobCanvas from "../components/BlurredBlobCanvas.vue"
|
||||||
import MatrixIcon from "~icons/simple-icons/matrix"
|
import MatrixIcon from "~icons/simple-icons/matrix"
|
||||||
import TwitterIcon from "~icons/simple-icons/twitter"
|
|
||||||
import EmailIcon from "~icons/carbon/email"
|
import EmailIcon from "~icons/carbon/email"
|
||||||
|
|
||||||
export default {
|
const links = [
|
||||||
name: "ContactPage",
|
|
||||||
components: { BlurredBlobCanvas, LinkCardList, TopBarLayout },
|
|
||||||
setup() {
|
|
||||||
const route = useRoute()
|
|
||||||
|
|
||||||
return {
|
|
||||||
links: computed(() => {
|
|
||||||
const l = []
|
|
||||||
|
|
||||||
if (route.query.ref === "jamrss") {
|
|
||||||
l.push({
|
|
||||||
icon: EmailIcon,
|
|
||||||
href: "mailto:apps@moritzruth.de",
|
|
||||||
label: "Email (regarding apps)",
|
|
||||||
description: "apps@moritzruth.de"
|
|
||||||
}, {
|
|
||||||
icon: EmailIcon,
|
|
||||||
href: "mailto:hey@deltaa.xyz",
|
|
||||||
label: "Email (everything else)",
|
|
||||||
description: "hey@deltaa.xyz"
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
l.push({
|
|
||||||
icon: EmailIcon,
|
|
||||||
href: "mailto:hey@deltaa.xyz",
|
|
||||||
label: "Email",
|
|
||||||
description: "hey@deltaa.xyz"
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
l.push(
|
|
||||||
{
|
{
|
||||||
icon: MatrixIcon,
|
icon: MatrixIcon,
|
||||||
href: "https://moritzruth.de/matrix",
|
href: "https://moritzruth.de/matrix",
|
||||||
|
@ -78,16 +44,10 @@
|
||||||
description: "@moritz:deltaa.xyz"
|
description: "@moritz:deltaa.xyz"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: TwitterIcon,
|
icon: EmailIcon,
|
||||||
href: "https://moritzruth.de/twitter",
|
href: "mailto:hey@deltaa.xyz",
|
||||||
label: "Twitter",
|
label: "Email",
|
||||||
description: "moritzruth"
|
description: "hey@deltaa.xyz"
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
return l
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue