summaryrefslogtreecommitdiff
path: root/esm/scripts/presentation.mjs
diff options
context:
space:
mode:
authorGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2024-11-26 17:01:07 +0200
committerGeo Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2024-11-26 17:01:07 +0200
commit5c42b94698eb7be04a492edbda87466804615b79 (patch)
tree12201872e9fe1b8dcc146a696fc84c57eb916284 /esm/scripts/presentation.mjs
parent8d308fe5f7a83d635ef14e95c8e9abc171f76c7e (diff)
downloadslidetray-5c42b94698eb7be04a492edbda87466804615b79.tar.gz
slidetray-5c42b94698eb7be04a492edbda87466804615b79.tar.bz2
slidetray-5c42b94698eb7be04a492edbda87466804615b79.zip
rename extention to .mjs for the esm modulesHEADmasterdevelopment
Diffstat (limited to 'esm/scripts/presentation.mjs')
-rw-r--r--esm/scripts/presentation.mjs70
1 files changed, 70 insertions, 0 deletions
diff --git a/esm/scripts/presentation.mjs b/esm/scripts/presentation.mjs
new file mode 100644
index 0000000..47f174d
--- /dev/null
+++ b/esm/scripts/presentation.mjs
@@ -0,0 +1,70 @@
+export default {
+
+ name: 'Pitsos',
+ title: 'Pitsos',
+ base_url: 'images',
+
+ effect: 'flip',
+ pagination: 'dynamic',
+
+ css: `
+ html,
+ body {
+ position: relative;
+ }
+
+ body {
+ background-color: rgb(153, 153, 153);
+ font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
+ font-size: 14px;
+ color: #000;
+ margin: 0;
+ padding: 0;
+ display: flex;
+ height: 100vh;
+ overflow: hidden;
+ align-content: center;
+ align-items: center;
+ }
+
+ .swiper {
+ width: 90vw;
+ height: 50.62vw;
+ }
+
+ @media (min-aspect-ratio: 3.5/2) {
+ .swiper {
+ width: 150vh;
+ height: 90vh;
+ }
+ }
+
+ .swiper-slide {
+ background-position: center;
+ background-size: cover;
+ }
+
+ .swiper-slide img {
+ display: block;
+ width: 100%;
+ }
+ .swiper-pagination {
+ margin-top: 50px;
+ }
+
+ .swiper-pagination-bullet-active {
+ background: #ed8119;
+ }
+
+ .swiper-button-prev, .swiper-button-next {
+ color: #ed8119;
+ }
+ `,
+ slides: [
+ { image: '01.jpg' },
+ { image: '02.jpg' },
+ { image: '03.jpg' },
+ { image: '04.jpg' },
+ ]
+
+}