Skip to content

Commit

Permalink
overhaul babyyyy
Browse files Browse the repository at this point in the history
  • Loading branch information
JSpring0303 committed Nov 19, 2024
1 parent 545da60 commit b277107
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 98 deletions.
97 changes: 10 additions & 87 deletions src/lib/components/headers/app-header.svelte
Original file line number Diff line number Diff line change
@@ -1,41 +1,33 @@
<script lang="ts">
import type { User } from "lucia";
import { AccountHeaderComponent } from "@/account";
import { page } from "$app/stores";
import { derived } from "svelte/store";
interface Props {
user: User | null;
}
const { user }: Props = $props();
//need to add pathways for each page
const isHomePage = derived(page, ($page) => $page.url.pathname === "/");
const isUploadPage = derived(page, ($page) => $page.url.pathname === "/");
const isProfilePage = derived(
page,
($page) => $page.url.pathname === "/app/account",
);
</script>

<header
class="sticky top-0 z-50 w-full bg-gradient-to-b from-[#202020] to-[#020202]"
class="sticky top-0 z-50 w-full bg-gradient-to-b from-[#000013] to-[#000000]"
>
<!-- Div that contains the icon and text logos -->

<div
class="container mx-auto flex h-24 max-w-screen-2xl items-center px-4 2xl:px-0"
>
<!-- need to add link -->
<a href="/">
<a href="/app">
<div class="flex items-center md:mr-4">
<img
src="src/lib/logos/Logo-Green.svg"
src="src/lib/logos/BirdPink.svg"
alt="JailBird Green"
class="h-16"
/>

<img
src="src/lib/logos/JailBirdText.svg"
src="src/lib/logos/JailBirdTextWhite.svg"
alt=""
class="h-16 pl-4"
/>
Expand All @@ -47,94 +39,25 @@
>
<div>
<!-- need to add link -->
<a
href="/"
class="group flex flex-col items-center hover:text-[#6CFF96]"
>
<a href="/app" class="group flex flex-col items-center">
<img
src={$isHomePage
? "src/lib/menuIcons/homeGreen.svg"
: "src/lib/menuIcons/homeWhite.svg"}
src="src/lib/menuIcons/newHome.svg"
alt="Home Icon"
style="height: 40px;"
class="group-hover:hidden"
/>
<img
src="src/lib/menuIcons/homeGreen.svg"
alt="Home Icon Hover"
style="height: 40px;"
class="hidden group-hover:block"
/>

<p
class="text-white-600 group-hover:text-[#6CFF96]"
style="font-family: futura, sans-serif; font-weight: 600; font-style: normal; font-size: 1.25rem;"
class:active-text={$isHomePage}
>
Home
</p>
</a>
</div>

<div>
<!-- need to add link -->
<a
href="/"
class="group flex flex-col items-center hover:text-[#6CFF96]"
>
<img
src={$isUploadPage
? "src/lib/menuIcons/uploadGreen.svg"
: "src/lib/menuIcons/uploadWhite.svg"}
alt="Upload File Icon"
style="height: 40px;"
class="group-hover:hidden"
/>

<img
src="src/lib/menuIcons/uploadGreen.svg"
src="src/lib/menuIcons/newHomePink.svg"
alt="Home Icon Hover"
style="height: 40px;"
class="hidden group-hover:block"
/>

<p
class="text-white-600 group-hover:text-[#6CFF96]"
style="font-family: futura, sans-serif; font-weight: 600; font-style: normal; font-size: 1.25rem;"
class:active-text={$isUploadPage}
>
Shared Files
</p>
</a>
</div>

<div>
<!-- need to add link -->
<a
href="/"
class="group flex flex-col items-center hover:text-[#6CFF96]"
>
<AccountHeaderComponent {user} avatar_size="custom" />

