Skip to content

Commit 86024b6

Browse files
fixed navbar and shadow
1 parent 7155d01 commit 86024b6

5 files changed

Lines changed: 17 additions & 16 deletions

File tree

src/components/global/Card.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const {
6363
.card {
6464
/* background: #1c1c1c; */
6565
/* background: linear-gradient(135deg, rgb(38, 38, 38)#101010 20%, 100%); */
66-
box-shadow: 0 20px 25px 0px var(--shadowColor);
66+
box-shadow: 0 10px 25px 10px var(--shadowColor);
6767
padding: 0.5rem;
6868
}
6969
</style>

src/components/global/NavBar.astro

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,4 @@ const navLinks = [
2525
];
2626
---
2727

28-
<HoverNavigation
29-
items={navLinks}
30-
client:load
31-
transition:name="hover-navigation"
32-
/>
28+
<HoverNavigation items={navLinks} client:load />

src/components/home/Intro.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Image } from "astro:assets";
88

99
<div class="w-[90%] md:w-[600px] lg:w-1/2">
1010
<Card
11-
shadowColor="rgb(4, 57, 57)"
11+
shadowColor="rgba(4, 57, 57, 0.5)"
1212
className="animate-fadeIn bg-gradient-to-br from-[#101010] to-[#202020]"
1313
>
1414
<div id="intro" class="flex h-fit flex-col text-white">

src/components/socials/StreamSchedule.svelte

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22
import moment from "moment-timezone";
33
import { onMount } from "svelte";
44
5-
const myLocation = "Australia/Melbourne";
5+
const myLocation = "Asia/Singapore";
66
77
type StreamScheduleDay = {
88
start: moment.Moment;
99
end: moment.Moment;
1010
};
1111
12-
const myStreamSchedule: null | StreamScheduleDay[] = [];
12+
const myStreamSchedule: null | StreamScheduleDay[] = [
13+
// {
14+
// start: getUpcomingTimeDevTZ(4, "11:00"),
15+
// end: getUpcomingTimeDevTZ(4, "16:00"),
16+
// },
17+
];
1318
1419
/**
1520
* Calculates the upcoming specified time for a given day of the week in my timezone.

src/components/ui/NavigationBar.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ export const HoverNavigation = ({
5757
observers.push(observer);
5858
});
5959

60+
// set hover index on projects when on "/projects"
61+
const splittedURL = window.location.href.split("/");
62+
63+
if (splittedURL[splittedURL.length - 1]) {
64+
setActiveIndex(2);
65+
}
66+
6067
return () => {
6168
observers.forEach((observer) => observer.disconnect());
6269
};
@@ -76,13 +83,6 @@ export const HoverNavigation = ({
7683
}
7784
};
7885

79-
// set hover index on projects when on "/projects"
80-
const splittedURL = window.location.href.split("/");
81-
82-
if (splittedURL[splittedURL.length - 1]) {
83-
setHoveredIndex(2);
84-
}
85-
8686
document.addEventListener("mousedown", handleClickOutside);
8787
return () => {
8888
document.removeEventListener("mousedown", handleClickOutside);

0 commit comments

Comments
 (0)