--- // Port of preview/pages/social-icons.html (layout: default) // Note: the Liquid front matter `plugins: ['social']` is inert for the output — // the `.social` styles ship in tabler-socials.css which is loaded globally on // every page; no extra page lib is emitted. So no pageLibs is passed. import DefaultLayout from '@shared/layouts/DefaultLayout.astro'; import Trending from '@shared/components/ui/Trending.astro'; import socialTiles from '@data/social-tiles.json'; import socials from '@data/socials.json'; interface SocialTile { icon: string; title: string; description: string; trending: number; } interface Social { name: string; file: string; } const tiles = socialTiles as SocialTile[]; const socialList = socials as Social[]; const fillers = Array.from({ length: 21 }); ---
{ tiles.map((tile) => (
{tile.title}
{tile.description}
)) }
Sign in with social media
{ socialList.map((social) => ( )) }
List of all social media icons
{ socialList.map((social) => ( )) } {fillers.map(() =>
)}