Add Python FastAPI service, cheap hotels page, and Tailwind theme refactor
Deploy with Docker Compose / deploy (push) Successful in 1m29s

- Replace searxng and open-webui with a FastAPI `python/` service proxied
  at /py/ (Travelodge hotel search, rate-limited in nginx)
- Add CheapHotels view and CreateToggle component
- Move design tokens into Tailwind @theme in styles.css and migrate
  components/views to utility classes; CVLayout re-points tokens for light theme
- Update README, CLAUDE.md, and .gitignore accordingly

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dphx7LL5JC8dAFYU7MMpoA
This commit is contained in:
2026-09-08 00:06:04 +01:00
co-authored by Claude Fable 5.1
parent d777ea4b7d
commit 152f60ee32
66 changed files with 2209 additions and 1020 deletions
+11 -11
View File
@@ -48,8 +48,8 @@ const user = "visitor";
<style scoped>
.waybar {
font-family: "URWGothic-Book", monospace;
background-color: var(--bg_primary);
color: var(--primary);
background-color: var(--color-surface);
color: var(--color-primary);
display: flex;
justify-content: space-between;
align-items: center;
@@ -65,10 +65,10 @@ const user = "visitor";
}
.workspace {
background: var(--quaternary);
background: var(--color-quaternary);
border: none;
border-bottom: 2px solid var(--secondary);
color: var(--secondary);
border-bottom: 2px solid var(--color-secondary);
color: var(--color-secondary);
padding: 2px 10px;
font-family: inherit;
font-size: 14px;
@@ -81,7 +81,7 @@ const user = "visitor";
.module {
padding: 2px 12px;
border-left: 1px solid var(--tertiary);
border-left: 1px solid var(--color-tertiary);
}
.module:first-child {
@@ -89,25 +89,25 @@ const user = "visitor";
}
.greeting {
color: var(--secondary);
color: var(--color-secondary);
}
.clock {
color: var(--tertiary);
color: var(--color-tertiary);
}
.cpu,
.mem,
.disk {
color: var(--primary);
color: var(--color-primary);
}
.network {
color: var(--secondary);
color: var(--color-secondary);
}
.battery {
color: var(--primary);
color: var(--color-primary);
}
@media (max-width: 800px) {
+2 -10
View File
@@ -41,8 +41,8 @@ const faces_string = faces.join(" ");
</script>
<template>
<nav class="flex flex-row w-full h-fit border border-primary bg-bg_primary">
<RouterLink class="bdr-2 bg-bg_primary" v-if="parentPath" :to="parentPath">
<nav class="flex flex-row w-full h-fit border border-primary bg-surface">
<RouterLink class="bdr-2 bg-surface" v-if="parentPath" :to="parentPath">
<span>UP</span>
</RouterLink>
<Headline class="border flex-1 max-w-full">
@@ -50,11 +50,3 @@ const faces_string = faces.join(" ");
</Headline>
</nav>
</template>
<style scoped>
.left {
position: fixed;
top: 0;
left: 0;
}
</style>
+1 -3
View File
@@ -2,10 +2,8 @@
<template>
<button
class="text-primary bg-link text-center border cursor-pointer transition-colors duration-150 ease-in-out hover:bg-bg_primary active:scale-95"
class="text-primary bg-link-bg text-center border cursor-pointer transition-colors duration-150 ease-in-out hover:bg-surface active:scale-95"
>
<slot />
</button>
</template>
<style scoped></style>
+14
View File
@@ -0,0 +1,14 @@
<script setup>
import { useAuthStore } from "@/stores/auth";
// "+" / "x" button, shown to admins only. Toggles a home widget between its
// normal view and its create form. Designed for <Header>'s #action slot.
const show = defineModel({ type: Boolean, default: false });
const auth = useAuthStore();
</script>
<template>
<button v-if="auth.user.admin" class="text-sm px-1" @click="show = !show">
{{ show ? "x" : "+" }}
</button>
</template>
+1 -1
View File
@@ -18,7 +18,7 @@ function toggle() {
<button
@click="toggle"
class="box-content border-2 border-primary w-10 h-fit rounded-full cursor-pointer"
:class="[props.modelValue ? 'bg-bg_secondary' : 'bg-bg_primary']"
:class="[props.modelValue ? 'bg-surface-deep' : 'bg-surface']"
>
<svg
viewBox="0 0 40 40"
+9 -1
View File
@@ -1,7 +1,15 @@
<!--
Widget title: a heading with a rule underneath.
The optional #action slot puts a control (e.g. <CreateToggle>) on the right.
-->
<template>
<div class="w-full border-b border-primary pb-0.5">
<h1 class="p-0 m-0">
<h1
class="p-0 m-0"
:class="{ 'flex items-center justify-between gap-1': $slots.action }"
>
<slot />
<slot name="action" />
</h1>
</div>
</template>
+2 -2
View File
@@ -32,7 +32,7 @@ const computedRel = computed(() => {
<style scoped>
.inline-link {
color: var(--primary);
color: var(--color-primary);
font-weight: bold;
font-style: italic;
text-decoration: none;
@@ -40,6 +40,6 @@ const computedRel = computed(() => {
}
.inline-link:hover {
color: var(--tertiary);
color: var(--color-tertiary);
}
</style>
+2 -2
View File
@@ -33,12 +33,12 @@ const computedRel = computed(() => {
<style scoped>
.link {
color: var(--primary);
color: var(--color-primary);
text-decoration: none;
transition: color 0.15s ease;
}
.link:hover {
color: var(--tertiary);
color: var(--color-tertiary);
}
</style>
+2 -2
View File
@@ -33,7 +33,7 @@ const show = ref(false);
:key="i"
:href="item.link"
>
<p class="bdr-2 bg-bg_tertiary">{{ item.name }}</p>
<p class="bdr-2 bg-surface-tint">{{ item.name }}</p>
</Link>
<table class="w-full" v-else>
<tbody>
@@ -51,7 +51,7 @@ const show = ref(false);
<template v-else>
<template v-if="variant === 'list'">
<Link v-for="(item, i) in items" :key="i" :href="item.link">
<p class="bdr-2 bg-bg_tertiary">{{ item.name }}</p>
<p class="bdr-2 bg-surface-tint">{{ item.name }}</p>
</Link>
</template>
<table class="w-full" v-else>
+1 -1
View File
@@ -13,7 +13,7 @@ const keys = ["name", "link"];
<template>
<RouterLink
class="bdr-2 bg-bg_primary"
class="bdr-2 bg-surface"
v-for="(row, rowIndex) in linkArr"
:key="rowIndex"
:to="row.link"
+1 -11
View File
@@ -49,13 +49,12 @@ onUnmounted(() => {
<style scoped>
.slideshow-wrapper {
display: grid;
position: relative; /* for the global .fade transition */
width: 100%;
overflow: hidden;
}
.image-viewer {
grid-area: 1 / 1;
width: 100%;
overflow: hidden;
}
@@ -65,13 +64,4 @@ img {
object-fit: cover;
display: block;
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.5s ease;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
</style>
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<div class="a4page-portrait bdr-1 flex flex-col relative overflow-scroll">
<div class="page-a4 bdr-1 flex flex-col relative overflow-scroll">
<RouterLink to="/" class="bdr-2">
<img src="/img/memes/epic.jpeg" alt="" loading="lazy" />
</RouterLink>