Catalog npm
Back to packageRELEASE DETAILS

0.0.4

npm

1gallery

a modern SEO friendly ejs web banner gallery for any kind of slides (photos, html...)

bannerejsgalleryseoslidesplashcarousselslider
Published9 Jan 2021
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

1gallery

Online Demo

Usage :

For examples, see demo source code.

Require node.js.

In your project root, in cli :

npm install --save-dev 1gallery ejs

In your ejs parsed files when you want insert a 1gallery :

<%
const galleryOptions = 'banner zoomable autoplay-5s'
const exampleCards = [];
exampleCards.push(`<section class="card cover"><h1><center>A full size card/slide</center></h1></section>`);
exampleCards.push(`<img class="card" src="img/1forma-tic-fond-ecran.png"/>`);
%>
<%- include('../PATH_TO/node_modules/1gallery/1gallery.ejs',{cards:exampleCards,classes:galleryOptions}); %>

<link rel="stylesheet" href="../PATH_TO/node_modules/1gallery/1gallery.css"/>
<script src="../PATH_TO/node_modules/1gallery/1gallery.js"></script>

You can use css class to customize 1gallery behavior on gallery scope or card scope.

  • zoomable : add fullscreen mode and related icon.

  • autoplay-[1-999]s : automatically go to next slide every [0-999] seconds

  • banner : banner style gallery (height : 150px)

  • splash : splash style gallery (height : 100vh)

PS : you can use css to override any default 1gallery css.

Card class :

  • card : required to let the gallery engine detect each card/slide
  • auto : default resize the card to match screen ratio.
  • cover : extend the card to the gallery size like css object-fit: cover;
  • ratio-[1-9999]-[1-9999] : force card ratio to [1-9999]/[1-9999]. Usefull for photo.

PS : you can use ratio and cover on the same card for some strange html slide use-case.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-2zioMF3XZfBy+1Xe49CZCWLB9riSdlj7r3FQ7BiGnnfSy4OI6YW9bID/eniylz7AU7o1NQbpzsKky43DLh2IBA==",
  "shasum": "c6c3503ba74c67f80ec8b1192ead9978c7bc4e53",
  "tarball": "https://registry.npmjs.org/1gallery/-/1gallery-0.0.4.tgz",
  "fileCount": 7,
  "unpackedSize": 40468,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+SKFCRA9TVsSAnZWagAAsacP/igQQuUECQq4i7iB1+sT\nWC50fM6jUWcooGRKKYGXqt6XtnzOTkFGY5DyfiWwGi9pBNGFZ5fk+T6+wyjg\nVJCXyhB6+dveR26Qc0kW4JpKz7XjyD3+JC8xJOsM22mIhgRcREiselVkXMts\nYhfv0gyAY13aizFJtSJSSzWp9T1zBdpFAWxhOvTGzVtZhljtxBim7RLGpG2Y\nz3oOcqvRItcHwZTs152jPJCBlgARLoqXq27LBVBsUQdjbyQdgswA0XnggPlZ\nTbDpd0HKwsBszoaOmhYd7oz2xB2Dl7hRkhekHYOjMsu8xYsSe9yisJE0przt\nlT4P/so4oNX2xHZ8NaJDfExM3olLBA9I1Dr4OyJnDec4JgVOaA/nqfCTYmBa\nTNCI5ht8Xf5SNcJw0/UGNnjVqVXM6bRA5q+YB+6uzsMxyAZYYMnOxwiIccjf\nojnq46aG8biUVWaKV8MX4GHqjX3waGCdYY32wO1U/YXgCImYPzjTMdOYarJd\nKxCtuwEkEIXch0g0q+77tIXldQsZ0HvCsDdI16LOMSsgvI3wGrOTBH5dJJGR\ndByCyHPZS9cCNBRjmVNhXaY49mPpW084DtDsd8HgmRUHoFgZWPYsCRRDl3Xj\n8kQKM6DxtlU67dESs1eoy1+Lam8TSnsMpjGFonF6YlHPl7BiDQPV8haZKddF\n78dp\r\n=OB4I\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQD1cQNHXj8jdJq1khwFylwQAJs1eRphy5zL88AhJdk8SgIgE2UZvcuZv0TeX6VXePaxdpLepflsa0W/DgcHq1g9Ers="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:f0f024e464fc45f2e5fa2895dc06f9f48dee09814d8cc6f6c6765943d7f2d9ad

Other collected versions

0.0.815 Jan0.0.715 Jan0.0.69 Jan0.0.59 Jan0.0.39 Jan0.0.29 JanView all collected versions →