diff --git a/src/lib/emails/email.ts b/src/lib/emails/email.ts index fe0310f..5e242ee 100644 --- a/src/lib/emails/email.ts +++ b/src/lib/emails/email.ts @@ -58,9 +58,9 @@ export async function sendEmail>( if (emailResponse.ErrorCode !== 0) { if (emailResponse.ErrorCode === 300) { - throw error(400, { message: 'Invalid email address' }) + throw error(400, { message: 'Invalid email address' }); } - + console.error(`Failed to send an email: ${emailResponse.Message}`); throw error(500, { message: 'Internal server error' }); } diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index f50ee5b..5e4efad 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -8,6 +8,8 @@ + + @@ -54,10 +56,10 @@ :global(:root) { font-family: 'Revolution Sans ASCII', 'Revolution Sans', 'system-ui', 'sans-serif'; color: rgb(var(--fg)); - + // WebKit does this for some reason font-synthesis: none; - + // Scrollbar color-scheme: dark; } @@ -173,12 +175,12 @@ } } } - + // Global header styles :global(h1) { font-family: 'Revolution Sans Title', 'Revolution Sans ASCII', 'Revolution Sans', system-ui, sans-serif; } - + :global(h1, h2, h3, h4, h5, h6) { font-variation-settings: 'opsz' 40; font-weight: bolder; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 0455390..5e07f80 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -11,7 +11,7 @@ name="description" content="Revolution is a UK hackathon taking place sometime next year. We'd love to see you there!" /> - + {#snippet email()} @@ -128,46 +128,47 @@ display: flex; } } - + .train-track { position: relative; height: 8em; - - &::before, &::after { + + &::before, + &::after { position: absolute; display: block; - content: ""; + content: ''; top: 0; left: 0; width: 100%; height: 100%; } - + &::before { background: repeat space url('$lib/textures/track.svg') left/8em; } - + &::after { // 149em comes from 2388px (width of SVG) / 16px background: no-repeat space url('$lib/images/train.svg') left/149em; animation: 30s linear infinite train; animation-delay: var(--animation-delay); } - + &.reverse::after { transform: rotate(0.5turn); } - + @keyframes train { from { background-position-x: -450%; } - + to { background-position-x: 550%; } } - + @media (prefers-reduced-motion) { display: none; } @@ -218,7 +219,7 @@ display: block; } } - + @media (prefers-reduced-motion) { animation: none; } diff --git a/src/routes/email/+page.server.ts b/src/routes/email/+page.server.ts index b18ad74..e99f208 100644 --- a/src/routes/email/+page.server.ts +++ b/src/routes/email/+page.server.ts @@ -19,8 +19,8 @@ export const actions = { if (email instanceof File) { return fail(400, { message: 'Attempted to upload a file?' }); } - - if (email.includes('\'') || email.includes('\\')) { + + if (email.includes("'") || email.includes('\\')) { return fail(400, { message: 'Forbidden characters used' }); } @@ -41,7 +41,7 @@ export const actions = { }) ).getId(); } catch (_) { - return fail(400, { message: "Invalid email address" }) + return fail(400, { message: 'Invalid email address' }); } } else { if (existingRecord[0].get('Verified')) {