This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sebastian McKenzie
committed
May 4, 2021
1 parent
37f7557
commit 3684eae
Showing
27 changed files
with
1,754 additions
and
258 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div class="color-scheme-switch-container"> | ||
<button aria-label="Toggle theme" title="Toggle theme" role="switch" aria-checked="true" class="color-scheme-switch"> | ||
<div class="selector"></div> | ||
{% include svg/moon.svg %} | ||
{% include svg/sun.svg %} | ||
</button> | ||
</div> |
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
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,55 @@ | ||
--- | ||
simple-sidebar: true | ||
social-image: social-logo-universe.png | ||
layout: layouts/base.liquid | ||
no-sidebar: true | ||
body-class: inc force-light | ||
--- | ||
|
||
<div id="inc-color-scheme"> | ||
{% include color-scheme-switcher %} | ||
</div> | ||
|
||
<div class="inc-bg"></div> | ||
|
||
<div class="inc-bg-padding" aria-hidden="true"> | ||
<a href="/">Rome</a> | ||
</div> | ||
|
||
<div class="hero hero-inc"> | ||
<h1>Announcing Rome Tools, Inc.</h1> | ||
</div> | ||
|
||
<main id="main-content" class="content single inc"> | ||
{{ content | safe }} | ||
</main> | ||
|
||
<script> | ||
(function() { | ||
const bg = document.querySelector(".inc-bg"); | ||
let lastTop = undefined; | ||
let disabled; | ||
document.addEventListener("scroll", (e) => { | ||
if (disabled === undefined) { | ||
disabled = matchMedia("(max-width: 768px)").matches || matchMedia("(prefers-reduced-motion)").matches; | ||
} | ||
if (disabled) { | ||
return; | ||
} | ||
if (document.scrollingElement.scrollTop > 450) { | ||
return; | ||
} | ||
const top = document.scrollingElement.scrollTop / 2; | ||
if (lastTop === top) { | ||
return; | ||
} | ||
lastTop = top; | ||
bg.style.transform = `translateY(${top}px)`; | ||
}); | ||
})(); | ||
</script> |
Oops, something went wrong.