fixes
All checks were successful
ci / docker_image (push) Successful in 2m26s
ci / deploy (push) Successful in 23s

This commit is contained in:
Drake Marino 2025-06-19 22:23:54 -05:00
parent eebd44faf8
commit 5a48d5a2bb
3 changed files with 90 additions and 67 deletions

View File

@ -249,11 +249,11 @@
<div class="font-semibold">Résumé:</div> <div class="font-semibold">Résumé:</div>
{#if resumeState} {#if resumeState}
<a class="pb-2" href="/uploads/resumes/{data.user.id}.pdf" target="_blank"> <a class="pb-2" href="/uploads/resumes/{data.user.id}.pdf" target="_blank">
<button class="dull-primary-bg-color rounded-md px-2.5 py-1" <button class="dull-primary-bg-color my-1 mr-2 rounded-md px-2.5 py-1"
><span class="material-symbols-outlined align-middle">open_in_new</span> View résumé ><span class="material-symbols-outlined align-middle">open_in_new</span> View résumé
</button> </button>
</a> </a>
<button class="mb-2 ml-1 rounded-md border px-2.5 py-1" onclick={openUpload} <button class="my-1 mb-2 rounded-md border px-2.5 py-1" onclick={openUpload}
><span class="material-symbols-outlined align-middle">upload</span> Upload new version ><span class="material-symbols-outlined align-middle">upload</span> Upload new version
</button> </button>
{:else} {:else}
@ -296,7 +296,7 @@
</h3> </h3>
<p class="whitespace-pre-wrap">{application.candidateStatement}</p> <p class="whitespace-pre-wrap">{application.candidateStatement}</p>
</div> </div>
<div class="mr-3 mt-3"> <div class="mr-3 mt-3 min-w-max">
<a <a
href="account/editapplication?id={application.id}" href="account/editapplication?id={application.id}"
class="material-symbols-outlined hyperlink-color mr-3">edit</a class="material-symbols-outlined hyperlink-color mr-3">edit</a

View File

@ -3,6 +3,7 @@
import type { PageProps } from './$types'; import type { PageProps } from './$types';
import { employmentTypeDisplayName } from '$lib/shared.svelte'; import { employmentTypeDisplayName } from '$lib/shared.svelte';
import type { Posting } from '$lib/types'; import type { Posting } from '$lib/types';
import { MediaQuery } from 'svelte/reactivity';
const dateFormatOptions: Intl.DateTimeFormatOptions = { const dateFormatOptions: Intl.DateTimeFormatOptions = {
year: 'numeric', year: 'numeric',
@ -15,12 +16,17 @@
`https://ui-avatars.com/api/?background=random&format=svg&name=${encodeURIComponent(posting.company.name || 'COMPANY')}`; `https://ui-avatars.com/api/?background=random&format=svg&name=${encodeURIComponent(posting.company.name || 'COMPANY')}`;
} }
const largeScreen = new MediaQuery('min-width: 1024px');
let { data, form }: PageProps = $props(); let { data, form }: PageProps = $props();
</script> </script>
<div class="base-container"> {#snippet jobDetails()}
<div class="content flex"> <div
<div class="elevated separator-borders ml-4 mt-4 inline-block h-min w-1/2 rounded p-4"> class="elevated separator-borders my-2 h-min rounded p-4 {largeScreen.current
? 'mr-2 inline-block w-1/2'
: 'block w-full'}"
>
<div class="bottom-border elevated-bg flex justify-between pb-2"> <div class="bottom-border elevated-bg flex justify-between pb-2">
<div class="inline-block"> <div class="inline-block">
<img <img
@ -37,7 +43,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="scrollbar-on-elevated details-height overflow-y-scroll"> <div class="scrollbar-on-elevated overflow-y-scroll">
<h2 class="pt-2 font-semibold">Contact</h2> <h2 class="pt-2 font-semibold">Contact</h2>
<p>{data.posting.employer?.fullName} ({data.posting.employer?.username})</p> <p>{data.posting.employer?.fullName} ({data.posting.employer?.username})</p>
<a class="hover-hyperlink" href="mailto:{data.posting.employer?.email}" <a class="hover-hyperlink" href="mailto:{data.posting.employer?.email}"
@ -53,8 +59,8 @@
{#if data.posting.address} {#if data.posting.address}
<a <a
href="https://www.google.com/maps/search/?api=1&query={data.posting.address}" href="https://www.google.com/maps/search/?api=1&query={data.posting.address}"
class="block w-max" class="block"
>Address: <span class="hover-hyperlink">{data.posting.address}</span></a >Address: <span class="hover-hyperlink break-words">{data.posting.address}</span></a
> >
{/if} {/if}
{#if data.posting.wage} {#if data.posting.wage}
@ -64,23 +70,35 @@
<p>Posted: {data.posting.createdAt.toLocaleDateString('en-US', dateFormatOptions)}</p> <p>Posted: {data.posting.createdAt.toLocaleDateString('en-US', dateFormatOptions)}</p>
{/if} {/if}
{#if data.posting.link} {#if data.posting.link}
<a href={data.posting.link} class="block w-max" <a href={data.posting.link} class="block"
>More information: <span class="hyperlink-color hyperlink-underline" >More information: <span class="hyperlink-color hyperlink-underline break-all"
>{data.posting.link}</span >{data.posting.link}</span
></a ></a
> >
{/if} {/if}
{#if data.posting.flyerLink} {#if data.posting.flyerLink}
<a href={data.posting.flyerLink} class="block w-max" <a href={data.posting.flyerLink} class="block"
>Flyer: <span class="hyperlink-color hyperlink-underline">{data.posting.flyerLink}</span >Flyer: <span class="hyperlink-color hyperlink-underline break-all"
>{data.posting.flyerLink}</span
></a ></a
> >
{/if} {/if}
<h2 class="pt-2 font-semibold">Job Description</h2> <h2 class="pt-2 font-semibold">Job Description</h2>
<p class="whitespace-pre-wrap">{data.posting.description}</p> <p class="whitespace-pre-wrap break-words">{data.posting.description}</p>
</div> </div>
</div> </div>
<div class="elevated separator-borders m-4 inline-block h-min w-1/2 rounded"> {/snippet}
<div class="base-container">
<div class="content {largeScreen.current ? 'flex' : 'block'}">
{#if largeScreen.current}
{@render jobDetails()}
{/if}
<div
class="elevated separator-borders my-2 h-min rounded {largeScreen.current
? 'inline-block w-1/2'
: 'block w-full'}"
>
<div class="bottom-border flex place-content-between"> <div class="bottom-border flex place-content-between">
<div class="p-3 font-semibold">Edit Application</div> <div class="p-3 font-semibold">Edit Application</div>
</div> </div>
@ -93,8 +111,8 @@
name="candidateStatement" name="candidateStatement"
placeholder="Answer here" placeholder="Answer here"
required required
rows="4" rows="4">{data.application.candidateStatement}</textarea
>{data.application.candidateStatement}</textarea> >
</div> </div>
<p> <p>
Your account information and résumé (if supplied) will be submitted along with this Your account information and résumé (if supplied) will be submitted along with this
@ -107,11 +125,14 @@
{/if} {/if}
<button <button
class="dull-primary-bg-color mb-4 mt-6 rounded px-2 py-1" class="dull-primary-bg-color mb-4 mt-6 rounded px-2 py-1"
formaction="?/submit&id={data.application.id}" formaction="?/submit"
type="submit" type="submit"
>Save application >Save application
</button> </button>
</form> </form>
</div> </div>
{#if !largeScreen.current}
{@render jobDetails()}
{/if}
</div> </div>
</div> </div>

View File

@ -40,6 +40,8 @@
placeholder="Username" placeholder="Username"
required required
type="text" type="text"
autocapitalize="none"
autocorrect="off"
/> />
</div> </div>
<div class="relative w-full"> <div class="relative w-full">