<p
class="text-white-600 group-hover:text-[#6CFF96]"
style="font-family: futura, sans-serif; font-weight: 600; font-style: normal; font-size: 1.25rem;"
class:active-text={$isProfilePage}
>
Profile
</p>
</a>
<AccountHeaderComponent {user} avatar_size="custom" />
</div>
</div>
</div>
</header>

<style>
p {
color: white;
}
.active-text {
color: #6cff96;
}
</style>
4 changes: 2 additions & 2 deletions src/lib/components/headers/landing-header.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { User } from "lucia";
import LogoGreen from "$lib/logos/Logo-GreenWithText.svg";
import LogoGreen from "$lib/logos/birdAndTextPink.svg";
import { AccountHeaderComponent } from "@/account";
interface Props {
Expand All @@ -11,7 +11,7 @@
</script>

<header
class="sticky top-0 z-50 h-28 w-full bg-gradient-to-b from-[#202020] to-[#020202] shadow-lg"
class="sticky top-0 z-50 h-28 w-full bg-gradient-to-b from-[#000013] to-[#000000] shadow-lg"
>
<div class="flex h-full items-center justify-end px-20 py-4">
<AccountHeaderComponent {user} avatar_size="custom" />
Expand Down
1 change: 1 addition & 0 deletions src/lib/logos/BirdPink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/lib/logos/BirdWhite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/lib/logos/JailBirdTextWhite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/lib/logos/birdAndTextPink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/lib/menuIcons/newHome.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/lib/menuIcons/newHomePink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions src/routes/(app)/app/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
<script lang="ts">
import { AppFooter } from "@/footers";
import { AppHeader } from "@/headers";
import Main from "@/main.svelte";
const { data, children } = $props();
const { user } = data;
</script>

<AppHeader {user} />

{@render children()}

<div
class="h-full bg-cover bg-center"
style="background-image: url('/backgroundsAndAssets/newBackground2.jpg');background-attachment: fixed; background-size: cover; background-position: center;"
>
<Main>
{@render children()}
</Main>
</div>
<AppFooter />
2 changes: 1 addition & 1 deletion src/routes/(landing)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<div
class="h-full bg-cover bg-center"
style="background-image: url('/backgroundsAndAssets/landerDecoBackgroundV2.svg'), linear-gradient(to right, #0A0A0A 30%, #6CFF96 100%); background-position: right center; background-repeat: no-repeat; background-size: 40%;"
style="background-image: url('/backgroundsAndAssets/newLandingBackground.jpg');background-attachment: fixed; background-size: cover; background-position: center;"
>
<Main class="h-landing-main">
{@render children()}
Expand Down
10 changes: 5 additions & 5 deletions src/routes/(landing)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
<div class="flex w-full items-center justify-between gap-x-24 pt-32">
<h1
class="flex-1 text-left"
style="font-family: futura, sans-serif; font-weight: 400; font-style: normal; font-size: 4.75rem; text-align: left; color: white; text-shadow: -4px 5px 7px rgba(0, 0, 0, 0.4);"
style="font-family: futura, sans-serif; font-weight: 400; font-style: normal; font-size: 4.75rem; text-align: left; color: white; text-shadow: -4px 5px 7px rgba(0, 0, 0, 0.2);"
>
<span style="font-weight: 600; color: #6CFF96;">Newest</span>
<span style="font-weight: 600; color: #993467;">Newest</span>
and Most
<br />
<span style="font-weight: 600; color: #6CFF96;">Secure</span>
<span style="font-weight: 600; color: #993467;">Secure</span>
File
<br />
<span style="font-weight: 600; color: #6CFF96;">Storage</span>
Application.
<span style="font-weight: 600; color: #993467;">Storage</span>
Application.
</h1>

<div class="flex flex-1 items-center justify-end">
Expand Down
1 change: 1 addition & 0 deletions static/backgroundsAndAssets/defaultBackground2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/backgroundsAndAssets/newBackground.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/backgroundsAndAssets/newBackground2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b277107

Please sign in to comment.