aboutsummaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-01-23 17:37:59 +0000
committerAndrew Lee <alee14498@protonmail.com>2024-01-23 17:37:59 +0000
commit8790ecf93a87fd99ae383a9da666a38dc7f17437 (patch)
treee5cf25e08d19086fd799575f4381f3d5fe2f3e40 /src/pages
parent15fd00acdd65ab50ac0791cfb877d049902d2b6a (diff)
downloadpersonal-website-8790ecf93a87fd99ae383a9da666a38dc7f17437.tar.gz
personal-website-8790ecf93a87fd99ae383a9da666a38dc7f17437.tar.bz2
personal-website-8790ecf93a87fd99ae383a9da666a38dc7f17437.zip
Almost finished the contacts page
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/contacts.astro18
1 files changed, 14 insertions, 4 deletions
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