Skip to content

Commit 08c0a8a

Browse files
committed
Update documentation and improve UI.
1 parent 403ee37 commit 08c0a8a

File tree

3 files changed

+29
-30
lines changed

3 files changed

+29
-30
lines changed

src/app.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template lang="pug">
22
v-app(:class="{ ready: ready }" v-scroll="onScroll")
3-
v-container
3+
v-container.px-0(fluid)
44
top-bar(:offset-top="offsetTop")
55
router-view
66

src/documentation/_typography.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ h1 {
2020

2121
h2 {
2222
margin-top: 3em;
23-
font-size: 2em;
23+
font-size: 2.2em;
2424
color: $primary;
2525
padding-bottom: 0.3em;
2626
border-bottom: 1px solid $lighter-text;
2727
}
2828

2929
h3 {
30-
font-size: 1.5em;
30+
font-size: 1.7em;
3131
margin-top: 4em;
3232
color: $secondary;
3333
}

src/documentation/index.vue

+26-27
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
v-icon(large color="white") pause_circle_outline
161161
vueper-slide(v-for="(slide, i) in slides1" :key="slide.id" :title="slide.title" :content="slide.content" :style="'background-color: ' + colors[i % 4]")
162162

163-
.subtitle-1.mt-6 Basic autoplay (with pause on mouseover) source code:
163+
p.subtitle-1.mt-6 Basic autoplay (with pause on mouseover) source code:
164164
ssh-pre.mt-2(language="html-vue" label="Vue Template").
165165
&lt;vueper-slides autoplay&gt;
166166
&lt;vueper-slide v-for="(slide, i) in slides"
@@ -173,7 +173,7 @@
173173
&lt;/template&gt;
174174
&lt;/vueper-slides&gt;
175175

176-
.subtitle-1 This example full source code:
176+
p.subtitle-1 This example full source code:
177177
ssh-pre.mt-2(language="html-vue" label="Vue Template").
178178
&lt;button @click="$refs.myVueperSlides[`${autoPlaying ? 'pause' : 'resume'}Autoplay`]();autoPlaying = !autoPlaying"&gt;
179179
{{ "\{\{ autoPlaying ? 'Pause' : 'Resume' \}\}" }}
@@ -213,7 +213,7 @@
213213
})
214214

