Move job applications to /cv/jobs route and add layout system
Deploy with Docker Compose / deploy (push) Successful in 3m41s

- Add DefaultLayout and CVLayout with nested routing
- Job applications is now a standalone page at /cv/jobs with a back link
- Remove JobApplications embed from CV.vue

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
2026-04-13 10:09:22 +01:00
co-authored by Claude Sonnet 4.6
parent a0f99d9fba
commit 0dc1c278c2
6 changed files with 145 additions and 85 deletions
-2
View File
@@ -4,7 +4,6 @@ import CVGeneral from "./CVGeneral.vue";
import CVBackend from "./CVBackend.vue";
import CVFrontend from "./CVFrontend.vue";
import CVTemp from "./CVTemp.vue";
import JobApplications from "./JobApplications.vue";
const CVHospitality = defineAsyncComponent(() => import("./CVHospitality.vue"));
@@ -39,7 +38,6 @@ function print() {
<Transition name="cv-fade" mode="out-in">
<component :is="currentComponent" :key="selected" />
</Transition>
<JobApplications />
</div>
</template>
+22 -3
View File
@@ -1,6 +1,6 @@
<script setup>
import { ref, onMounted } from "vue";
import { useRouter } from "vue-router";
import { useRouter, RouterLink } from "vue-router";
import { useAuthStore } from "@/stores/auth";
import { gql } from "@/graphql";
@@ -158,9 +158,12 @@ onMounted(() => {
</script>
<template>
<div class="no-print ja-root">
<div class="ja-root">
<div class="ja-header">
<h2 class="ja-heading">Job Applications</h2>
<div class="ja-header-left">
<RouterLink to="/cv" class="ja-back">← CV</RouterLink>
<h2 class="ja-heading">Job Applications</h2>
</div>
<button class="ja-btn" @click="exportCsv" :disabled="!applications.length">Export CSV</button>
</div>
@@ -259,6 +262,22 @@ onMounted(() => {
margin-bottom: 1rem;
}
.ja-header-left {
display: flex;
align-items: center;
gap: 1rem;
}
.ja-back {
font-size: 0.85rem;
color: #555;
text-decoration: none;
}
.ja-back:hover {
color: #111;
}
.ja-heading {
font-size: 1.1rem;
font-weight: 600;