base route impl
All checks were successful
ci / docker_image (push) Successful in 1m37s
ci / deploy (push) Successful in 16s

This commit is contained in:
Drake Marino 2025-02-01 00:46:11 -06:00
parent fceef893c3
commit a550abba16
5 changed files with 21 additions and 7 deletions

View File

@ -405,7 +405,7 @@ h2 {
}
.details-height {
max-height: calc(100vh - 200px);
max-height: calc(100vh - 265px);
}
.top-with-navbar {

View File

@ -39,8 +39,8 @@ export async function updateUser(user: User): Promise<number> {
const response = await sql`UPDATE users
SET
username = ${user.username},
perms = ${user.perms},
active = ${user.active},
${user.perms !== undefined ? sql`perms = ${user.perms},` : sql``}
${user.active !== undefined ? sql`active = ${user.active},` : sql``}
${password_hash !== null ? sql`password_hash = ${password_hash},` : sql``}
email = ${user.email},
phone = ${user.phone},
@ -190,6 +190,7 @@ export async function getUserWithCompanyAndApplications(
),
user_data AS (
SELECT
id,
username,
perms,
email,

View File

@ -39,7 +39,7 @@
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..40,400,0,0&display=block&icon_names=account_circle,arrow_drop_down,arrow_drop_up,calendar_today,call,check,close,dark_mode,delete,description,edit,group,info,light_mode,login,mail,person,search,sell,store,visibility,visibility_off,work"
/>
<div class="bottom-border bg-color sticky top-0 flex h-14 justify-between p-3 align-middle">
<div class="bottom-border bg-color sticky top-0 z-50 flex h-14 justify-between p-3 align-middle">
<nav class="pt-1">
<a href="/" class="hover-bg-color mr-1 rounded-md px-2 pb-2 pt-1.5">
<img

View File

@ -9,12 +9,25 @@
</script>
<div class="base-container">
<div class="content pt-4">
<div class="content pt-16">
<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
We provide an accessible way for students to find internships and co-op opportunities, and for
employers to find students to fill their positions.
</h2>
<h3 class="pt-16 font-semibold">Contact Information:</h3>
<p>Drake Marino:</p>
<a href="mailto:drake@marinodev.com" class="hyperlink-color hyperlink-underline"
>drake@marinodev.com</a
>
<p>Chetan Malkan:</p>
<a href="mailto:chetan@marinodev.com" class="hyperlink-color hyperlink-underline"
>chetan@marinodev.com</a
>
<h3 class="pt-8 font-semibold">Source Code:</h3>
<a href="https://git.marinodev.com/MarinoDev/FBLA25" class="hyperlink-color hyperlink-underline"
>https://git.marinodev.com/MarinoDev/FBLA25</a
>
</div>
</div>

View File

@ -68,7 +68,7 @@ export const actions: Actions = {
) {
return fail(400, { errorMessage: 'Please fill out all required fields' });
}
if (password.length < 8) {
if (password.length < 4) {
return fail(400, { errorMessage: 'Password must be at least 8 characters' });
}
if (username.length < 4) {