explorer-app/components/Project/ProjectOpeness.vue

299 lines
7 KiB
Vue
Raw Normal View History

2023-12-19 18:43:42 +01:00
<script setup lang="ts">
import type { Project } from '~/types'
defineProps<{
project: Project
}>()
</script>
<template>
<ProjectDetailCategoryDivider
title="OPENESS"
badge-text="3/10"
>
<UnoIcon
i-web-code_v2
text-24px
/>
2023-12-19 18:43:42 +01:00
</ProjectDetailCategoryDivider>
<ProjectDetailContainer>
<div
mt-32px
text="14px sm:16px"
leading-24px
font-400
>
2023-12-19 18:43:42 +01:00
<h3 text-app-text-grey>
{{ 'Project Description' }}
</h3>
<span
text="14px sm:16px"
leading-20px
>{{ project.description ?? '---' }}</span>
2023-12-19 18:43:42 +01:00
</div>
<div mt-24px>
<h3
text="14px sm:16px app-text-grey"
leading-20px
>
2023-12-19 18:43:42 +01:00
{{ 'Infrastructure links' }}
</h3>
<div
grid
grid-cols-2
gap-16px
mt-8px
lg:grid-cols-4
>
<ProjectOpenessLink
v-if="project.links?.web"
:to="project.links?.web"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon i-web-website />
</template>
{{ 'Website' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.blog"
:to="project.links.blog"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon i-web-website />
</template>
{{ 'Blog' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.github"
:to="project.links?.github"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-github
opacity-30
text-27px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Github' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.docs"
:to="project.links?.docs"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-documents
text-24px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Docs' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.block_explorer"
:to="project.links.block_explorer"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-explorer
opacity-30
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Explorer' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.snapshot"
:to="project.links.snapshot"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-snapshot
text-32px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Snapshot' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.token"
:to="project.links.token"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-token
text-28px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Token' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.coingecko"
:to="project.links.coingecko"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-coingecko
opacity-30
text-24px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Coingecko' }}
</ProjectOpenessLink>
</div>
</div>
<div mt-24px>
<h3
text="14px sm:16px app-text-grey"
leading-20px
>
2023-12-19 18:43:42 +01:00
{{ 'Socials' }}
</h3>
<div
grid
grid-cols-2
gap-16px
mt-8px
lg:grid-cols-4
>
<ProjectOpenessLink
v-if="project.links?.forum"
:to="project.links.forum"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-forum
opacity-30
text-28px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Forum' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.discord"
:to="project.links.discord"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-discord
text-27px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Discord' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.twitter"
:to="project.links.twitter"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-twitter_x
opacity-30
text-22px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Twitter' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.lens"
:to="project.links.lens"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-lens
text-32px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Lens' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.farcaster"
:to="project.links.farcaster"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-farcaster
text-26px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Farcaster' }}
</ProjectOpenessLink>
<ProjectOpenessLink
v-if="project.links?.telegram"
:to="project.links.telegram"
>
2023-12-19 18:43:42 +01:00
<template #prefix>
<UnoIcon
i-web-telegram
opacity-30
text-22px
/>
2023-12-19 18:43:42 +01:00
</template>
{{ 'Telegram' }}
</ProjectOpenessLink>
</div>
</div>
<div mt-24px>
<ProjectOpenessTeamMembers :members="project.team" />
</div>
<div
grid
grid-cols-2
items-start
mt-32px
gap-y-26px
lg:grid-cols-4
>
<ProjectInfoItem
:check-undefined="project.product_launch_day"
title="Product launch day"
>
2023-12-19 18:43:42 +01:00
{{ project.product_launch_day }}
</ProjectInfoItem>
<ProjectInfoItem
title="Opensource"
bold
2023-12-19 18:43:42 +01:00
:check-undefined="project.blockchain_features?.opensource"
:color=" project.blockchain_features?.opensource ? '#A8FF18' : '#FF0000'"
>
{{ project.blockchain_features?.opensource ? 'Yes' : 'No' }}
</ProjectInfoItem>
</div>
<div
mt-32px
w-full
>
2023-12-19 18:43:42 +01:00
<ProjectInfoItem
:check-undefined="project.funding"
title="Funding"
bold
2023-12-19 18:43:42 +01:00
w-full
>
<template
v-for="fund in project.funding"
:key="fund.name"
>
<div
mt-16px
grid
grid-cols-2
sm:grid-cols-4
>
2023-12-19 18:43:42 +01:00
<span v-if="fund.name">{{ fund.name }}</span>
<span
v-if="fund.time"
font-400
>{{ fund.time }}</span>
<span
v-if="fund.time"
font-400
text-app-text-grey
>{{ fund.type }}</span>
<span
v-if="fund.time"
font-400
>{{ fund.value }}</span>
2023-12-19 18:43:42 +01:00
</div>
</template>
</ProjectInfoItem>
</div>
</ProjectDetailContainer>
</template>