Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

2.8 KB
Raw Blame
---
// @ts-ignore
import { Icon } from "astro-icon/components";
import { Marquee } from "@/components/magicui/marquee";
import { getSiteLocale } from "@/i18n";

const locale = getSiteLocale(Astro.url.pathname);
const heading =
  locale === "zh-CN"
    ? "基于现代且高效的技术栈构建"
    : locale === "ja"
      ? "モダンで効率的な技術スタックで構築"
      : locale === "pl"
        ? "Zbudowany na nowoczesnym, wydajnym stosie technologicznym"
        : "Built with a modern, efficient technology stack";

const technologies = [
  { name: "React", icon: "simple-icons:react", hoverClass: "group-hover:text-indigo-600" },
  { name: "Cloudflare", icon: "simple-icons:cloudflare", hoverClass: "group-hover:text-orange-500" },
  { name: "Docker", icon: "simple-icons:docker", hoverClass: "group-hover:text-sky-500" },
  { name: "Rust", icon: "simple-icons:rust", hoverClass: "group-hover:text-amber-700" },
  { name: "Electron", icon: "simple-icons:electron", hoverClass: "group-hover:text-cyan-500" },
  { name: "Swift", icon: "simple-icons:swift", hoverClass: "group-hover:text-orange-600" },
  { name: "Expo", icon: "simple-icons:expo", hoverClass: "group-hover:text-slate-900 dark:group-hover:text-white" },
  { name: "Bun", icon: "simple-icons:bun", hoverClass: "group-hover:text-yellow-600" },
  { name: "Tailwind CSS", icon: "simple-icons:tailwindcss", hoverClass: "group-hover:text-teal-500" },
  { name: "SQLite", icon: "simple-icons:sqlite", hoverClass: "group-hover:text-blue-500" },
  { name: "Hono", icon: "simple-icons:hono", hoverClass: "group-hover:text-red-500" },
] as const;
---

<div class="mt-24">
  <h2 class="mb-10 text-center text-slate-500">{heading}</h2>
  <div class="relative flex w-full flex-col items-center justify-center overflow-hidden">
    <Marquee pauseOnHover className="[--duration:20s]" client:visible>
      {technologies.map((technology) => (
        <div class="group mx-4 flex min-w-24 flex-col items-center gap-2 md:mx-6">
          <Icon
            class:list={[
              "size-8 text-slate-400 transition-colors md:size-12",
              technology.hoverClass,
            ]}
            name={technology.icon}
            title={technology.name}
          />
          <span class="whitespace-nowrap text-xs font-medium text-slate-500 transition-colors group-hover:text-slate-700 md:text-sm dark:group-hover:text-slate-300">
            {technology.name}
          </span>
        </div>
      ))}
    </Marquee>
    <!-- Left/Right Mask Gradients for smooth fade out -->
    <div class="pointer-events-none absolute inset-y-0 left-0 w-1/3 bg-gradient-to-r from-white dark:from-background"></div>
    <div class="pointer-events-none absolute inset-y-0 right-0 w-1/3 bg-gradient-to-l from-white dark:from-background"></div>
  </div>
</div>