add crystal post, small style tweaks

This commit is contained in:
Zoe
2025-11-03 01:26:05 -06:00
parent 50689b03ed
commit 0cc0df1180
17 changed files with 294 additions and 10092 deletions

View File

@@ -32,6 +32,7 @@ export default {
'bittorrent': 'webtorrent',
'web-server': 'nginx',
'supabase': 'supabase-icon',
'programming': 'bash-icon',
// idk these are good enough
'organization': 'notion-icon',
'productivity': 'obsidian-icon',

View File

@@ -9,7 +9,7 @@
{{ filename }}
</span>
</div>
<div ref="codeElm">
<div style="font-variant-ligatures: none" ref="codeElm">
<slot />
</div>
<div class="bottom-container">
@@ -138,4 +138,4 @@ const copyCode = () => {
.dark :slotted(pre code .highlighted) {
background-color: #2e2b2e;
}
</style>
</style>

View File

@@ -1,6 +1,6 @@
<template>
<div class="group flex mt-2">
<h2 :id="id" class="text-2xl">
<h2 :id="id" class="text-2xl font-semibold">
<slot />
</h2>
<button @click="copy('https://juls07.dev' + route.path + '#' + id)"
@@ -41,4 +41,4 @@ const route = useRoute();
.icon {
display: block;
}
</style>
</style>

View File

@@ -1,6 +1,6 @@
<template>
<div class="group flex mt-2">
<h3 :id="id" class="text-xl">
<h3 :id="id" class="text-xl font-semibold">
<slot />
</h3>
<button @click="copy('https://juls07.dev' + route.path + '#' + id)"
@@ -41,4 +41,4 @@ const route = useRoute();
.icon {
display: block;
}
</style>
</style>

View File

@@ -0,0 +1,16 @@
<script setup lang="ts">
withDefaults(
defineProps<{
src: string;
alt: string | undefined;
}>(),
{
src: '',
alt: '',
}
);
</script>
<template>
<img class="mx-auto" :src="src" :alt="alt" />
</template>