Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 95ea235f9f | |||
| fe6604a5d9 |
@@ -22,7 +22,7 @@ WORKDIR /app
|
|||||||
COPY --from=prod-deps /app/node_modules /app/node_modules
|
COPY --from=prod-deps /app/node_modules /app/node_modules
|
||||||
COPY --from=build /app/dist /app/dist
|
COPY --from=build /app/dist /app/dist
|
||||||
|
|
||||||
LABEL version="2.20.0"
|
LABEL version="2.20.1"
|
||||||
LABEL description="Astro based personal website"
|
LABEL description="Astro based personal website"
|
||||||
|
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "site-profile",
|
"name": "site-profile",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.20.0",
|
"version": "2.20.1",
|
||||||
"homepage": "https://www.alexlebens.dev",
|
"homepage": "https://www.alexlebens.dev",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues",
|
"url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues",
|
||||||
|
|||||||
@@ -93,15 +93,26 @@ const normalizeTitle = !title ? global.name : `${title} | ${global.name}`;
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('astro:page-load', () => {
|
document.addEventListener('astro:page-load', () => {
|
||||||
|
let ticking = false;
|
||||||
const onScroll = () => {
|
const onScroll = () => {
|
||||||
document.documentElement.style.setProperty('--scroll-offset', `${window.scrollY}px`);
|
if (!ticking) {
|
||||||
document.documentElement.classList.add('has-js');
|
window.requestAnimationFrame(() => {
|
||||||
|
document.documentElement.style.setProperty('--scroll-offset', `${window.scrollY}px`);
|
||||||
|
ticking = false;
|
||||||
|
});
|
||||||
|
ticking = true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
window.removeEventListener('scroll', onScroll);
|
|
||||||
window.addEventListener('scroll', onScroll, { passive: true });
|
window.addEventListener('scroll', onScroll, { passive: true });
|
||||||
|
|
||||||
onScroll();
|
onScroll();
|
||||||
|
|
||||||
|
document.documentElement.classList.add('has-js');
|
||||||
|
|
||||||
|
document.addEventListener('astro:before-swap', () => {
|
||||||
|
window.removeEventListener('scroll', onScroll);
|
||||||
|
}, { once: true });
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -129,6 +140,7 @@ const normalizeTitle = !title ? global.name : `${title} | ${global.name}`;
|
|||||||
|
|
||||||
-webkit-mask-position-y: var(--scroll-offset);
|
-webkit-mask-position-y: var(--scroll-offset);
|
||||||
mask-position-y: var(--scroll-offset);
|
mask-position-y: var(--scroll-offset);
|
||||||
|
will-change: mask-position;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Background that creates the "glimmer" effect */
|
/* Background that creates the "glimmer" effect */
|
||||||
|
|||||||
Reference in New Issue
Block a user