pages/site/index.md
thepaperpilot cc50a62afe
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m0s
Tweak meta tags
2024-06-28 08:51:53 -05:00

106 lines
2.3 KiB
Markdown

---
title: Hello!
prev: false
next: false
---
# Hello!
I'm Anthony, or The Paper Pilot, and welcome to my [digital garden](/garden/digital-gardens/index.md)!
<div class="hero-wrapper">
<TresCanvas :stencil="true" >
<TresOrthographicCamera :position="[0, 0, 10]" />
<TresAmbientLight :intensity="1" />
<Suspense>
<Hole />
</Suspense>
</TresCanvas>
<img class="hero" src="/paperpilot.png" :style="`--x-offset: ${xOffset * 20}%`" />
</div>
<svg>
<filter id="displacementFilter">
<feTurbulence
type="turbulence"
baseFrequency="0.01"
numOctaves="5"
result="turbulence" />
<feDisplacementMap
in2="turbulence"
in="SourceGraphic"
scale="100"
xChannelSelector="R"
yChannelSelector="G" />
</filter>
</svg>
This is a public website collecting all my (public) thoughts and projects all in one place. There are a lot of pages here, that link to each other wiki-style. I suggest starting your browsing with one of the recommended pages that most closely align with your interests :).
<script setup>
import { ref, onMounted, onUnmounted } from "vue";
import { TresCanvas } from '@tresjs/core'
import Hole from "./.vitepress/theme/Hole.vue";
const xOffset = ref(0);
function mouseMoveHandler(event) {
xOffset.value = event.pageX / window.innerWidth - .5;
}
onMounted(() => {
window.addEventListener("mousemove", mouseMoveHandler);
});
onUnmounted(() => {
window.removeEventListener("mousemove", mouseMoveHandler);
});
</script>
<style scoped>
.hero-wrapper {
height: 16lh;
position: relative;
}
@media (max-width: 700px) {
.hero-wrapper {
height: 12lh;
}
}
@media (max-width: 500px) {
.hero-wrapper {
height: 10lh;
}
}
@media (max-width: 400px) {
.hero-wrapper {
height: 9lh;
}
}
.hero {
height: 80%;
width: unset;
margin: auto;
position: absolute;
right: 50%;
bottom: 0;
transform: translate(calc(50% + var(--x-offset)), 0%);
animation: bob 5s ease-in-out infinite;
}
svg {
display: none;
}
@keyframes bob {
0% {
transform: translate(calc(50% + var(--x-offset)), -10%);
}
50% {
transform: translate(calc(50% + var(--x-offset)), 10%);
}
100% {
transform: translate(calc(50% + var(--x-offset)), -10%);
}
}
</style>