fix companies and improve landing page
This commit is contained in:
parent
7d4ad34587
commit
c4567270b5
@ -55,7 +55,11 @@
|
|||||||
<nav class="bottom-border nav-bg sticky top-0 z-50 align-middle">
|
<nav class="bottom-border nav-bg sticky top-0 z-50 align-middle">
|
||||||
<div class="flex h-14 justify-between p-3">
|
<div class="flex h-14 justify-between p-3">
|
||||||
<div class="pt-1">
|
<div class="pt-1">
|
||||||
<a class="hover-bg-color mr-1 rounded-md px-2 pb-2 pt-1.5" href="/">
|
<a
|
||||||
|
class="hover-bg-color mr-1 rounded-md px-2 pb-2 pt-1.5"
|
||||||
|
href="/"
|
||||||
|
onclick={(document.getElementById('mobile-menu').style.display = 'none')}
|
||||||
|
>
|
||||||
<img
|
<img
|
||||||
alt="MarinoDev Logo"
|
alt="MarinoDev Logo"
|
||||||
class="inline-block"
|
class="inline-block"
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
|
|
||||||
import { updateUserState } from '$lib/shared.svelte';
|
import { updateUserState } from '$lib/shared.svelte';
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
@ -8,26 +7,36 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="base-container">
|
<div class="base-container flex flex-col items-center justify-center px-4 py-16">
|
||||||
<div class="content pt-16">
|
<img alt="MarinoDev Logo" src="/mdevtriangle.svg" class="mb-8 h-32 w-32" />
|
||||||
<img alt="MarinoDev Logo" class="mx-auto" height="256" src="/mdevtriangle.svg" width="256" />
|
|
||||||
<h1 class="text-center text-8xl font-semibold">CareerConnect</h1>
|
<h1 class="mb-4 text-center text-5xl font-bold md:text-7xl">CareerConnect</h1>
|
||||||
<h2 class="text-center text-3xl italic">Connecting Students with Opportunities</h2>
|
<p class="low-emphasis-text mb-2 text-center text-xl italic md:text-2xl">
|
||||||
<h2 class="pt-8 text-center">We are a platform that connects students with employers.</h2>
|
Connecting Students with Opportunities
|
||||||
<h2 class="text-center">
|
</p>
|
||||||
We provide an accessible way for students to find internships and co-op opportunities, and for
|
|
||||||
employers to find students to fill their positions.
|
<p class="low-emphasis-text mt-6 max-w-2xl text-center text-lg md:text-xl">
|
||||||
</h2>
|
CareerConnect bridges the gap between students and employers by providing an accessible,
|
||||||
<p class="mt-16">
|
intuitive platform for internship and co-op discovery.
|
||||||
Create an account or sign in <a class="hyperlink-color hyperlink-underline" href="/signin"
|
</p>
|
||||||
>here</a
|
|
||||||
>.
|
<div class="mt-10 flex flex-col gap-4 md:flex-row">
|
||||||
</p>
|
<a
|
||||||
<p>
|
href="/postings"
|
||||||
Or head over to our postings page <a
|
class="dull-primary-bg-color rounded-xl px-6 py-3 text-lg font-medium shadow transition"
|
||||||
class="hyperlink-color hyperlink-underline"
|
>
|
||||||
href="/postings">here</a
|
Browse Job Postings
|
||||||
> to view all job opportunities.
|
</a>
|
||||||
</p>
|
|
||||||
|
<a
|
||||||
|
href="/register"
|
||||||
|
class="dull-primary-border-color rounded-xl border px-6 py-3 text-lg font-medium shadow transition"
|
||||||
|
>
|
||||||
|
Create an Account
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p class="mt-12 text-sm text-gray-500">
|
||||||
|
Already have an account? <a href="/signin" class="text-blue-600 underline">Sign in here</a>.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
import { userState } from '$lib/shared.svelte';
|
import { userState } from '$lib/shared.svelte';
|
||||||
import { PERMISSIONS } from '$lib/consts';
|
import { PERMISSIONS } from '$lib/consts';
|
||||||
import type { User } from '$lib/types';
|
import type { User } from '$lib/types';
|
||||||
|
import { MediaQuery } from 'svelte/reactivity';
|
||||||
|
|
||||||
function avatarFallback(e: Event, user: User): null {
|
function avatarFallback(e: Event, user: User): null {
|
||||||
(e.target as HTMLImageElement).src =
|
(e.target as HTMLImageElement).src =
|
||||||
@ -15,11 +16,13 @@
|
|||||||
`https://ui-avatars.com/api/?background=random&format=svg&name=${encodeURIComponent(data.company.name!)}`;
|
`https://ui-avatars.com/api/?background=random&format=svg&name=${encodeURIComponent(data.company.name!)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const largeScreen = new MediaQuery('min-width: 768px');
|
||||||
|
|
||||||
let { data, form }: PageProps = $props();
|
let { data, form }: PageProps = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="base-container">
|
<div class="base-container">
|
||||||
<div class="content py-4">
|
<div class="content my-2">
|
||||||
<div class="bottom-border mb-4 flex justify-between">
|
<div class="bottom-border mb-4 flex justify-between">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<img
|
<img
|
||||||
@ -44,8 +47,12 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class={largeScreen.current ? 'flex' : 'block'}>
|
||||||
<div class="elevated separator-borders mr-4 inline-block h-min w-3/4 rounded">
|
<div
|
||||||
|
class="elevated separator-borders mr-2 h-min {largeScreen.current
|
||||||
|
? 'inline-block w-3/4'
|
||||||
|
: 'block w-full'} rounded"
|
||||||
|
>
|
||||||
<div class="p-3 font-semibold">
|
<div class="p-3 font-semibold">
|
||||||
{data.postings
|
{data.postings
|
||||||
? data.company.name + "'s Postings"
|
? data.company.name + "'s Postings"
|
||||||
@ -68,7 +75,11 @@
|
|||||||
</a>
|
</a>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
<div class="elevated separator-borders inline-block h-min w-1/4 rounded">
|
<div
|
||||||
|
class="elevated separator-borders h-min rounded {largeScreen.current
|
||||||
|
? 'inline-block w-1/4'
|
||||||
|
: 'mt-2 block w-full'}"
|
||||||
|
>
|
||||||
<div class="flex place-content-between">
|
<div class="flex place-content-between">
|
||||||
<div class="p-3 font-semibold">Employers</div>
|
<div class="p-3 font-semibold">Employers</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user