Fix navbar colours on press and hover. Removed x50 colours

This commit is contained in:
Antoine Phan
2025-12-10 00:53:06 -05:00
parent acf7eff96f
commit cb8a67e008
9 changed files with 18 additions and 19 deletions

View File

@@ -11,7 +11,7 @@
</div> </div>
<div class="text-left"> <div class="text-left">
<div class="text-xl md:text-2xl font-bold">{name}</div> <div class="text-xl md:text-2xl font-bold">{name}</div>
<div class="text-sm md:text-base text-ecsess-150 mb-2 italic">{position}</div> <div class="text-sm md:text-base text-ecsess-200 mb-2 italic">{position}</div>
<Button onclick={onViewProfile}>View Profile</Button> <Button onclick={onViewProfile}>View Profile</Button>
</div> </div>
</div> </div>

View File

@@ -5,8 +5,8 @@
<Tabs.Control <Tabs.Control
{value} {value}
classes="hover:border-b-ecsess-150 border-b-4 transition-all ease-in-out pb-2 text-lg active:border-b-ecsess-500 px-2" classes="hover:border-b-ecsess-200 border-b-4 transition-all ease-in-out pb-2 text-lg active:border-b-ecsess-500 px-2"
stateActive="border-b-ecsess-350" stateActive="border-b-ecsess-400"
> >
{@render children()} {@render children()}
</Tabs.Control> </Tabs.Control>

View File

@@ -44,7 +44,7 @@
controlClasses=" controlClasses="
flex cursor-pointer justify-between flex cursor-pointer justify-between
py-4 ease-in-out" py-4 ease-in-out"
panelClasses=" border-t-ecsess-300 border-t-2 bg-transparent p-4 bg-ecsess-350/50" panelClasses=" border-t-ecsess-300 border-t-2 bg-transparent p-4 bg-ecsess-400/50"
> >
<!-- Control --> <!-- Control -->
{#snippet lead()} {#snippet lead()}

View File

@@ -77,7 +77,7 @@
<!-- Center: Connect With Us --> <!-- Center: Connect With Us -->
<div class="border-ecsess-800 border-b-1 pb-8 text-center md:border-0"> <div class="border-ecsess-800 border-b-1 pb-8 text-center md:border-0">
<h3 class="text-ecsess-150 mb-3 text-lg font-semibold">Connect With Us</h3> <h3 class="text-ecsess-200 mb-3 text-lg font-semibold">Connect With Us</h3>
<div class="flex flex-wrap items-center justify-center gap-3"> <div class="flex flex-wrap items-center justify-center gap-3">
{#each socialLinks as link} {#each socialLinks as link}
<a <a
@@ -185,7 +185,7 @@
<!-- Copyright --> <!-- Copyright -->
<div> <div>
<p class="text-ecsess-150 text-center text-sm"> <p class="text-ecsess-200 text-center text-sm">
🄯 ECSESS {year} under GNU General Public License v3.0. <br /> 🄯 ECSESS {year} under GNU General Public License v3.0. <br />
Designed with love {'<3'}. Designed with love {'<3'}.
</p> </p>

View File

@@ -8,6 +8,7 @@
</script> </script>
<nav class="bg-ecsess-black text-ecsess-100 sticky w-full py-1"> <nav class="bg-ecsess-black text-ecsess-100 sticky w-full py-1">
<!-- Small screens -->
<div class="block md:hidden"> <div class="block md:hidden">
<div class="mx-4 flex items-center-safe justify-between"> <div class="mx-4 flex items-center-safe justify-between">
<a href="/"> <a href="/">
@@ -41,6 +42,7 @@
{/if} {/if}
</div> </div>
<!-- Medium and larger screens -->
<div class="hidden md:block"> <div class="hidden md:block">
<div class="flex place-content-center items-end"> <div class="flex place-content-center items-end">
<a href="/"> <a href="/">

View File

@@ -1,21 +1,18 @@
<script> <script>
import { page } from '$app/stores'; import { page } from '$app/state';
let { href, children } = $props(); let { href, children } = $props();
// Check if this button's href matches the current page // Check if this button's href matches the current page
const isActive = $derived($page.url.pathname === href); const isActive = $derived(page.url.pathname === href);
</script> </script>
<!-- border-ecsess-black hover:border-ecsess-150 active:border-ecsess-300 border-b-4 px-6 py-2 <a {href} class="w-auto mx-1">
font-semibold transition-all hover:text-ecsess-100 -->
<a {href} class="w-full md:w-auto">
<button <button
class="hover:text-ecsess-100 w-full rounded-md px-6 py-2 font-semibold transition-all md:mx-0.5 md:w-auto md:rounded-none class="hover:text-ecsess-100 hover:border-ecsess-100 text-ecsess-200 text-shadow-xl active:border-ecsess-500
{isActive active:text-ecsess-500 mx-0.5 w-full rounded-none border-b-4 px-6 py-2
? 'border-ecsess-300 bg-ecsess-800 md:border-b-4 md:bg-transparent' font-semibold transition-all hover:cursor-pointer active:scale-99
: 'border-ecsess-black hover:border-ecsess-150 active:border-ecsess-300 hover:bg-ecsess-800 active:bg-ecsess-700 md:border-b-4 md:hover:bg-transparent md:active:bg-transparent'}" {isActive ? 'border-ecsess-300' : 'border-transparent'}"
> >
{@render children()} {@render children()}
</button> </button>

View File

@@ -4,7 +4,7 @@
let { title = '_Resource Title_', description = "Lorem ipsum", link = 'https://example.com' } = $props(); let { title = '_Resource Title_', description = "Lorem ipsum", link = 'https://example.com' } = $props();
</script> </script>
<div class="bg-ecsess-50 relative h-fit max-w-xl min-w-12 rounded-md px-4 py-2 md:py-0 hover:shadow-md transition-shadow border border-ecsess-150"> <div class="bg-ecsess-50 relative h-fit max-w-xl min-w-12 rounded-md px-4 py-2 md:py-0 hover:shadow-md transition-shadow border border-ecsess-100">
<div class="grid grid-cols-1 md:grid-cols-[7fr_1fr]"> <div class="grid grid-cols-1 md:grid-cols-[7fr_1fr]">
<div class="flex flex-col items-start p-4"> <div class="flex flex-col items-start p-4">
<p class="text-ecsess-900 my-1 pb-1 text-left text-xl font-extrabold"> <p class="text-ecsess-900 my-1 pb-1 text-left text-xl font-extrabold">

View File

@@ -36,7 +36,7 @@
<img <img
src={data.councilPhoto} src={data.councilPhoto}
alt="ECSESS Council" alt="ECSESS Council"
class="ring-ecsess-500 shadow-ecsess-350 hover:ring-ecsess-400 rounded-md shadow-md ring-4 transition-all" class="ring-ecsess-500 shadow-ecsess-400 hover:ring-ecsess-400 rounded-md shadow-md ring-4 transition-all"
/> />
</div> </div>
</div> </div>

View File

@@ -52,7 +52,7 @@
<img <img
src={data.councilGoofyPic.url} src={data.councilGoofyPic.url}
alt="ECSESS Council, but we are goofy" alt="ECSESS Council, but we are goofy"
class="ring-ecsess-350 shadow-ecsess-black hover:ring-ecsess-300 mb-8 rounded-md shadow-2xl ring-4 transition-all lg:w-[90%]" class="ring-ecsess-400 shadow-ecsess-black hover:ring-ecsess-300 mb-8 rounded-md shadow-2xl ring-4 transition-all lg:w-[90%]"
transition:fly transition:fly
/> />
</div> </div>