mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +00:00
feat: params
This commit is contained in:
parent
d6d4d9985e
commit
886f4a95dd
2 changed files with 19 additions and 0 deletions
6
frontend/src/params/application.ts
Normal file
6
frontend/src/params/application.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import type { ParamMatcher } from '@sveltejs/kit';
|
||||
|
||||
export const match: ParamMatcher = (param) => {
|
||||
//TODO: Application regex
|
||||
return /^\d+$/.test(param);
|
||||
};
|
||||
13
frontend/src/routes/login/[code=application]/+page.svelte
Normal file
13
frontend/src/routes/login/[code=application]/+page.svelte
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<script lang="ts">
|
||||
import FullLayout from '$lib/components/layout/FullLayout.svelte';
|
||||
</script>
|
||||
|
||||
<FullLayout />
|
||||
|
||||
<style>
|
||||
.form {
|
||||
@apply flex flex-col;
|
||||
@apply mx-auto w-[90%] h-full;
|
||||
@apply items-center justify-center;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in a new issue