Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
chore: remove artz font
Browse files Browse the repository at this point in the history
  • Loading branch information
taciturnaxolotl committed Apr 8, 2024
1 parent 045eba7 commit f98385b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
Binary file removed public/fonts/HWTArtz.otf
Binary file not shown.
29 changes: 8 additions & 21 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,9 @@ const year = new Date().getFullYear();
}
</style>

<style>
@font-face {
font-family: "Artz";
src: url(/fonts/HWTArtz.otf) format("opentype");
}

.artz {
font-family: "Artz", sans-serif;
letter-spacing: 0.022em;
font-size: 6rem;
}
</style>

<script>
const cursorGradient = document.querySelector(
".cursor-gradient",
".cursor-gradient"
) as HTMLElement;

let autoGradientPositions: {
Expand Down Expand Up @@ -212,7 +199,7 @@ const year = new Date().getFullYear();
: Date.now() -
(1 - Number(cursorGradient.style.opacity) * 2) * fadeInDuration; // Start fade-in timer
console.log(
(1 - Number(cursorGradient.style.opacity) * 2) * fadeInDuration,
(1 - Number(cursorGradient.style.opacity) * 2) * fadeInDuration
);
fadeInFlag = true; // Set fade-in flag
}
Expand Down Expand Up @@ -274,8 +261,8 @@ const year = new Date().getFullYear();
Math.min(
autoGradientPositions[gradient.id.replace("cursor-gradient-", "")]
.velocity.x,
window.innerWidth,
),
window.innerWidth
)
);
autoGradientPositions[
gradient.id.replace("cursor-gradient-", "")
Expand All @@ -284,19 +271,19 @@ const year = new Date().getFullYear();
Math.min(
autoGradientPositions[gradient.id.replace("cursor-gradient-", "")]
.velocity.y,
window.innerHeight,
),
window.innerHeight
)
);

gradient.style.setProperty(
"--x",
autoGradientPositions[gradient.id.replace("cursor-gradient-", "")]
.velocity.x + "px",
.velocity.x + "px"
);
gradient.style.setProperty(
"--y",
autoGradientPositions[gradient.id.replace("cursor-gradient-", "")]
.velocity.y + "px",
.velocity.y + "px"
);

requestAnimationFrame(() => animateAuto(gradient));
Expand Down

0 comments on commit f98385b

Please sign in to comment.