← Public packages
@kentcdodds/photo-portfolio
A fast, photo-first portfolio site you update by chatting with your agent: galleries, about, contact, and one-step rollback.
Files
/** @jsxRuntime automatic */
/** @jsxImportSource remix/component */
import type { SocialPlatform } from '../../src/domain/types.ts'
export const socialLabels: Record<SocialPlatform, string> = {
instagram: 'Instagram',
facebook: 'Facebook',
tiktok: 'TikTok',
youtube: 'YouTube',
vimeo: 'Vimeo',
x: 'X',
threads: 'Threads',
pinterest: 'Pinterest',
linkedin: 'LinkedIn',
behance: 'Behance',
website: 'Website',
}
/** Simple stroke icons, inlined so they never shift or flash. */
const paths = {
mail: 'M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm18 2-10 7L2 6',
phone:
'M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2Z',
pin: 'M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0Zm-8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z',
calendar:
'M8 2v4m8-4v4M3 10h18M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z',
arrow: 'M5 12h14m-6-6 6 6-6 6',
back: 'M19 12H5m6 6-6-6 6-6',
} as const
export function icon(name: keyof typeof paths) {
return (
<svg
class="icon"
viewBox="0 0 24 24"
width="18"
height="18"
aria-hidden="true"
focusable="false"
>
<path
d={paths[name]}
fill="none"
stroke="currentColor"
stroke-width="1.75"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
)
}