summaryrefslogtreecommitdiff
path: root/demos/scripts/presentation.js
blob: 46b0fe07ac6ba078d024aa600e0e14cdc57b0c26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
define(function() {

    return config = {
        name: 'test',
        title: 'some presentation title',
        effect: 'none',
        pagination: 'classic',
        css: `
            html,
            body {
                position: relative;
                height: 100%;
            }

            body {
                background: #abc;
                font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
                font-size: 14px;
                color: #000;
                margin: 0;
                padding: 0;
            }

            .swiper {
                width: 80vw;
                height: 80vh;
                margin: 0 auto;
                padding-top: 2em;
            }

            .swiper-slide {
                background-position: center;
                background-size: cover;
            }

            .swiper-slide img {
                display: block;
                width: 100%;
            }
        `,
        slides: [
            { image: 'https://swiperjs.com/demos/images/nature-1.jpg' },
            { image: 'https://swiperjs.com/demos/images/nature-2.jpg' },
            { image: 'https://swiperjs.com/demos/images/nature-3.jpg' },
            { image: 'https://swiperjs.com/demos/images/nature-4.jpg' },
        ]
    };

})