Files
stpweb/vue/src/layouts/CVLayout.vue
T
adamfandClaude Opus 5.5 99fe175ebf
Test and deploy / test (push) Successful in 1m9s
Test and deploy / deploy (push) Successful in 1m33s
Delete the old job code now that the tracker runs on its own
The job tracker has run from its own image at /jobs/ since 931b02c, so its
old copy here goes: the GraphQL schema, resolvers and models for
applications, references, sources, leads and the search profile; the
capture and email handlers and services; the Python posting reader, lead
scorer and email classifier; the Vue pages, stores and the capture-token
card on the Environment tab; and the userscript (nginx already redirects
its old URL to /jobs/).

The six old tables stay in the stp database: AutoMigrate never drops
anything, and dropping them is a manual step. The env variables stay in
the registry, where they already belong to the jobs service.

Docs (CLAUDE.md, DEPLOYMENT.md and the three READMEs) now describe the
site without the tracker, and DEPLOYMENT.md lists the jobs service and
./jobs-data.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 17:35:18 +01:00

136 lines
3.0 KiB
Vue

<script setup>
/**
* Layout shell for /cv. It renders nothing but the RouterView —
* its whole job is the UNSCOPED <style> block below, which re-points the site's
* design tokens from the dark palette in assets/styles.css to ink-on-paper
* values for everything inside .cv-layout.
*
* Unscoped is deliberate: scoped styles would not reach the CV template
* components, and the point is to override the *global* element styles.
*/
import { RouterView } from "vue-router";
</script>
<template>
<div class="cv-layout">
<RouterView />
</div>
</template>
<!--
Light theme for /cv.
Unscoped on purpose. It re-points the site's colour tokens (defined in
src/assets/styles.css) to ink-on-paper values so the global element styles
render light, then undoes the few dark-site element styles that aren't
colours. It also holds the button styles shared by the CV pages.
-->
<style>
.cv-layout {
/* Paper palette */
--color-ink: #111;
--color-ink-soft: #333;
--color-ink-muted: #555;
--color-ink-faint: #999;
--color-ink-link: #0066cc;
--color-ink-danger: #c00;
--color-paper: #fff;
--color-paper-tint: #f5f5f5;
--color-paper-shade: #eee;
--color-line: #ccc;
--color-line-soft: #e0e0e0;
/* Site tokens -> paper */
--color-primary: var(--color-ink);
--color-secondary: var(--color-ink);
--color-tertiary: var(--color-ink);
--color-quaternary: var(--color-line);
--color-muted: var(--color-ink-muted);
--color-surface: var(--color-paper);
--color-surface-deep: var(--color-paper);
--color-link-bg: transparent;
min-height: 100vh;
background: var(--color-paper);
color: var(--color-ink);
}
/* Undo dark-site element styling that isn't just colour */
.cv-layout h1,
.cv-layout h2,
.cv-layout h3,
.cv-layout h4 {
margin: 0;
}
.cv-layout a {
text-align: left;
font-family: inherit;
letter-spacing: normal;
}
.cv-layout input,
.cv-layout textarea {
width: auto;
padding: 0;
background: var(--color-paper);
border-color: var(--color-line);
}
.cv-layout input::placeholder,
.cv-layout textarea::placeholder {
color: var(--color-ink-faint);
opacity: 1;
}
.cv-layout table,
.cv-layout tr {
border-color: transparent;
}
.cv-layout th {
border: none;
}
.cv-layout th,
.cv-layout td {
padding: 0;
}
/* Buttons on the CV selector bar */
.cv-btn {
padding: 0.4rem 1rem;
border: 1px solid var(--color-ink-soft);
border-radius: 4px;
background: var(--color-paper);
color: var(--color-ink-soft);
cursor: pointer;
font-size: 0.9rem;
white-space: nowrap;
text-decoration: none;
transition:
background 0.15s,
color 0.15s;
}
.cv-btn:hover {
background: var(--color-paper-shade);
}
.cv-btn:disabled {
opacity: 0.5;
cursor: default;
}
.cv-btn-sm {
padding: 0.2rem 0.55rem;
font-size: 0.8rem;
}
.cv-btn-primary,
.cv-btn.active {
background: var(--color-ink-soft);
color: var(--color-paper);
}
.cv-btn-primary:hover {
background: var(--color-ink-muted);
}
.cv-btn-danger {
border-color: var(--color-ink-danger);
color: var(--color-ink-danger);
}
.cv-btn-danger:hover {
background: #fee;
}
</style>