complete rewrite of gallery system

originally we had a gallery grid and we just changed its contents but this meant we had to load new images on click which took time to do, instead we download all the images at runtime and just hide them
This commit is contained in:
Nye Evans 2021-02-06 11:00:34 +00:00
parent 35972190b9
commit 0aa06dff80
4 changed files with 54 additions and 64 deletions

View file

@ -76,7 +76,7 @@ h1{
font-size: clamp(1rem, 1.2vw, 3rem);
}
#programGallery{
.programGallery{
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-template-rows: repeat(10, 1fr);
@ -246,7 +246,7 @@ h1{
font-size: clamp(2rem, 4vw, 5rem);
}
#programGallery{
.programGallery{
width: 92vw;
margin-left: 4vw;