summaryrefslogtreecommitdiff
path: root/esm/scripts/presentation.js
blob: 42d8c05b7c123a5567bd553727af59caa5a94d58 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
export default {

    name: 'test',
    title: 'some presentation title',
    base_url: 'https://swiperjs.com/demos/images',

    effect: 'flip',
    pagination: 'dynamic',

    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: 'nature-1.jpg' },
        {
            image: 'nature-2.jpg',
            poi: [
                {
                    text: 'some label',
                    style: [
                        `{ position: absolute; top: 75%; left: 25%;
                        font-size: 3em; font-family:Arial; font-weight:bold;
                        color:#fff; background:#3337;
                        border-radius: 6px; padding: 4px 8px; }`,
                        ':hover { color:red; background: #222; }'
                    ]
                },
                {
                    text: 'some link',
                    link: 'https://www.sklavenitis.gr',
                    style: [
                        ` a { position: absolute; top: 80%; left: 25%;
                        font-size: 3em; font-family:Arial; font-weight:bold;
                        color:#fff; background:#3337;
                        border-radius: 6px; padding: 4px 8px; }`,
                        ' a:hover { color:red; background: #222; }'
                    ]

                }
            ]
        },
        { image: 'nature-3.jpg' },
        { image: 'nature-4.jpg' },
        { image: 'nature-5.jpg' }
    ]

}