Astro Sphere comes preconfigured with social media links for Email, Github, Linked In and Twitter (X), but it’s very easy to add more.
Edit consts.ts
Field | Type | Required | Description |
---|---|---|---|
NAME | string | yes | Accessible name |
ICON | string | yes | Refers to the symbol id in public/social.svg |
TEXT | string | yes | Shorthand profile name |
HREF | string | yes | The link to the social media profile |
Edit /public/social.svg
Simply add your own symbols to the svg sprite.
It is recommended that all styles be removed from new symbols added, or they may not show up correctly or conflict with Tailwind’s classes.
The id should match the icon field as specified in your consts.ts
file.