Skip to content

Commit

Permalink
fix (#44)
Browse files Browse the repository at this point in the history
* fix

* removed unused imports
  • Loading branch information
nahiyankhan authored Oct 9, 2024
1 parent b0d7b86 commit 7b9afe6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
5 changes: 1 addition & 4 deletions src/components/About.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
import { Icon } from "astro-icon/components";
import AboutSneak from "@/assets/about.gif";
import Section from "./Section.astro";
import Education from "@/assets/education.svg?raw";
import Mantras from "@/assets/mantras.svg?raw";
import JHULogo from "@/assets/jhu.svg?raw";
import MacalesterLogo from "@/assets/macalester.svg?raw";
import Subtitle from "./Subtitle.astro";
Expand All @@ -20,7 +17,7 @@ import Subtitle from "./Subtitle.astro";
step to being sorta good at something.
</p>
</div>

<Subtitle title="education" />

<div class="mb-2 sm:mb-8 sm:w-1/2">
Expand Down
6 changes: 2 additions & 4 deletions src/components/Experiences.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ import PearsonLogo from "@/assets/pearson.svg?raw";
import MacalesterLogo from "@/assets/macalester.svg?raw";
import DesignXLogoWhite from "@/assets/designx_white.svg?raw";
import DesignXLogoDark from "@/assets/designx_dark.svg?raw";
import Current from "@/assets/current.svg?raw";
import Past from "@/assets/past.svg?raw";
import Community from "@/assets/community.svg?raw";
import Section from "./Section.astro";
import { Icon } from "astro-icon/components";
import ExperienceSneak from "@/assets/experience.gif";
import Subtitle from "./Subtitle.astro";
import BoxLines from "./BoxLines.astro";
---

<Section title="experiences">
<div class="mb-12 mt-2 sm:mb-24 sm:mt-4 sm:w-3/5">
Expand Down Expand Up @@ -99,7 +97,7 @@ import BoxLines from "./BoxLines.astro";
mediums.
</p>
</div>

<Subtitle title="community" />

<div class="mb-12 sm:mb-20 sm:w-3/5">
Expand Down
6 changes: 3 additions & 3 deletions src/components/layout/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import NahiyanKhan from "@/assets/nahiyankhan.svg?raw";
---

<header
class="fixed z-10 h-12 w-full border-b border-transparent bg-bgColor duration-500 [transition:border-color_.3s_.7s,all_.5s_cubic-bezier(0.55,0,1,0.45)] sm:h-24 [&::after]:absolute [&::after]:bottom-[-1px] [&::after]:left-[100%] [&::after]:h-[1px] [&::after]:w-full [&::after]:bg-divider [&::after]:content-['']"
class="fixed z-10 h-12 w-full border-b border-transparent bg-bgColor duration-500 [transition:border-color_.3s_1s,all_.5s_cubic-bezier(0.55,0,1,0.45)] sm:h-24 [&::after]:absolute [&::after]:bottom-[-1px] [&::after]:left-[100%] [&::after]:h-[1px] [&::after]:w-full [&::after]:bg-divider [&::after]:content-['']"
x-ref="header"
x-data="{ endScroll: false, headerHeight: $refs.header.getBoundingClientRect().height, headerNKHeight: $refs.headerNK.getBoundingClientRect().height, scroll: this.headerHeight }"
x-init="$store.header.headerHeight = $refs.header.getBoundingClientRect().height"
Expand All @@ -18,13 +18,13 @@ import NahiyanKhan from "@/assets/nahiyankhan.svg?raw";
:style="{ borderColor: `hsl(var(--border-divider))` }"
>
<div
class="h-full bg-white pr-2 pt-2"
class="h-full"
:class="{ 'translate-y-[100%]': !endScroll, 'translate-y-0': endScroll }"
:style="!endScroll && { transform: `translateY(${scroll}px)` }"
x-cloak
>
<div
class="redact redact-show relative text-textProminent [&>svg]:h-5 sm:[&>svg]:h-6"
class="text-textProminent [&>svg]:h-5 sm:[&>svg]:h-6"
x-ref="headerNK"
x-resize="headerNKHeight = $height"
>
Expand Down

0 comments on commit 7b9afe6

Please sign in to comment.