Skip to content

Commit

Permalink
Add more refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
energee committed Sep 20, 2023
1 parent cc65173 commit bf741e6
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 28 deletions.
11 changes: 6 additions & 5 deletions _includes/event.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<span class="event" data-date="{{ event.date }}">
<div class="event" data-date="{{ event.date }}">
<a href="{{ event.site }}" target="_blank">
{% if event.site %}
<b>{{ event.vendor }}</b>
{% else %}
<b>{{ event.vendor }}</b>
{% endif %}
<span class="date">{{ event.date | date: '%b %-d' }}</span>
/ <span class="time">{{ event.time }}</span>
<span class="date-time">
<span class="date">{{ event.date | date: '%b %-d' }}</span>
/ <span class="time">{{ event.time }}</span>
</span>
</a>
<br>
</span>
</div>
4 changes: 3 additions & 1 deletion _includes/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
<h2>Events</h2>
<div class="events schedule padded-section">
{% assign currentWeek = site.time | date: "%W" %}
{% assign count = 0 %}
{% for event in site.data.events %}
{% if event.site %}
{% assign postWeek = event.date | date: "%W" %}
{% if currentWeek <= postWeek %}
{% if currentWeek <= postWeek and count < 5 %}
{% include event.html %}
{% assign count = count | plus:1 %}
{% endif %}
{% endif %}
{% endfor %}
Expand Down
32 changes: 29 additions & 3 deletions _sass/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,18 @@ main
.can
width: 70px
#cans &
width: 117px
width: 117px
@media only screen and (max-width: 500px)
#slide-one
.can
width: 55px !important
#cans
text-align: center
.can
width: 65px !important
@media only screen and (max-width: 700px)
.date-time
display: block

@media only screen and (min-width: 641px)
main>section#music:before
Expand Down Expand Up @@ -109,6 +120,7 @@ slider
&:before
animation: none
opacity: .2
position: absolute

.y-learned
main > section
Expand Down Expand Up @@ -376,8 +388,6 @@ iframe
display: flex
flex-direction: column
flex-wrap: wrap
@media screen and (width: 700px)
max-width: 400px
&.clear-height
height: auto
text-align: left
Expand Down Expand Up @@ -433,6 +443,7 @@ li
menu
display: grid !important
.menu-open &
background: #fffffffa
height: 100vh
padding: 4em 2em
li
Expand Down Expand Up @@ -508,6 +519,9 @@ footer *
.link
filter: invert(1)
margin-top: 1em
@media only screen and (max-width: 1000px)
filter: invert(0)

.link
transition: margin-top .25s ease
#food
Expand Down Expand Up @@ -593,3 +607,15 @@ footer *
bottom: 100px
5%
bottom: 115px

@media screen and (max-width: 600px)
.stacked
padding: 6em 3em
body
font-size: 10px

.screenshot
.logo,
footer,
.social
display: none
19 changes: 0 additions & 19 deletions assets/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,6 @@ function scrollHandlerY(e) {
}

clearTimeout(e.target.scrollTimeout);

e.target.scrollTimeout = setTimeout(function () {
if (!timeOut) {
window.Yscrolls++;
if (window.Yscrolls >= 5) {
document.body.classList.add('y-learned');
localStorage.setItem('yLearned', 1);
}
}
}, timeOut);
}

function scrollHandlerX(e) {
Expand All @@ -117,15 +107,6 @@ function scrollHandlerX(e) {

clearTimeout(e.target.scrollTimeout);

e.target.scrollTimeout = setTimeout(function () {
if (!timeOut) {
window.Xscrolls++;
if (window.Xscrolls >= 4) {
document.body.classList.add('x-learned');
localStorage.setItem('xLearned', 1);
}
}
}, timeOut);
}

if (localStorage.getItem('yLearned') == 1) {
Expand Down

0 comments on commit bf741e6

Please sign in to comment.