Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace medium blog with mirror #339

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 21 additions & 48 deletions src/blocks/SocialBlock.vue
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
<template>
<div class="socialIcons">
<a title="Blog" href="https://zksync.mirror.xyz/" class="socialItem" target="_blank">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<path
d="M3.5 9.51613C3.5 4.8128 7.30558 1 12 1C16.6944 1 20.5 4.8128 20.5 9.51613V21.7059C20.5 22.4206 19.9217 23 19.2083 23H4.79167C4.0783 23 3.5 22.4206 3.5 21.7059V9.51613Z"
fill="currentColor"
></path>
</svg>
</a>
<a title="Discord Community" href="https://join.zksync.dev/" class="socialItem" target="_blank">
<v-icon name="ri-discord-fill" class="ri-discord-fill" />
</a>
<a title="Telegram Community" href="https://t.me/zksync" class="socialItem" target="_blank">
<v-icon name="fa-telegram-plane" class="fa-telegram-plane" />
</a>
<a title="Twitter Community" href="https://twitter.com/zksync" class="socialItem" target="_blank">
<v-icon name="bi-twitter" class="bi-twitter" />
</a>
<a
v-for="socialProfile in socialNetworks"
:key="socialProfile.name"
:href="socialProfile.url"
v-if="location !== 'footer'"
title="All Contacts"
href="https://docs.zksync.io/contact.html"
class="socialItem"
target="_blank"
>
<v-icon :name="socialProfile.icon" :class="[socialProfile.icon]" />
<v-icon name="ri-at-line" class="ri-at-line" />
</a>
</div>
</template>

<script lang="ts">
import Vue, { PropType } from "vue";

type SingleIcon = {
name: string;
icon: string;
url: string;
hideIn?: string;
};

type Location = "header" | "footer";

export default Vue.extend({
Expand All @@ -32,42 +42,5 @@ export default Vue.extend({
default: "header",
},
},
data() {
return {
socialProfiles: [
{
name: "Medium Blog",
icon: "fa-medium-m",
url: "https://medium.com/matter-labs",
},
{
name: "Discord Community",
icon: "ri-discord-fill",
url: "https://join.zksync.dev/",
},
{
name: "Telegram Community",
icon: "fa-telegram-plane",
url: "https://t.me/zksync",
},
{
name: "Twitter Community",
icon: "bi-twitter",
url: "https://twitter.com/zksync",
},
{
name: "All Contacts",
icon: "ri-at-line",
url: "https://docs.zksync.io/contact.html",
hideIn: "footer",
},
] as SingleIcon[],
};
},
computed: {
socialNetworks(): SingleIcon[] {
return this.socialProfiles.filter((item: SingleIcon) => item?.hideIn !== this.location);
},
},
});
</script>
Loading