mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-18 17:06:56 +00:00
251 lines
5.9 KiB
Vue
251 lines
5.9 KiB
Vue
<script setup lang="ts">
|
|
defineProps<{
|
|
title?: string;
|
|
description?: string;
|
|
}>();
|
|
|
|
const theme = useColorMode();
|
|
|
|
const toggleTheme = () => {
|
|
theme.preference = theme.preference === 'light' ? 'dark' : 'light';
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<svg width="0" height="0" aria-hidden="true" style="position: absolute">
|
|
<filter id="grainy" x="0" y="0" width="100%" height="100%">
|
|
<feTurbulence
|
|
type="fractalNoise"
|
|
baseFrequency=".85"
|
|
numOctaves="3"
|
|
></feTurbulence>
|
|
<feColorMatrix type="saturate" values="0"></feColorMatrix>
|
|
<feBlend mode="multiply" in="SourceGraphic"></feBlend>
|
|
</filter>
|
|
</svg>
|
|
<div class="page-wrapper">
|
|
<div class="trace left"></div>
|
|
|
|
<div class="trace right"></div>
|
|
|
|
<header class="header">
|
|
<div class="header-upper">
|
|
<slot name="header-upper">
|
|
<div class="flex-center header-upper-nav">
|
|
<button
|
|
class="theme-toggle"
|
|
@click="toggleTheme"
|
|
v-if="!theme.unknown"
|
|
>
|
|
{{ theme.value === 'dark' ? '🌚' : '🌝' }}
|
|
</button>
|
|
<div class="flex-ff"></div>
|
|
<!-- <NuxtLink to="/resume" class="basic-link"
|
|
>Resume</NuxtLink
|
|
> -->
|
|
<!-- <NuxtLink to="/writing" class="basic-link">
|
|
Writing
|
|
</NuxtLink> -->
|
|
</div>
|
|
</slot>
|
|
</div>
|
|
<div class="header-lower">
|
|
<slot name="header-lower">
|
|
<h1 class="name">{{ title || "Hello, I'm Jaron" }}</h1>
|
|
<p class="title">
|
|
{{
|
|
description ||
|
|
'Software Engineer by trade — builder by nature.'
|
|
}}
|
|
</p>
|
|
</slot>
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
<slot />
|
|
<div style="flex: 1"></div>
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
<div class="footer-upper">
|
|
<div class="flex-center">
|
|
<p>
|
|
<a class="punch-link" href="mailto:yo@jp.wtf"
|
|
>Say hi.</a
|
|
>
|
|
</p>
|
|
<div class="flex-ff"></div>
|
|
<p style="text-align: right">
|
|
Let's make something cool.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="footer-lower">
|
|
<div class="flex-center" style="gap: var(--gap)">
|
|
<p style="text-align: right">Est. 2003</p>
|
|
<!-- <p style="font-family: monospace">🐟🎩.dev</p> -->
|
|
<div class="flex-ff"></div>
|
|
<p style="text-align: right">Austin, TX</p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<style>
|
|
.page-wrapper {
|
|
--main-width: 50vw;
|
|
width: var(--main-width);
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.trace {
|
|
position: absolute;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 1px;
|
|
background: var(--muted);
|
|
z-index: 1;
|
|
}
|
|
|
|
.trace.left {
|
|
left: 0;
|
|
}
|
|
|
|
.trace.right {
|
|
right: 0;
|
|
}
|
|
|
|
svg[height='0'] {
|
|
position: fixed;
|
|
}
|
|
|
|
.name {
|
|
font-size: 3rem;
|
|
font-weight: 400;
|
|
line-height: 1.2;
|
|
margin: 0;
|
|
}
|
|
|
|
.title {
|
|
font-weight: 300;
|
|
margin: 0;
|
|
font-style: italic;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.header-upper {
|
|
height: 8vh;
|
|
}
|
|
|
|
.header-upper-nav {
|
|
padding: 1rem;
|
|
height: 100%;
|
|
font-size: small;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.header-lower {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
|
|
border-top: 1px solid var(--muted);
|
|
border-bottom: 1px solid var(--muted);
|
|
padding: 2rem;
|
|
color: var(--color-white-500);
|
|
|
|
position: relative;
|
|
isolation: isolate;
|
|
}
|
|
|
|
.header-lower::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: url('~/assets/images/blend.jpeg');
|
|
background-size: cover;
|
|
background-position: left top;
|
|
background-repeat: no-repeat;
|
|
filter: url(#grainy);
|
|
z-index: -1;
|
|
}
|
|
|
|
.footer-upper {
|
|
border-top: 1px solid var(--muted);
|
|
border-bottom: 1px solid var(--muted);
|
|
padding: 2rem;
|
|
color: var(--color-white-500);
|
|
min-height: 10vh;
|
|
position: relative;
|
|
isolation: isolate;
|
|
}
|
|
|
|
.footer-upper::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: url('~/assets/images/blend.jpeg');
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
filter: url(#grainy);
|
|
z-index: -1;
|
|
}
|
|
|
|
.footer-lower {
|
|
padding: 1rem;
|
|
height: 8vh;
|
|
font-size: small;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.theme-toggle {
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: large;
|
|
font-weight: bold;
|
|
color: var(--text);
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.page-wrapper {
|
|
--main-width: 80vw;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.page-wrapper {
|
|
--main-width: 100vw;
|
|
}
|
|
|
|
.trace {
|
|
display: none;
|
|
}
|
|
}
|
|
</style>
|