Something went wrong. Try again.
webview for social and dev helpers social-toolkit.frytg.workers.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061<script setup lang="ts">import type { FleetTool } from '../tools/registry.ts'
defineProps<{ /** Tools to list, each with the number key that opens it (if it has one). */ entries: { tool: FleetTool; shortcut: string | undefined }[]}>()</script>
<template> <div class="h-full overflow-y-auto overscroll-contain bg-dark-greeny"> <div class="mx-auto flex max-w-5xl flex-col gap-6 px-3 pt-8 pb-[max(2.5rem,var(--safe-bottom))] sm:gap-8 sm:px-6 sm:pt-12" > <header class="max-w-2xl"> <p class="ui-label">{{ entries.length }} tools</p> <h1 class="mt-2 text-[28px] leading-tight font-semibold tracking-tight text-balance text-off-white sm:text-[36px]" > Small tools for images, tracks and mail reports </h1> <p class="mt-3 text-[13px] leading-relaxed text-[var(--muted)]"> Everything runs in this browser. Files you drop are read on this device and are not uploaded. Open a tool below, or press its number key. </p> </header>
<!-- Outlines are shadows in a 1px-gap grid, so neighbouring tiles share one hairline and an empty cell stays empty --> <ul class="grid gap-px p-px sm:grid-cols-2 lg:grid-cols-3"> <li v-for="{ tool, shortcut } in entries" :key="tool.id" class="flex"> <a :href="`#${tool.id}`" class="group flex min-h-44 w-full flex-col bg-[var(--surface-1)] p-4 text-off-white shadow-[0_0_0_1px_var(--line)] transition-colors hover:bg-yellow hover:text-dark-greeny focus-visible:bg-yellow focus-visible:text-dark-greeny focus-visible:outline-none" > <span class="font-mono text-[11px] text-[var(--faint)] tabular-nums group-hover:text-dark-greeny/60 group-focus-visible:text-dark-greeny/60" aria-hidden="true" > {{ shortcut ?? '·' }} </span> <span class="mt-3 text-[18px] leading-snug font-semibold tracking-tight">{{ tool.label }}</span> <span class="mt-1.5 text-[13px] leading-relaxed text-[var(--muted)] group-hover:text-dark-greeny/80 group-focus-visible:text-dark-greeny/80" > {{ tool.summary }} </span> <span class="mt-auto pt-5"> <span class="inline-flex items-center gap-1.5 border border-[var(--line-strong)] px-2.5 py-1 text-[12px] font-medium group-hover:border-dark-greeny group-hover:bg-dark-greeny group-hover:text-yellow group-focus-visible:border-dark-greeny group-focus-visible:bg-dark-greeny group-focus-visible:text-yellow" > Open {{ tool.label }} <span aria-hidden="true">→</span> </span> </span> </a> </li> </ul> </div> </div></template>