-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathHome.vue
113 lines (110 loc) · 2.71 KB
/
Home.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<template>
<nav-mobile />
<banner />
<navbar class="nav-desktop" />
<news-banner
v-if="$te('newsBanner')"
class="mb-small mt-small" />
<div
v-else
class="mb-large" />
<div class="container mb-xlarge">
<!-- introduction -->
<page-section-twitter
title-id="introduction"
:title="$t('introduction.title')"
:body="$t('introduction.body')">
<div class="mt-small mb-small">
<company-carousel />
</div>
</page-section-twitter>
<!-- getting started -->
<page-section
title-id="getting-started"
:title="$t('gettingStarted.title')"
:body="$t('gettingStarted.body')">
<tab-box
class="col-sm-12 col-lg-9 col-lg-offset-3"
:tabs="$tm('gettingStarted.tabs')">
<!-- list of learning resouces on 3rd tab -->
<template v-slot:tab-3>
<div v-for="item in $tm('resourcesList.learning')" :key="item.name" class="mt-small mb-small">
<a :href="item.href">
{{ item.name }}
</a>
<div class="type-small" v-html="item.description" />
</div>
</template>
</tab-box>
</page-section>
<!-- community -->
<page-section
title-id="community"
:title="$t('community.title')"
:body="$t('community.body')">
<div class="col-sm-12 col-lg-9 col-lg-offset-3 row">
<community-items />
<button class="theme mt-medium" :class="$store.state.isMobile ? 'ml-xsmall' : ''">
<router-link :to="{ name: 'CoC' }" class="type-no-underline">
{{ $t('community.coc') }}
</router-link>
</button>
</div>
</page-section>
<!-- resources -->
<page-section
title-id="resources"
:title="$t('resources.title')"
:body="$t('resources.body')">
<resource-box class="col-sm-12 col-lg-9 col-lg-offset-3" />
</page-section>
<!-- development -->
<page-section
title-id="development"
:title="$t('development.title')"
:body="$t('development.body')">
<sponsors class="col-sm-12 col-lg-9 col-lg-offset-3" />
</page-section>
</div>
<page-footer />
</template>
<script>
import {
NewsBanner,
Banner,
PageFooter,
Navbar,
NavMobile,
PageSection,
PageSectionTwitter,
CompanyCarousel,
CommunityItems,
ResourceBox,
TabBox,
Sponsors
} from 'Components'
export default {
name: 'App',
components: {
NewsBanner,
Banner,
PageFooter,
Navbar,
NavMobile,
PageSection,
PageSectionTwitter,
CompanyCarousel,
CommunityItems,
ResourceBox,
TabBox,
Sponsors
}
}
</script>
<style scoped>
@media screen and (max-width: 950px) {
.nav-desktop {
display: none;
}
}
</style>