From a9801cce3fced5655cb6863a88ca4137a3eb2fe0 Mon Sep 17 00:00:00 2001 From: Liam Keegan Date: Mon, 9 Dec 2024 09:51:42 +0100 Subject: [PATCH] [[position]] doesn't work with static adapter, make a route for each job ad, add header text to identify each page of generated pdf --- .../components/ApplicationForm.svelte} | 48 +++++++++---------- src/routes/+layout.svelte | 11 +++++ src/routes/{[[position]] => }/+layout.ts | 0 src/routes/+page.svelte | 9 ++++ src/routes/[[position]]/+layout.svelte | 5 -- src/routes/hpc/+page.svelte | 7 +++ src/routes/rse/+page.svelte | 7 +++ src/routes/web/+page.svelte | 7 +++ 8 files changed, 65 insertions(+), 29 deletions(-) rename src/{routes/[[position]]/+page.svelte => lib/components/ApplicationForm.svelte} (79%) create mode 100644 src/routes/+layout.svelte rename src/routes/{[[position]] => }/+layout.ts (100%) create mode 100644 src/routes/+page.svelte delete mode 100644 src/routes/[[position]]/+layout.svelte create mode 100644 src/routes/hpc/+page.svelte create mode 100644 src/routes/rse/+page.svelte create mode 100644 src/routes/web/+page.svelte diff --git a/src/routes/[[position]]/+page.svelte b/src/lib/components/ApplicationForm.svelte similarity index 79% rename from src/routes/[[position]]/+page.svelte rename to src/lib/components/ApplicationForm.svelte index 9e73dc0..8f4d217 100644 --- a/src/routes/[[position]]/+page.svelte +++ b/src/lib/components/ApplicationForm.svelte @@ -1,7 +1,6 @@ -
- WORK IN PROGRESSS! - {#if position}
{position}

- {:else} -
- Invalid or expired link. -
- {/if} -
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte new file mode 100644 index 0000000..f7aeecb --- /dev/null +++ b/src/routes/+layout.svelte @@ -0,0 +1,11 @@ + + +
+
+ WORK IN PROGRESSS! +
+ +
diff --git a/src/routes/[[position]]/+layout.ts b/src/routes/+layout.ts similarity index 100% rename from src/routes/[[position]]/+layout.ts rename to src/routes/+layout.ts diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte new file mode 100644 index 0000000..66f8f4d --- /dev/null +++ b/src/routes/+page.svelte @@ -0,0 +1,9 @@ + + + + +
+ Invalid or expired link. +
diff --git a/src/routes/[[position]]/+layout.svelte b/src/routes/[[position]]/+layout.svelte deleted file mode 100644 index ae576e4..0000000 --- a/src/routes/[[position]]/+layout.svelte +++ /dev/null @@ -1,5 +0,0 @@ - - - diff --git a/src/routes/hpc/+page.svelte b/src/routes/hpc/+page.svelte new file mode 100644 index 0000000..afd3e9b --- /dev/null +++ b/src/routes/hpc/+page.svelte @@ -0,0 +1,7 @@ + + + + + diff --git a/src/routes/rse/+page.svelte b/src/routes/rse/+page.svelte new file mode 100644 index 0000000..8810f17 --- /dev/null +++ b/src/routes/rse/+page.svelte @@ -0,0 +1,7 @@ + + + + + diff --git a/src/routes/web/+page.svelte b/src/routes/web/+page.svelte new file mode 100644 index 0000000..70d2eef --- /dev/null +++ b/src/routes/web/+page.svelte @@ -0,0 +1,7 @@ + + + + +