215215
h3
216-
a(href="#ex--arrows-and-bullets") Arrows &amp; Bullets
216+
a(href="#ex--arrows-and-bullets") Custom Arrows &amp; Bullets
217217
a(name="ex--arrows-and-bullets")
218218
p.
219219
This example uses custom arrows and positions the bullets outside of the slideshow.#[br]
@@ -344,10 +344,11 @@
344344
vueper-slides
345345
vueper-slide(v-for="i in 4" :key="i" :style="'background-color: ' + ['#ff5252', '#42b983'][i % 2]")
346346
template(v-slot:slide-content)
347-
v-icon(color="white") check
348-
| Complex content {{ i.toString() }} with Vue.js
349-
| {{ 1 === 1 ? 'interpreted' : 'non-interpreted' }} compilable content like
350-
| components &amp; #[span(v-pre) {{&nbsp;mustaches&nbsp;}}].
347+
.subtitle-1
348+
v-icon.mr-2(color="white") check
349+
| Complex content {{ i.toString() }} with Vue.js
350+
| {{ 1 === 1 ? 'interpreted' : 'non-interpreted' }} compilable content like
351+
| components &amp; #[span(v-pre) {{&nbsp;mustaches&nbsp;}}].
351352
ssh-pre(language="html-vue" label="HTML Vue Template").
352353
&lt;vueper-slides&gt;
353354
&lt;vueper-slide
@@ -374,17 +375,16 @@
374375
Well, nothing to do really. It will just update by itself!
375376
#[br]For this demonstration the content is complex (refer to #[a(href="#ex--complex-slide-title-and-content") Complex Slide Title &amp; Content] for more details) and uses
376377
Vue JS Vuetify components like #[span.code v-layout], #[span.code v-icon] &amp; mustaches #[span.code(v-pre) {{ }}].
377-
v-layout.max-widthed(align-start wrap)
378-
v-layout.flex.xs12.sm6(align-center)
379-
div Try it:
380-
v-layout.flex.xs10.sm11(align-center wrap)
381-
v-btn.ma-1(color="primary" @click="toggleSlidesTime" small)
382-
v-icon.pr-2 {{ slidesTimeTimerId ? 'highlight_off' : 'access_time' }}
383-
| {{ slidesTimeTimerId ? 'Stop' : 'Keep' }} updating time
384-
v-slide-x-transition.xs6.sm3
385-
v-chip(v-show="slidesTimeTimerId === 0" small outlined disabled) CPU says THANK YOU!
386-
v-layout.flex.xs12.sm6.mb-4(align-center wrap)
387-
v-btn.ma-1(color="primary" @click="contentPositionChange" small)
378+
v-layout.max-widthed.mt-1.mb-4(align-center wrap)
379+
v-layout.shrink.mr-4(align-center)
380+
| Try it:
381+
v-btn.mx-2(color="primary" @click="toggleSlidesTime" small)
382+
v-icon.pr-2 {{ slidesTimeTimerId ? 'highlight_off' : 'access_time' }}
383+
| {{ slidesTimeTimerId ? 'Stop' : 'Keep' }} updating time
384+
v-expand-x-transition
385+
v-chip(v-if="!slidesTimeTimerId" small outlined) CPU says THANK YOU!
386+
v-layout(align-center wrap)
387+
v-btn.mx-2(color="primary" @click="contentPositionChange" small)
388388
v-icon swap_vert
389389
| &nbsp;Move content position
390390
strong.code slide-content-outside="#[span.primary--text {{ contentPosition }}]"
@@ -398,26 +398,25 @@
398398
template(v-slot:slide-content)
399399
v-layout(align-center justify-center)
400400
v-icon.pr-3(color="white" size="5em") access_time
401-
div.text-xs-left
402-
div.py-2.title {{ slide.title }}
401+
.text-left
402+
.headline {{ slide.title }}
403403
div {{ slide.content }}
404404
ssh-pre(language="html-vue" label="HTML Vue Template").
405405
&lt;button @click="toggleSlidesTime"&gt;Keep updating time&lt;/button&gt;
406-
&lt;vueper-slides :slide-ratio="1/4" :slide-content-outside="contentPosition"&gt;
406+
407+
&lt;vueper-slides :slide-ratio="1/4" autoplay :slide-content-outside="contentPosition"&gt;
407408
&lt;vueper-slide
408409
v-for="(slide, i) in slides"
409410
:key="i"
410-
:title="slide.title"
411-
:content="slide.content"
412411
:style="'background-color: ' + ['#42b983', '#ff5252'][i % 2]"&gt;
413412
&lt;template slot:slide-content&gt;
414-
&lt;v-layout"&gt;
415-
&lt;v-icon&gt;access_time&lt;/v-icon&gt;
413+
&lt;div class="flex"&gt;
414+
&lt;i "icon icon-access-time"&gt;&lt;/i&gt;
416415
&lt;div&gt;
417416
&lt;div&gt;{{ '\{\{ slide.title \}\}' }}&lt;/div&gt;
418417
&lt;div&gt;{{ '\{\{ slide.content \}\}' }}&lt;/div&gt;
419418
&lt;/div&gt;
420-
&lt;/v-layout&gt;
419+
&lt;/div&gt;
421420
&lt;/template&gt;
422421
&lt;/vueper-slide&gt;
423422
&lt;/vueper-slides&gt;
@@ -535,7 +534,7 @@
535534
This example demonstrates how to use Vueper Slides in a center mode.#[br]
536535
It also has a shorter transition speed #[span.code transition-speed='250']
537536
and no shadow thanks to the #[span.code no-shadow] class.
538-
vueper-slides.no-shadow.ex--center-mode(arrows-outside bullets-outside transition-speed="250")
537+
vueper-slides.no-shadow.ex--center-mode.pt-6(arrows-outside bullets-outside transition-speed="250")
539538
vueper-slide(v-for="i in 6" :key="i" :title="i.toString()" :style="'background-color: ' + ['#ff5252', '#42b983'][i % 2]")
540539
ssh-pre(language="html-vue" label="HTML Vue Template").
541540
&lt;vueper-slides class="no-shadow" arrows-outside bullets-outside transition-speed="250"&gt;

0 commit comments

Comments
 (0)