dev
This commit is contained in:
parent
2acc65823b
commit
fceef893c3
@ -7,3 +7,14 @@
|
|||||||
updateUserState();
|
updateUserState();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div class="base-container">
|
||||||
|
<div class="content pt-4">
|
||||||
|
<h1 class="text-center font-semibold">Welcome to CareerConnect!</h1>
|
||||||
|
<h2 class="pt-8 text-center">We are a platform that connects students with employers.</h2>
|
||||||
|
<h2 class="text-center">
|
||||||
|
We provide a platform for students to find internships and co-op opportunities, and for
|
||||||
|
employers to find students to fill their positions.
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@ -1,12 +1,7 @@
|
|||||||
import type { PageServerLoad } from './$types';
|
import type { PageServerLoad } from './$types';
|
||||||
import {
|
import { deleteApplicationWithUser, getUserWithCompanyAndApplications } from '$lib/db/index.server';
|
||||||
deleteApplication,
|
import { getUserId } from '$lib/index.server';
|
||||||
deleteApplicationWithUser,
|
|
||||||
getUserWithCompanyAndApplications
|
|
||||||
} from '$lib/db/index.server';
|
|
||||||
import { getUserId, getUserPerms } from '$lib/index.server';
|
|
||||||
import { type Actions, fail } from '@sveltejs/kit';
|
import { type Actions, fail } from '@sveltejs/kit';
|
||||||
import { PERMISSIONS } from '$lib/consts';
|
|
||||||
|
|
||||||
export const load: PageServerLoad = async ({ cookies }) => {
|
export const load: PageServerLoad = async ({ cookies }) => {
|
||||||
const id = getUserId(cookies);
|
const id = getUserId(cookies);
|
||||||
|
|||||||
@ -37,7 +37,7 @@ export const actions: Actions = {
|
|||||||
email !== '' &&
|
email !== '' &&
|
||||||
fullName !== ''
|
fullName !== ''
|
||||||
) {
|
) {
|
||||||
if (password.length < 8) {
|
if (password.length < 4) {
|
||||||
return fail(400, { errorMessage: 'Password must be at least 8 characters' });
|
return fail(400, { errorMessage: 'Password must be at least 8 characters' });
|
||||||
}
|
}
|
||||||
const user: User = <User>{
|
const user: User = <User>{
|
||||||
|
|||||||
BIN
static/img.png
Normal file
BIN
static/img.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
Loading…
Reference in New Issue
Block a user