Skip to content

Commit bbad7b0

Browse files
committed
Home: Add hidden Pie & Donut chart ilustrations
1 parent d548c5e commit bbad7b0

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/.vuepress/styles/index.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ h1, h2, h3, h4, h5, h6, .sidebar-heading, .site-name, .nav-link
6464
.home .chart:focus a
6565
transform translateY(-8px) scale(1.05)
6666

67+
.home .chart.hidden
68+
display none
69+
6770
.home .contributors
6871
display flex
6972
justify-content space-evenly

src/index.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,28 @@ The [source code is available on GitHub](https://github.com/ChartsCSS/charts.css
178178
<p>3D Tilt <br> Effect</p>
179179
</div>
180180

181+
<div class="chart hidden">
182+
<a href="./charts/pie/" aria-label="Pie Chart">
183+
<svg viewBox="0 0 100 100">
184+
<path d="M50,10V50L17.24,27.06A39.92,39.92,0,0,1,50,10Z" style="fill:#fff; opacity:0.3;" />
185+
<path d="M50,50,39.65,88.64A40,40,0,0,1,17.24,27.06Z" style="fill:#fff; opacity:0.6;" />
186+
<path d="M90,50A40,40,0,0,1,39.65,88.64L50,50V10A40,40,0,0,1,90,50Z" style="fill:#fff; opacity:0.9;" />
187+
</svg>
188+
</a>
189+
<p>Pie <br> Chart</p>
190+
</div>
191+
192+
<div class="chart hidden">
193+
<a href="./charts/donut/" aria-label="Donut Chart">
194+
<svg viewBox="0 0 100 100">
195+
<path d="M50,30V10A39.92,39.92,0,0,0,17.24,27.06L33.63,38.54A19.94,19.94,0,0,1,50,30Z" style="fill:#fff; opacity:0.3;" />
196+
<path d="M30,50a19.85,19.85,0,0,1,3.63-11.46L17.24,27.06A40,40,0,0,0,39.65,88.64L44.83,69.3A20,20,0,0,1,30,50Z" style="fill:#fff; opacity:0.6;" />
197+
<path d="M50,10V30a20,20,0,1,1-5.17,39.3L39.65,88.64A40,40,0,1,0,50,10Z" style="fill:#fff; opacity:0.9;" />
198+
</svg>
199+
</a>
200+
<p>Donut <br> Chart</p>
201+
</div>
202+
181203
</div>
182204

183205
<div class="features">

0 commit comments

Comments
 (0)