mirror of https://github.com/mitchell/mjfs-us.git
Modify contact buttons
This commit is contained in:
parent
f56da3602e
commit
9aaafff796
|
@ -3,9 +3,7 @@ import { VPButton } from "vitepress/theme";
|
|||
import { useClipboard } from "@vueuse/core";
|
||||
|
||||
const email = "m@mjfs.us";
|
||||
const phone = "+19498727279";
|
||||
const discord = "zettam";
|
||||
const formattedPhone = "+1 (949) 872 7279";
|
||||
const formattedDiscord = "zettam on Discord";
|
||||
const discordLink = "https://discord.com/users/145338365133193226/";
|
||||
|
||||
|
@ -22,12 +20,6 @@ const copiedMsg = (text: string) => `Copied ${text} to clipboard`;
|
|||
:text="text === email ? copiedMsg(email) : 'E-mail'"
|
||||
@click="copy(email)"
|
||||
/>
|
||||
<VPButton
|
||||
theme="alt"
|
||||
class="button"
|
||||
:text="text === phone ? copiedMsg(phone) : 'Phone'"
|
||||
@click="copy(phone)"
|
||||
/>
|
||||
<VPButton
|
||||
theme="alt"
|
||||
class="button"
|
||||
|
@ -42,12 +34,6 @@ const copiedMsg = (text: string) => `Copied ${text} to clipboard`;
|
|||
:href="`mailto:${email}`"
|
||||
:text="email"
|
||||
/>
|
||||
<VPButton
|
||||
theme="alt"
|
||||
class="button"
|
||||
:href="`tel:${phone}`"
|
||||
:text="formattedPhone"
|
||||
/>
|
||||
<VPButton
|
||||
theme="alt"
|
||||
class="button"
|
||||
|
|
Loading…
Reference in New Issue