remove dead code and unify patterns

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-04-29 23:03:10 +02:00
parent 35ac328d5e
commit a74f6b91d4
12 changed files with 16 additions and 312 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
---
import { ArrowUp } from "lucide-astro";
import { ArrowUp } from "@lucide/astro";
---
<button
+1 -9
View File
@@ -2,21 +2,13 @@
import type { CollectionEntry } from "astro:content";
import TagBadge from "./TagBadge.astro";
import { Image } from "astro:assets";
import { formatDate } from "../utils/notes";
interface Props {
post: CollectionEntry<"blog">;
}
const { post } = Astro.props;
function formatDate(date: Date) {
const options: Intl.DateTimeFormatOptions = {
month: "long",
day: "numeric",
year: "numeric",
};
return date.toLocaleDateString("en-US", options);
}
---
<article
+4 -15
View File
@@ -1,6 +1,7 @@
---
import { ArrowRight, FolderCode, Key, Rss } from "@lucide/astro";
import { Image } from "astro:assets";
import type { SocialLinks } from "../config";
interface Props {
name: string;
@@ -8,19 +9,7 @@ interface Props {
description: string;
avatar: any;
location?: string;
socialLinks?: {
github?: string;
gitlab?: string;
gitea?: string;
linkedin?: string;
twitter?: string;
bluesky?: string;
instagram?: string;
youTube?: string;
medium?: string;
kofi?: string;
codetips?: string;
};
socialLinks?: SocialLinks;
gpgKey?: string;
rssFeed?: string;
}
@@ -205,10 +194,10 @@ const {
</a>
</div>
)}
{socialLinks.youTube && (
{socialLinks.youtube && (
<div class="tooltip" data-tip="Youtube">
<a
href={socialLinks.youTube}
href={socialLinks.youtube}
class="btn btn-circle btn-ghost"
aria-label="YouTube"
target="_blank"
-2
View File
@@ -110,8 +110,6 @@ function isActive(href: string) {
if (!btn || !menu) return;
const lines = btn.querySelectorAll<HTMLElement>(".hamburger-line");
let open = false;
open = false;
menu.style.display = "none";
lines[0].style.transform = "";
lines[1].style.opacity = "";