Skip to content

Commit

Permalink
Add pictures of Sha'are Tefila's caterer
Browse files Browse the repository at this point in the history
  • Loading branch information
NightScript370 committed Dec 9, 2024
1 parent 76d6cd2 commit 9ff4487
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 69 deletions.
107 changes: 41 additions & 66 deletions assets/css/marquee.css
Original file line number Diff line number Diff line change
@@ -1,68 +1,43 @@
/* Marquee styles */
.marquee {
position: relative;
overflow: hidden;
user-select: none;
}

.marquee__content {
flex-shrink: 0;
min-width: 100%;
}

@keyframes scroll {
from {
transform: translateY(0);
}
to {
transform: translateY(-100%);
}
}

/* Pause animation when reduced-motion is set */
@media (prefers-reduced-motion: reduce) {
.marquee__content {
animation-play-state: paused !important;
}
}

/* Enable animation */
.marquee .marquee__content {
animation: scroll var(--length, 10s) linear infinite;
}

/* Reverse animation */
.marquee--reverse .marquee__content {
animation-direction: reverse;
}

/* Pause on hover */
.marquee--hover-pause:hover .marquee__content {
animation-play-state: paused;
}

/* Attempt to size parent based on content. Keep in mind that the parent width is equal to both content containers that stretch to fill the parent. */
.marquee--fit-content {
max-width: fit-content;
}

/* A fit-content sizing fix: Absolute position the duplicate container. This will set the size of the parent wrapper to a single child container. Shout out to Olavi's article that had this solution 👏 @link: https://olavihaapala.fi/2021/02/23/modern-marquee.html */
.marquee--pos-absolute .marquee__content:last-child {
position: absolute;
top: 0;
left: 0;
}

/* Enable position absolute animation on the duplicate content (last-child) */
.enable-animation .marquee--pos-absolute .marquee__content:last-child {
animation-name: scroll-abs;
}

@keyframes scroll-abs {
from {
transform: translateX(100%);
}
to {
transform: translateX(0);
}
}
position: relative;
overflow: hidden;
user-select: none;
}

.marquee__content {
min-width: 100%;
animation: scroll var(--length, 10s) linear infinite;
}

.marqueeHorizontal {
--gap: .25rem;
display: flex;
gap: var(--gap);
}

.marqueeHorizontal .marquee__content {
display: flex;
gap: var(--gap);
flex-shrink: 0;
justify-content: space-around;
animation: scrollX var(--length, 10s) linear infinite;
}

@keyframes scroll {
from {
transform: translateY(0);
}
to {
transform: translateY(-100%);
}
}

@keyframes scrollX {
from {
transform: translateX(0);
}
to {
transform: translateX(-100%);
}
}
26 changes: 23 additions & 3 deletions pages/shul-wall/sha'areh-tefila-queens-big.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,13 @@
z-index: 5;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr auto;
grid-template-rows: 1fr auto auto;
align-items: center;
row-gap: 16px;
column-gap: 2vw;
}

#dataGrid > *:not(#megaline):not(.wideView) {
height: 100%;
#dataGrid > *:not(#megaline):not(.wideView):not(.marquee) {
background: rgba(0,0,0,.75);
border-top-left-radius: 50% 15%;
border-top-right-radius: 50% 15%;
Expand All @@ -144,6 +143,10 @@
font-size: 1.55rem;
}

#dataGrid > *:not(#megaline):not(.wideView):not(.marquee):not(:nth-child(2)) {
height: 100%;
}

#dataGrid > *:not(#limudSection) .list-group-item {
--bs-list-group-item-padding-y: .25rem;
--bs-list-group-border-color: #49505799;
Expand Down Expand Up @@ -295,6 +298,10 @@
--bs-card-bg: transparent;
border: none;
}

.marquee__content > img {
height: 10vh;
}
</style>

<link id="bs" href="/assets/libraries/bootstrap/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous"/>
Expand All @@ -303,6 +310,7 @@
<link href="/assets/fonts/external-message/stylesheet.css" rel="stylesheet" />
<link href="/assets/css/marquee.css" rel="stylesheet" />
<link href="/assets/css/timer.css" rel="stylesheet" />

<div id="content" data-current-page="1" data-page-count="2" data-swap-time="8000">
<!-- <div id="bsD">בס"ד</div> -->
<img id="gne" src="/assets/images/shul-wall/shaarehTefilah.svg" />
Expand Down Expand Up @@ -488,6 +496,10 @@ <h1 style="text-align: center;" data-parasha data-prefix="en-ru"></h1>
</ul>
</div>
</div>
<div class="marquee marqueeHorizontal" style="grid-column: 1 / span 3; --length: 20s">
<div class="marquee__content"></div>
<div aria-hidden="true" class="marquee__content"></div>
</div>
<section class="wideView" data-zfFind="calendarFormatter" data-langPull="hb ru">
{% for item in site.data.tv.simpleTVZman %}
<article
Expand Down Expand Up @@ -518,4 +530,12 @@ <h1 style="text-align: center;" data-parasha data-prefix="en-ru"></h1>
<script type="module">
import schedule from '/assets/js/shul-wall/scheduleOnline.js';
await schedule('https://zemaneh-yosef.github.io/extras/shaare-tefila.ini');

const flyerURLs = (await (await fetch('https://zemaneh-yosef.github.io/extras/ls.txt')).text())
.split('\n')
.filter(str => str.startsWith('./shaare-tefila-marquee/'))

for (const marquee of document.getElementsByClassName('marquee__content')) {
marquee.innerHTML = flyerURLs.map(url => `<img src="${url.replace('.', 'https://zemaneh-yosef.github.io/extras')}" />`).join('');
}
</script>

0 comments on commit 9ff4487

Please sign in to comment.