Skip to content

Commit

Permalink
remove dummy page & fix type lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDTR committed Oct 10, 2024
1 parent ced7e4a commit 71954dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
7 changes: 4 additions & 3 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ const { imgLink, title, subtitle } = Astro.props;
const tooltip = document.getElementById("tooltip");

document.addEventListener("mouseover", function (event) {
const target = event.target;
const target = event.target as HTMLElement;
if (target.tagName.toLowerCase() === "a") {
const href = target.getAttribute("href");

const link = document.createElement("a");
link.href = href;
link.href = href || "";

if (link.hostname && link.hostname !== location.hostname) {
const displayHostname = link.hostname.replace(/^www\./, "");
Expand All @@ -74,7 +74,8 @@ const { imgLink, title, subtitle } = Astro.props;
});

document.addEventListener("mouseout", function (event) {
if (event.target.tagName.toLowerCase() === "a") {
const target = event.target as HTMLElement;
if (target.tagName.toLowerCase() === "a") {
tooltip.style.display = "none";
}
});
Expand Down
21 changes: 0 additions & 21 deletions src/pages/resume.md

This file was deleted.

0 comments on commit 71954dc

Please sign in to comment.