pages/site/.vitepress/theme/Layout.vue.in

57 lines
1.9 KiB
Vue
Raw Normal View History

2024-06-15 14:50:22 +00:00
<template>
<DefaultTheme.Layout>
<template #layout-top>
<NolebaseHighlightTargetedHeading />
2024-06-20 11:27:48 +00:00
<ClientOnly>
<div class="background">
<TresCanvas>
<TresOrthographicCamera :position="[0, 0, 10]" />
<TresAmbientLight :intensity="1" />
<Suspense>
<Background />
</Suspense>
</TresCanvas>
</div>
2024-06-20 11:27:48 +00:00
</ClientOnly>
2024-06-15 14:50:22 +00:00
</template>
<template #layout-bottom>
2024-06-15 15:11:48 +00:00
<footer class="vp-doc">
2024-06-18 18:04:28 +00:00
<div>CC {{ new Date().getFullYear() }} <a class="h-card" rel="me" href="/about"><img src="/me.jpg" alt="" />The Paper Pilot</a>. <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a>.</div>
2024-06-15 14:50:22 +00:00
<div>Any and all opinions listed here are my own and not representative of my employers; future, past and present.</div>
<div><a href="https://resume.incremental.social/thepaperpilot/thepaperpilot">Resume</a> (not actively seeking new opportunities).</div>
2024-06-25 00:00:18 +00:00
<div>Site built from <a href="COMMIT_LINK">this commit</a> on <time>COMMIT_TIME</time>. <a href="https://www.thepaperpilot.org/licenses.txt">Legal disclaimers</a>.</div>
2024-06-15 14:50:22 +00:00
</footer>
</template>
</DefaultTheme.Layout>
</template>
<script setup lang="tsx">
import { NolebaseHighlightTargetedHeading } from '@nolebase/vitepress-plugin-highlight-targeted-heading/client'
import { TresCanvas } from '@tresjs/core'
2024-06-15 14:50:22 +00:00
import '@nolebase/vitepress-plugin-highlight-targeted-heading/client/style.css'
import DefaultTheme from 'vitepress/theme'
2024-06-20 11:27:48 +00:00
import Background from './Background.vue'
import Camera from './Camera.vue'
import OrbitControls from './OrbitControls.vue'
import './custom.css'
2024-06-15 15:11:48 +00:00
</script>
<style scoped>
.background {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
overflow: hidden;
}
2024-06-15 15:11:48 +00:00
footer {
padding: 2em;
z-index: 26;
position: relative;
font-size: small;
background: var(--vp-c-bg-elv);
}
</style>