diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2024-01-23 17:37:59 +0000 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2024-01-23 17:37:59 +0000 |
| commit | 8790ecf93a87fd99ae383a9da666a38dc7f17437 (patch) | |
| tree | e5cf25e08d19086fd799575f4381f3d5fe2f3e40 /src | |
| parent | 15fd00acdd65ab50ac0791cfb877d049902d2b6a (diff) | |
| download | personal-website-8790ecf93a87fd99ae383a9da666a38dc7f17437.tar.gz personal-website-8790ecf93a87fd99ae383a9da666a38dc7f17437.tar.bz2 personal-website-8790ecf93a87fd99ae383a9da666a38dc7f17437.zip | |
Almost finished the contacts page
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/contacts.json | 12 | ||||
| -rw-r--r-- | src/pages/contacts.astro | 18 |
2 files changed, 20 insertions, 10 deletions
diff --git a/src/components/contacts.json b/src/components/contacts.json index 334808e..8b9e562 100644 --- a/src/components/contacts.json +++ b/src/components/contacts.json @@ -19,38 +19,38 @@ }, { "platform": "Discord", - "icon": "", + "icon": "discord", "username": "alee", "url": "https://discord.alee14.me" }, { "platform": "YouTube", - "icon": "", + "icon": "youtube", "username": "AndrewLeeCAN", "url": "https://youtube.alee14.me" }, { "platform": "Mastodon", - "icon": "", + "icon": "mastodon", "username": "@alee@mstdn.ca", "url": "https://mstdn.ca/@alee" }, { "platform": "X", "comment": "yuck.", - "icon": "", + "icon": "x-twitter", "username": "alee", "url": "https://twitter.alee14.me" }, { "platform": "Instagram", - "icon": "", + "icon": "instagram", "username": "alee14498", "url": "https://instagram.alee14.me" }, { "platform": "Reddit", - "icon": "", + "icon": "reddit", "username": "alee1449", "url": "https://reddit.alee14.me" } diff --git a/src/pages/contacts.astro b/src/pages/contacts.astro index e917a4d..6847d19 100644 --- a/src/pages/contacts.astro +++ b/src/pages/contacts.astro @@ -2,17 +2,27 @@ import Page from '../layouts/Page.astro' import { Icon } from 'astro-icon/components'; import contacts from "../components/contacts.json"; - -//let icon = "fa6-brands:" + contacts[0].icon; --- <Page title="Contacts" description="Follow me on other platforms"> {contacts.map((contact)=> { + let icon = "fa6-brands:" + contact.icon; return ( <div class="contacts-card"><a href={contact.url}> - {/*<Icon name={icon} />*/} + <Icon name={icon} /> {contact.platform} ({contact.username}) </a> </div> ) })} -</Page>
\ No newline at end of file +</Page> +<style> + .contacts-card { + display: flex; + align-items: center; + font-size: 1.2em; + padding: 1em; + margin: 1em; + border-radius: 10px; + background-color: #3B513B; + } +</style>
\ No newline at end of file |
