diff --git a/web/public/fonts/CreatoDisplay-Bold.woff2 b/web/public/fonts/CreatoDisplay-Bold.woff2 deleted file mode 100644 index 7996887..0000000 Binary files a/web/public/fonts/CreatoDisplay-Bold.woff2 and /dev/null differ diff --git a/web/src/App.vue b/web/src/App.vue index eacdcf6..164ce62 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -1,10 +1,208 @@ + + diff --git a/web/src/assets/styles.css b/web/src/assets/styles.css index 3b40229..b1d85b1 100644 --- a/web/src/assets/styles.css +++ b/web/src/assets/styles.css @@ -1,14 +1,15 @@ /* - * Global stylesheet: the tracker's whole look outside the components. + * Global stylesheet: the design tokens and the small set of shared primitives + * (buttons, inputs, cards, pills, alerts, the page header) that every view + * composes. Views keep only their own layout in scoped diff --git a/web/src/views/JobApplicationForm.vue b/web/src/views/JobApplicationForm.vue index 9d23a75..69fd2b6 100644 --- a/web/src/views/JobApplicationForm.vue +++ b/web/src/views/JobApplicationForm.vue @@ -5,16 +5,16 @@ * row appears in the parent's table without the two having to talk. * * Like JobReferences.vue it reports through the parent's single error banner: - * `fail` carries the error, `ok` says a create succeeded. - * - * Its root sits inside the parent's `.ja-root`, which jobs-shared.css relies on. + * `fail` carries the error, `ok` says a create succeeded. `close` asks the + * parent to fold the form away, which it offers only when `closable`. */ import { ref } from "vue"; import { useJobApplicationsStore } from "@/stores/jobApplications"; import { STATUS_OPTIONS } from "./jobStatus"; -import "./jobs-shared.css"; +import Icon from "@/components/Icon.vue"; -const emit = defineEmits(["fail", "ok"]); +defineProps({ closable: { type: Boolean, default: false } }); +const emit = defineEmits(["fail", "ok", "close"]); const store = useJobApplicationsStore(); @@ -62,68 +62,93 @@ async function createApplication() { diff --git a/web/src/views/JobSources.vue b/web/src/views/JobSources.vue index 8a01a37..3d7f8a5 100644 --- a/web/src/views/JobSources.vue +++ b/web/src/views/JobSources.vue @@ -16,7 +16,7 @@ import { ref, computed, onMounted } from "vue"; import { storeToRefs } from "pinia"; import { useJobSourcesStore } from "@/stores/jobSources"; -import "./jobs-shared.css"; +import Icon from "@/components/Icon.vue"; const emit = defineEmits(["fail", "ok"]); @@ -89,111 +89,168 @@ onMounted(fetchSources); diff --git a/web/src/views/Settings.vue b/web/src/views/Settings.vue index 6f88084..ef8a2c7 100644 --- a/web/src/views/Settings.vue +++ b/web/src/views/Settings.vue @@ -15,9 +15,8 @@ * panel. */ import { ref, onMounted } from "vue"; -import { RouterLink } from "vue-router"; import { api } from "@/api"; -import "./jobs-shared.css"; +import Icon from "@/components/Icon.vue"; const error = ref(""); const busy = ref(false); @@ -130,162 +129,185 @@ onMounted(() => {