diff --git a/static/88x31/paige.gif b/assets/88x31/paige.gif similarity index 100% rename from static/88x31/paige.gif rename to assets/88x31/paige.gif diff --git a/static/bnuy.webp b/assets/bnuy.webp similarity index 100% rename from static/bnuy.webp rename to assets/bnuy.webp diff --git a/static/button.html b/assets/button.html similarity index 100% rename from static/button.html rename to assets/button.html diff --git a/assets/ui/arrow.svg b/assets/ui/arrow.svg new file mode 100644 index 0000000..e1a7eb7 --- /dev/null +++ b/assets/ui/arrow.svg @@ -0,0 +1,7 @@ + diff --git a/extra/arrow.svg b/extra/arrow.svg deleted file mode 100644 index 9fefc00..0000000 --- a/extra/arrow.svg +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/src/components/Fm.tsx b/src/components/Fm.tsx deleted file mode 100644 index 65cb5fe..0000000 --- a/src/components/Fm.tsx +++ /dev/null @@ -1,153 +0,0 @@ -/** - * Copyright (c) 2025 adoravel - * SPDX-License-Identifier: AGPL-3.0-or-later - */ - -import { boundaries, elevation, fontSize, radius, spacing, theme } from "~/layout.tsx"; -import { css, Import } from "../mech/css.ts"; -import { FM_USER, tracks } from "../mech/fm.ts"; - -const fm = css(` - :scope { - margin-top: 0.5rem !important; - } - - .fm-more:hover { - opacity: 1; - } - - .fm-more::before { - content: "→"; - position: absolute; - color: transparent; - font-size: 15rem; - -webkit-text-stroke: 2px ${theme.surfaceBorder}; - z-index: ${elevation.below}; - } - - .fm-more { - position: relative; - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; - overflow: hidden; - width: 100%; - height: 100%; - opacity: 75%; - - background: ${theme.base}; - border: 1px solid ${theme.baseBorder}; - border-radius: ${radius.art}; - font-size: ${fontSize.sm}; - color: ${theme.text}; - padding: ${spacing[3]}; - z-index: ${elevation.base}; - - @media (max-width: 930px) { - display: none; - } - } - - :scope { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(120px, 160px)); - gap: ${spacing[6]}; - margin-top: ${spacing[2]}; - padding: 0; - margin: 0; - list-style: none; - } - - li > a { - display: flex; - flex-direction: column; - align-items: center; - text-align: center; - gap: ${spacing[3]}; - max-width: ${boundaries.avatarSize}; - } - - li > a > .cover { - width: ${boundaries.avatarSize}; - height: ${boundaries.avatarSize}; - border-radius: ${radius.art}; - background: ${theme.lift}; - object-fit: cover; - } - - li > a > .meta { - display: flex; - flex-direction: column; - font-size: ${fontSize.md}; - color: ${theme.subtext}; - } - - li > a > .meta > .loved { - color: ${theme.accent}; - } - - li > a > .meta strong { - font-weight: 600; - font-size: ${fontSize.base}; - color: ${theme.text}; - } - - li > a > .meta strong, - li > a > .meta span { - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: 2; - line-clamp: 2; - overflow: hidden; - word-wrap: anywhere; - text-overflow: ellipsis; - max-width: 100%; - } -`); - -export function Fm() { - if (!tracks) return; - - const content = tracks().slice(0, 4); - - return ( -
({ items, selected }: Props
) {
- return (
- <>
-
{project.description}
-{project.description}
+({ items, selected }: Props
) {
+ if (!items || items.length === 0) return null;
+
+ return (
+
+ {items.map(([name, href]) => {
+ const isActive = name === selected;
+
+ return (
+
+