Skip to content

Commit

Permalink
draft for news section
Browse files Browse the repository at this point in the history
  • Loading branch information
gluneau committed May 26, 2023
1 parent 725032d commit eab56cb
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/dapp-staking/dapp/Dapp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
<dapp-images :dapp="dapp" />
<builders :dapp="dapp" />
<div class="row--project-overview">
<project-overview :dapp="dapp" />
<div class="col--project-overview">
<project-overview :dapp="dapp" />
<project-news :dapp="dapp" />
</div>
<project-details :dapp="dapp" />
</div>
<dapp-stats-charts :dapp="dapp" />
Expand All @@ -29,6 +32,7 @@ import DappStatistics from 'src/components/dapp-staking/dapp/DappStatistics.vue'
import DappStatsCharts from 'src/components/dapp-staking/dapp/DappStatsCharts.vue';
import ProjectDetails from 'src/components/dapp-staking/dapp/ProjectDetails.vue';
import ProjectOverview from 'src/components/dapp-staking/dapp/ProjectOverview.vue';
import ProjectNews from 'src/components/dapp-staking/dapp/ProjectNews.vue';
import { useDappRedirect, useDispatchGetDapps, useStakingList } from 'src/hooks';
import { Path } from 'src/router';
import { networkParam } from 'src/router/routes';
Expand All @@ -44,6 +48,7 @@ export default defineComponent({
DappImages,
Builders,
ProjectOverview,
ProjectNews,
ProjectDetails,
BackToPage,
DappStatsCharts,
Expand Down
31 changes: 31 additions & 0 deletions src/components/dapp-staking/dapp/ProjectNews.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<template>
<div class="wrapper--project-overview">
<div class="row--overview-title">
<span class="text--xl text--color"> {{ $t('dappStaking.dappPage.projectNews') }}</span>
</div>
<div class="box--overview">
<!-- eslint-disable vue/no-v-html -->
<div class="markdown" v-html="sanitizeData(dapp.dapp.description)" />
</div>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { sanitizeData } from 'src/hooks/helper/markdown';
export default defineComponent({
props: {
dapp: {
type: Object,
required: true,
},
},
setup(props) {
return { sanitizeData };
},
});
</script>

<style lang="scss" scoped>
@use 'src/components/dapp-staking/dapp/styles/project-overview.scss';
@use 'src/css/markdown.scss';
</style>
1 change: 1 addition & 0 deletions src/i18n/en-US/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export default {
totalStaker: 'Total Staker',
team: 'Team',
projectOverview: 'Project Overview',
projectNews: 'Project News',
projectSite: 'Project Site',
goToApp: 'Go to App',
goToWebsite: 'Go to website',
Expand Down
1 change: 1 addition & 0 deletions src/i18n/fr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ export default {
totalStaker: 'Participants total',
team: 'Équipe',
projectOverview: "Vue d'ensemble du projet",
projectNews: 'Nouvelles du projet',
projectSite: 'Site du projet',
goToApp: "Accéder à l'application",
goToWebsite: 'Accéder au site Web',
Expand Down
1 change: 1 addition & 0 deletions src/i18n/it/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export default {
totalStaker: 'Staker Totali',
team: 'Team',
projectOverview: 'Panoramica del progetto',
projectNews: 'Project News',
projectSite: 'Sito Web del progetto',
goToApp: "Vai all'app",
goToWebsite: 'Vai al sito web',
Expand Down
1 change: 1 addition & 0 deletions src/i18n/ja/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export default {
totalStaker: 'Total Staker',
team: 'Team',
projectOverview: 'Project Overview',
projectNews: 'Project News',
projectSite: 'Project Site',
goToApp: 'Go to App',
goToWebsite: 'Go to website',
Expand Down
1 change: 1 addition & 0 deletions src/i18n/kr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export default {
totalStaker: '총 스테이커 수',
team: '팀',
projectOverview: '프로젝트 개요',
projectNews: 'Project News',
projectSite: '프로젝트 사이트',
goToApp: '앱으로 이동',
goToWebsite: '웹사이트로 이동',
Expand Down
1 change: 1 addition & 0 deletions src/i18n/pt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export default {
totalStaker: 'Total do Staker',
team: 'Time',
projectOverview: 'Visão Geral do Projeto',
projectNews: 'Project News',
projectSite: 'Site do Projeto',
goToApp: 'Ir para o App',
goToWebsite: 'Ir para o website',
Expand Down

0 comments on commit eab56cb

Please sign in to comment.