-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from gowin20/gwen
css updates and stuff
- Loading branch information
Showing
10 changed files
with
83 additions
and
28 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% macro imageCarousel(prefix,imageNames) %} | ||
<style> | ||
.splide__slide img { | ||
height:auto; | ||
max-height:500px; | ||
width:100%; | ||
object-fit:contain; | ||
} | ||
#imageCarousel { | ||
width:100%; | ||
max-width:500px; | ||
} | ||
</style> | ||
<link href=" | ||
https://cdn.jsdelivr.net/npm/@splidejs/[email protected]/dist/css/splide.min.css | ||
" rel="stylesheet"> | ||
<script src=" | ||
https://cdn.jsdelivr.net/npm/@splidejs/[email protected]/dist/js/splide.min.js | ||
"></script> | ||
<section id="imageCarousel" class="splide" aria-label="Image collection"> | ||
<div class="splide__track"> | ||
<ul class="splide__list"> | ||
{% for imageName in imageNames %} | ||
<li class="splide__slide"> | ||
<img src="{{prefix+imageName}}" alt="{{imageName}}"/> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</section> | ||
<script type='module'> | ||
new Splide( '#imageCarousel',{ | ||
type:'loop' | ||
}).mount(); | ||
</script> | ||
{% endmacro %} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters