Skip to content

Commit

Permalink
slide trigger updates
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotthall committed Dec 13, 2023
1 parent 6bfe6a7 commit 1c8e6aa
Show file tree
Hide file tree
Showing 4 changed files with 1,385 additions and 1,332 deletions.
4 changes: 2 additions & 2 deletions frontend/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function (config) {
//return '<details><summary>' + md.utils.escapeHtml(m[1]) + '</summary>\n';
if (m) {
return (
'<article id="slide_' +
'<article class="mapSlide" id="slide_' +
md.utils.escapeHtml(m[1]) +
'" data-slideId="' +
md.utils.escapeHtml(m[1]) +
Expand All @@ -68,7 +68,7 @@ module.exports = function (config) {
}
} else {
// closing tag
return "</article>\n";
return "</article>\n<div class=\"article_spacer\">&nbsp;</div>";
}
},
marker: ":",
Expand Down
11 changes: 5 additions & 6 deletions frontend/_includes/stories.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -64,39 +64,39 @@ layout: base.liquid

<section id="s-2">
<div class="storyTitleSpacerAbove" id="s2-start"></div>
<article id="slide_500" data-slideId="500" class="storyTitle">
<article id="slide_500" data-slideId="500" class="storyTitle mapSlide">
<h2>Homelands</h2>
</article>
<div class="storyTitleSpacerBelow"></div>
{% renderFile "./stories/homelands.md", "liquid" %}
</section>
<section id="s-3">
<div class="storyTitleSpacerAbove"></div>
<article id="slide_600" data-slideId="600" class="storyTitle">
<article id="slide_600" data-slideId="600" class="storyTitle mapSlide">
<h2>Pathways</h2>
</article>
<div class="storyTitleSpacerBelow"></div>
{% renderFile "./stories/pathways.md", "liquid" %}
</section>
<section id="s-4">
<div class="storyTitleSpacerAbove" id="s2-start"></div>
<article class="storyTitle" id="slide_700" data-slideId="700" >
<article class="storyTitle mapSlide" id="slide_700" data-slideId="700" >
<h2>Villagers, Settlers</h2>
</article>
<div class="storyTitleSpacerBelow"></div>
{% renderFile "./stories/villagers_settlers.md", "liquid" %}
</section>
<section id="s-5">
<div class="storyTitleSpacerAbove" id="s2-start"></div>
<article class="storyTitle" id="slide_800" data-slideId="800" >
<article class="storyTitle mapSlide" id="slide_800" data-slideId="800" >
<h2>Lines</h2>
</article>
<div class="storyTitleSpacerBelow"></div>
{% renderFile "./stories/lines.md", "liquid" %}
</section>

<section id="filters">
<article class="storyTitle">
<article class="storyTitle mapSlide">
<h2>Explore</h2>
</article>
<article>
Expand Down Expand Up @@ -327,7 +327,6 @@ layout: base.liquid
</span>
</label>
</div>

<div class="checkbox-wrapper-1">
<label class="checkbox-wrapper">
<input type="checkbox" class="checkbox-input"/>
Expand Down
11 changes: 8 additions & 3 deletions frontend/assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,16 @@ nav {
margin-top: 10em;
font-size: 1.7em;
} //h1 a

div.article_spacer {
padding-top: 75vh;
padding-bottom: 75vh;
}
article {
width: calc(95% - 4em);
background: rgba(255, 255, 255, 0.7);
padding: 1em 2em;
margin: 0 5% 100vh 0;
margin: 0 5% 0 0;
text-align: justify;

blockquote {
Expand Down Expand Up @@ -476,7 +481,7 @@ nav {
padding-top: 40vh;
}
.storyTitleSpacerBelow {
padding-bottom: 50vh;
padding-bottom: 65vh;
}
// Story Heading
article.storyTitle {
Expand All @@ -496,7 +501,7 @@ nav {
margin: 0;
article {
width: 40%;
margin: 0 30% 100vh 30%;
margin: 0 30% 0 30%;
&.storyTitle {
margin-bottom: 0;
} //.storyTitle {
Expand Down
Loading

0 comments on commit 1c8e6aa

Please sign in to comment.