Skip to content

Commit ea01f04

Browse files
committed
chore: add missing homepage
1 parent dd73d9f commit ea01f04

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

website/src/pages/home.vue

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<template>
2+
<section class="content">
3+
<img width="750px" height="375px" src="/social-media-preview-750.png" alt="social media preview">
4+
5+
<div class="buttons">
6+
<a
7+
href="javascript:;"
8+
@click="onRoute( { route: 'pages/guide/introduction' } )"
9+
class="button"
10+
style="margin-right: 15px;"
11+
>🏇Get Started</a>
12+
13+
<a
14+
target="_blank"
15+
href="https://github.com/nut-project/nut"
16+
class="button is-primary"
17+
>
18+
<i style="margin-right: 5px;font-size: 15px;" class="nut-icons nut-icon-github-fill"></i>
19+
GitHub
20+
</a>
21+
</div>
22+
</section>
23+
</template>
24+
25+
<script>
26+
export default {
27+
filters: {
28+
toUpperCase( value ) {
29+
return value.toUpperCase()
30+
},
31+
},
32+
33+
created() {
34+
this.$ctx.api.quicklink.prefetch( [
35+
'pages/guide/introduction',
36+
'pages/docs/config',
37+
] )
38+
},
39+
40+
methods: {
41+
onRoute( item ) {
42+
if ( item.route ) {
43+
this.$ctx.api.router.push( item.route )
44+
return
45+
}
46+
47+
if ( item.link ) {
48+
window.open( item.link )
49+
}
50+
}
51+
},
52+
}
53+
</script>
54+
55+
<style lang="less" scoped>
56+
.content {
57+
padding-top: 100px;
58+
display: flex;
59+
align-items: center;
60+
flex-direction: column;
61+
}
62+
63+
.buttons {
64+
display: flex;
65+
align-items: center;
66+
justify-content: center;
67+
}
68+
69+
.button {
70+
padding: 0 20px;
71+
border: solid 1px #000;
72+
height: 46px;
73+
line-height: 46px;
74+
cursor: pointer;
75+
min-width: 190px;
76+
text-align: center;
77+
border-radius: 4px;
78+
text-decoration: none;
79+
background-color: #fff;
80+
color: #000;
81+
border: solid 1px #000;
82+
83+
&.is-primary {
84+
background-color: #000;
85+
color: #fff;
86+
border: solid 1px #000;
87+
}
88+
}
89+
</style>

0 commit comments

Comments
 (0)