mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-04 01:48:50 +00:00
docs: image gallery viewer (#905)
* add assets, photoswipe html element to body * add single script, gallery for multiple items * update docs for image gallery * fix relative links * inject image script on mount * replace inline script * remove facebook, twitter, pinterest sharing * fix hover on share * fix start img aspect radio, reduce size * right align json script * right align go script * change script background
This commit is contained in:
@@ -12,7 +12,13 @@
|
||||
import Docs from "../components/Docs.svelte";
|
||||
export let slug;
|
||||
export let sections;
|
||||
import { onMount } from 'svelte';
|
||||
export let tags;
|
||||
import { initPhotoSwipeFromDOM } from '../utils/photoswipe.js';
|
||||
|
||||
onMount(() => {
|
||||
initPhotoSwipeFromDOM('.zitadel-gallery');
|
||||
});
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
import Nav from "../components/Nav.svelte";
|
||||
import NavItem from "../components/NavItem.svelte";
|
||||
import manifest from '../../static/manifest.json';
|
||||
import PhotoSwipe from '../components/PhotoSwipe.svelte';
|
||||
|
||||
export let segment;
|
||||
const { page } = stores();
|
||||
@@ -22,4 +23,5 @@
|
||||
|
||||
<main>
|
||||
<slot />
|
||||
<PhotoSwipe/>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user