Files
portal/components/Travel.tsx
T
Tom Chien (IQ-AS) 5fe2ecd757
CI/CD (dev on branch, prod on tag) / build-and-deploy (push) Successful in 4m7s
upload
2026-11-18 18:41:41 +08:00

39 lines
1.6 KiB
TypeScript

import { ExternalLink, MapPin } from "lucide-react";
import { CredentialRows } from "@/components/CredentialRows";
import { Section } from "@/components/Section";
import { travel } from "@/content/site";
export function Travel() {
return (
<Section
id="travel"
compactTop
eyebrow="Beyond the terminal"
title="Get to know me through my travel album"
lead="Outside of work I like to explore. Pin by pin, the travel map is a visual diary of the places I have been."
>
<div className="flex max-w-2xl flex-col gap-5 rounded-2xl border border-white/10 bg-slate-900/70 p-6 shadow-lg shadow-black/20 sm:p-8">
<div>
<h3 className="flex items-center gap-2 text-xl font-semibold text-white">
<MapPin className="size-5 text-sky-300" aria-hidden="true" />
Travel map
</h3>
<p className="mt-2 text-sm leading-6 text-slate-300">
Sign in with the credentials below to browse the album.
</p>
</div>
<a
href={travel.url}
target="_blank"
rel="noopener noreferrer"
className="flex items-center justify-between gap-2 rounded-lg border border-sky-400/30 bg-sky-400/10 px-4 py-3 font-mono text-sm text-sky-200 transition-colors hover:bg-sky-400/20 focus-visible:ring-2 focus-visible:ring-sky-300 focus-visible:outline-none"
>
<span className="truncate">{travel.host}</span>
<ExternalLink className="size-4 flex-none" aria-hidden="true" />
</a>
<CredentialRows user={travel.user} password={travel.password} />
</div>
</Section>
);
}