forked from hsma-programme/hsma_project_handbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimpact_stories.qmd
121 lines (102 loc) · 3.26 KB
/
impact_stories.qmd
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
title: Project Case Studies
title-block-banner: resources/banner.png
page-layout: full
grid:
body-width: 900px
gutter-width: 1.5rem
toc: false
---
```{=html}
<style>
body {
text-align: center;
}
.splide__slide img {
width: 100%;
max-height: auto;
padding: 20px;
}
.splide__optional-button-container {
margin-bottom: 1rem;
margin-top: 1rem;
text-align: right;
font-size: 1rem;
}
.splide__toggle a {
color: #fff;
text-decoration: none;
text-transform: uppercase;
font-weight: 200;
}
</style>
<script src=" https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/js/splide.min.js "></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/glightbox/3.3.0/js/glightbox.min.js"></script>
<link rel="stylesheet" href=" https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/css/splide.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/glightbox/3.3.0/css/glightbox.css">
<script>
document.addEventListener( 'DOMContentLoaded', function () {
new Splide( '#image-carousel' , {
type : 'loop',
padding: '5rem',
autoplay: 'play',
interval: 9000,
focus : 'center',
pauseOnHover : true,
pauseOnFocus : false,
resetProgress: false
} ).mount();
// Initialize GLightbox
const lightbox = GLightbox({
selector: '.glightbox',
touchNavigation: true,
loop: true,
});
// Update lightbox when Splide changes slides
splide.on('moved', function() {
lightbox.reload();
});
});
</script>
```
Take a look at some of our impact case studies relating to our previous HSMA projects.
Click on any poster to view it in full screen.
```{=html}
<section id="image-carousel" class="splide" aria-label="Beautiful Images">
<div class="splide__optional-button-container">
<button class="splide__toggle" type="button">
<a class="splide__toggle__play"><i class="fa-solid fa-play" ></i><span style="padding-left: 10px;">Resume Slideshow</span></a>
<a class="splide__toggle__pause"><i class="fa-solid fa-pause" ></i><span style="padding-left: 10px;">Pause Slideshow</span></a>
</button>
</div>
<div class="splide__track">
<ul class="splide__list">
<li class="splide__slide" style="width: 250px">
<img src="impact_posters/eFIT.png" alt="" class="glightbox">
<div class="hsma_caption">
</div>
</li>
<li class="splide__slide" style="width: 250px">
<img src="impact_posters/Out of Area Reduction in Mental Health.png" alt="" class="glightbox">
<div class="hsma_caption">
</div>
</li>
<li class="splide__slide" style="width: 250px">
<img src="impact_posters/UTC Flow.png" alt="" class="glightbox">
<div class="hsma_caption">
</div>
</li>
<li class="splide__slide" style="width: 250px">
<img src="impact_posters/Vaccination Centre Model.png" alt="" class="glightbox">
<div class="hsma_caption">
</div>
</li>
<li class="splide__slide" style="width: 150px">
<img src="impact_posters/DES for Autism and ADHD Assessments.png" alt="" class="glightbox">
<div class="hsma_caption">
</div>
</li>
</ul>
</div>
</section>
```