/** * Copyright (c) 2025 adoravel * SPDX-License-Identifier: AGPL-3.0-or-later */ import { css } from "~/lib/css.ts"; import { ease, spacing, theme } from "~/layout.tsx"; import { friends } from "~/content/friends.ts"; const Styled = css(` :scope { display: flex; flex-wrap: wrap; gap: ${spacing[1]}; } a, iframe { display: inline-block; text-align: center; width: 88px; height: 31px; image-rendering: pixelated; background-color: ${theme.lift}; color: ${theme.text}; clip-path: polygon( 0px calc(100% - 2px), 2px calc(100% - 2px), 2px 100%, calc(100% - 2px) 100%, calc(100% - 2px) calc(100% - 2px), 100% calc(100% - 2px), 100% 2px, calc(100% - 2px) 2px, calc(100% - 2px) 0px, 2px 0px, 2px 2px, 0px 2px ); transform: translateY(0px); transition: transform ${ease.spring}, box-shadow ${ease.spring}; &:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2); } `); export default function ButtonWall({ buttons }: { buttons: typeof friends }) { return ( {buttons["88x31"][0].alt} {buttons.iframe.map((script: string, idx: number) => (