update fonts

This commit is contained in:
nicwands
2026-05-26 14:21:42 -04:00
parent a54e63323f
commit 920a2452dd
13 changed files with 59 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
<template> <template>
<lenis root> <lenis root>
<div :class="classes" :style="styles"> <div :class="classes">
<slot /> <slot />
</div> </div>
</lenis> </lenis>
@@ -27,9 +27,13 @@ onMounted(async () => {
// Load fonts // Load fonts
loadFonts([ loadFonts([
{ {
name: 'Office Times', name: 'Leibniz Fraktur',
weights: [400], weights: [400],
}, },
{
name: 'Geist Mono',
weights: [400, 700],
},
]) ])
.then(() => { .then(() => {
fontsLoading.value = false fontsLoading.value = false
@@ -38,15 +42,11 @@ onMounted(async () => {
fontsLoading.value = false fontsLoading.value = false
}) })
}) })
const styles = computed(() => ({
'--vh': height.value ? height.value / 100 + 'px' : '100vh',
}))
</script> </script>
<style lang="scss"> <style lang="scss">
.container { .container {
min-height: calc(100 * var(--vh)); min-height: 100vh;
max-width: 100vw; max-width: 100vw;
overflow-x: clip; overflow-x: clip;
background: var(--theme-bg); background: var(--theme-bg);

View File

@@ -32,7 +32,7 @@ const downloadUrl = computed(() => {
onMounted(async () => { onMounted(async () => {
try { try {
const response = await fetch( const response = await fetch(
`${BASE_URL}/dist/${os.value.toLowerCase()}/latest.yml`, `${BASE_URL}/dist/latest-${os.value.toLowerCase()}.yml`,
) )
if (!response.ok) throw new Error(response.statusText) if (!response.ok) throw new Error(response.statusText)
const yaml = await response.text() const yaml = await response.text()
@@ -44,7 +44,8 @@ onMounted(async () => {
if (pathMatch) downloadPath.value = pathMatch[1].trim() if (pathMatch) downloadPath.value = pathMatch[1].trim()
} catch { } catch {
// fallback to placeholder // fallback to placeholder
downloadPath.value = `takerofnotes-app-0.2.0.${os.value === 'Windows' ? 'exe' : os.value === 'macOS' ? 'dmg' : 'AppImage'}` // downloadPath.value = `takerofnotes-app-0.2.0.${os.value === 'Windows' ? 'exe' : os.value === 'macOS' ? 'dmg' : 'AppImage'}`
console.error('Failed to fetch latest version info')
} finally { } finally {
loading.value = false loading.value = false
} }
@@ -53,7 +54,7 @@ onMounted(async () => {
<style lang="scss"> <style lang="scss">
main.splash { main.splash {
height: calc(100 * var(--vh)); height: 100vh;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -17,15 +17,23 @@
} }
@mixin h1 { @mixin h1 {
font-family: var(--font-times); font-family: var(--font-display);
font-weight: 400; font-weight: 400;
letter-spacing: 0.1em; letter-spacing: -0.02em;
@include size-font(42px, 27px); line-height: 1.3;
@include size-font(30px, 30px);
}
@mixin h1-mono {
font-family: var(--font-mono);
font-weight: 400;
line-height: 1;
@include size-font(22px, 22px);
} }
@mixin p { @mixin p {
font-family: var(--font-times); font-family: var(--font-mono);
font-weight: 400; font-weight: 400;
letter-spacing: 0.03em; line-height: 1.4;
@include size-font(25px, 18px); @include size-font(12px, 12px);
} }

View File

@@ -11,16 +11,35 @@
900 - Black (Heavy) 900 - Black (Heavy)
*/ */
/* OFFICE TIMES */ /* Leibniz Fraktur */
@font-face { @font-face {
font-family: 'Office Times'; font-family: 'Leibniz Fraktur';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: src:
url('/fonts/OfficeTimesRound-Regular.woff2') format('woff2'), url('/fonts/neuefraktur.woff2') format('woff2'),
url('/fonts/OfficeTimesRound-Regular.woff') format('woff'); url('/fonts/neuefraktur.woff') format('woff');
}
/* Geist Mono */
@font-face {
font-family: 'Geist Mono';
font-style: normal;
font-weight: 700;
src:
url('/fonts/geist-mono-bold.woff2') format('woff2'),
url('/fonts/geist-mono-bold.woff') format('woff');
}
@font-face {
font-family: 'Geist Mono';
font-style: normal;
font-weight: 400;
src:
url('/fonts/geist-mono.woff2') format('woff2'),
url('/fonts/geist-mono.woff') format('woff');
} }
:root { :root {
--font-times: 'Office Times', monospace; --font-display: 'Leibniz Fraktur', serif;
--font-mono: 'Geist Mono', monospace;
} }

View File

@@ -37,49 +37,24 @@ h4,
h5, h5,
h6 { h6 {
@include h1; @include h1;
&.mono {
@include h1-mono;
}
} }
.p, .p,
p, p,
a, a,
button, button,
input, input,
pre { pre,
span,
label,
li {
@include p; @include p;
} }
.bold {
.entry { font-weight: 700;
img {
max-width: 100%;
height: auto;
}
p {
min-height: 1px;
}
a {
text-decoration: underline;
}
& > * {
margin-bottom: 1em;
margin-top: 1em;
}
& > *:first-child {
margin-top: 0;
}
& > *:last-child {
margin-bottom: 0;
}
ul,
ol {
li {
margin-bottom: 1em;
width: desktop-vw(577px);
}
}
ul {
list-style: disc;
padding-left: 1em;
}
} }
#app { #app {