Skip to content

Commit 6ef85af

Browse files
committed
✨ Add docs landingpage
1 parent 6fcf7c1 commit 6ef85af

File tree

3 files changed

+88
-1
lines changed

3 files changed

+88
-1
lines changed

docs/_landing.html

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<h1>📈 vue-chartjs</h1>
2+
3+
<h2>⚡ Easy and beautiful charts with Chart.js and Vue.js</h2>
4+
5+
<ul class="features">
6+
<li>Easy for both beginners and pros 🙌</li>
7+
<li>Simple to use, easy to extend 💪</li>
8+
<li>With the full power of chart.js 💯</li>
9+
</ul>
10+
11+
<div class="landing-buttons">
12+
<a class="landing-button" target="_blank" href="https://github.com/apertureless/vue-chartjs">
13+
GitHub
14+
</button>
15+
16+
<a class="landing-button" router-link="/home">
17+
Docs
18+
</a>
19+
20+
<a class="landing-button" target="_blank" href="https://github.com/apertureless/vue-chartjs">
21+
Demo
22+
</a>
23+
</div>
24+
25+
<style>
26+
h1 {
27+
margin: 0;
28+
margin-top: -50px;
29+
font-weight: normal;
30+
font-size: 40px;
31+
letter-spacing: 1px;
32+
}
33+
h2 {
34+
margin-top: 20px;
35+
color: #999;
36+
font-weight: normal;
37+
letter-spacing: 1px;
38+
}
39+
.landing {
40+
padding: 10px;
41+
display: -webkit-box;
42+
display: -ms-flexbox;
43+
display: flex;
44+
-webkit-box-align: center;
45+
-ms-flex-align: center;
46+
align-items: center;
47+
-webkit-box-pack: center;
48+
-ms-flex-pack: center;
49+
justify-content: center;
50+
-webkit-box-orient: vertical;
51+
-webkit-box-direction: normal;
52+
-ms-flex-direction: column;
53+
flex-direction: column;
54+
height: 100%;
55+
-webkit-user-select: none;
56+
user-select: none;
57+
}
58+
.features {
59+
margin-top: 20px;
60+
margin-bottom: 60px;
61+
font-size: 16px;
62+
line-height: 1.7;
63+
}
64+
.landing-button {
65+
border: 1px solid #ccc;
66+
border-radius: 33px;
67+
padding: 10px 30px;
68+
background-color: white;
69+
display: inline-block;
70+
margin-right: 20px;
71+
color: #333;
72+
}
73+
.landing-button:hover {
74+
border-color: #42b983;
75+
color: #42b983;
76+
text-decoration: none;
77+
}
78+
</style>

docs/config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
self.$config = {
2-
// config...
2+
plugins: [
3+
evanyou()
4+
],
5+
landing: true,
6+
// or custom path
7+
landing: '_landing.html',
8+
repo: 'apertureless/vue-chartjs',
9+
twitter: 'apertureless',
10+
'edit-link': 'https://github.com/apertureless/vue-chartjs/blob/master/docs'
311
}

docs/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<body>
1111
<!-- don't remove this part start -->
1212
<div id="app"></div>
13+
<script src="https://unpkg.com/docute-evanyou"></script>
1314
<script src="./config.js"></script>
1415
<script src="https://unpkg.com/docute@2/dist/docute.js"></script>
1516
<!-- don't remove this part end -->

0 commit comments

Comments
 (0)