mirror of
https://github.com/KevinMidboe/vue-chartjs.git
synced 2025-10-29 18:00:20 +00:00
✨ Add docs landingpage
This commit is contained in:
78
docs/_landing.html
Normal file
78
docs/_landing.html
Normal file
@@ -0,0 +1,78 @@
|
||||
<h1>📈 vue-chartjs</h1>
|
||||
|
||||
<h2>⚡ Easy and beautiful charts with Chart.js and Vue.js</h2>
|
||||
|
||||
<ul class="features">
|
||||
<li>Easy for both beginners and pros 🙌</li>
|
||||
<li>Simple to use, easy to extend 💪</li>
|
||||
<li>With the full power of chart.js 💯</li>
|
||||
</ul>
|
||||
|
||||
<div class="landing-buttons">
|
||||
<a class="landing-button" target="_blank" href="https://github.com/apertureless/vue-chartjs">
|
||||
GitHub
|
||||
</button>
|
||||
|
||||
<a class="landing-button" router-link="/home">
|
||||
Docs
|
||||
</a>
|
||||
|
||||
<a class="landing-button" target="_blank" href="https://github.com/apertureless/vue-chartjs">
|
||||
Demo
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
h1 {
|
||||
margin: 0;
|
||||
margin-top: -50px;
|
||||
font-weight: normal;
|
||||
font-size: 40px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
h2 {
|
||||
margin-top: 20px;
|
||||
color: #999;
|
||||
font-weight: normal;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.landing {
|
||||
padding: 10px;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.features {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 60px;
|
||||
font-size: 16px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.landing-button {
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 33px;
|
||||
padding: 10px 30px;
|
||||
background-color: white;
|
||||
display: inline-block;
|
||||
margin-right: 20px;
|
||||
color: #333;
|
||||
}
|
||||
.landing-button:hover {
|
||||
border-color: #42b983;
|
||||
color: #42b983;
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
@@ -1,3 +1,11 @@
|
||||
self.$config = {
|
||||
// config...
|
||||
plugins: [
|
||||
evanyou()
|
||||
],
|
||||
landing: true,
|
||||
// or custom path
|
||||
landing: '_landing.html',
|
||||
repo: 'apertureless/vue-chartjs',
|
||||
twitter: 'apertureless',
|
||||
'edit-link': 'https://github.com/apertureless/vue-chartjs/blob/master/docs'
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<body>
|
||||
<!-- don't remove this part start -->
|
||||
<div id="app"></div>
|
||||
<script src="https://unpkg.com/docute-evanyou"></script>
|
||||
<script src="./config.js"></script>
|
||||
<script src="https://unpkg.com/docute@2/dist/docute.js"></script>
|
||||
<!-- don't remove this part end -->
|
||||
|
||||
Reference in New Issue
Block a user