File tree Expand file tree Collapse file tree 1 file changed +89
-0
lines changed Expand file tree Collapse file tree 1 file changed +89
-0
lines changed Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments