added socials

This commit is contained in:
nin0dev 2024-07-29 16:10:40 -04:00
parent af797ba515
commit 161e28d5f3
8 changed files with 72 additions and 0 deletions

4
info/contacts/discord.md Normal file
View file

@ -0,0 +1,4 @@
---
platform: "Discord"
name: "nin0.dev"
---

6
info/contacts/email.md Normal file
View file

@ -0,0 +1,6 @@
---
platform: "Email"
name: "support@nin0.dev"
url: "mailto:support@nin0.dev"
note: "Replies may be slow"
---

View file

@ -0,0 +1,6 @@
---
platform: "Telegram"
url: "https://nin0dev.t.me"
name: "@nin0dev"
note: "Use for quick replies"
---

View file

@ -0,0 +1,8 @@
---
import Social from "./Social.astro"
const contacts = await Astro.glob("../../info/contacts/*.md")
---
<ul>
{contacts.map(contact => <Social platform={contact.frontmatter.platform} url={contact.frontmatter.url} name={contact.frontmatter.name} note={contact.frontmatter.note}/>)}
</ul>

View file

@ -0,0 +1,16 @@
---
const {name} = Astro.props
---
<style>
fieldset {
margin-top: 10px;
margin-bottom: 0px;
padding: 0px 15px;
}
</style>
<fieldset>
<legend>{name}</legend>
<slot />
</fieldset>

View file

@ -0,0 +1,16 @@
---
const {platform, name, url, note} = Astro.props;
---
<style>
bl {
font-weight: 500;
}
it {
font-style: italic;
}
</style>
<li>
<bl>{platform}</bl>: {url ? <a href={url}>{name}</a> : name}{note && <it> ({note})</it>}
</li>

View file

@ -6,6 +6,9 @@ const {title, showClose, maxWidth} = Astro.props
#window {
max-width: var(--maxWidth);
}
.window-body {
padding: 20px !important;
}
</style>
<div class="background" id="window">

View file

@ -1,6 +1,9 @@
---
import Contacts from "../components/Contacts.astro";
import GroupBox from "../components/GroupBox.astro";
import Me from "../components/Me.astro";
import Presence from "../components/Presence.astro";
import Social from "../components/Social.astro";
import Window from "../components/Window.astro";
import BaseLayout from "../layouts/BaseLayout.astro";
---
@ -9,5 +12,15 @@ import BaseLayout from "../layouts/BaseLayout.astro";
<Window title="Home" maxWidth="600px">
<Me />
<Presence />
<GroupBox name="About me">
<p>
I'm a Canadian self-taught software developer that makes things some people find useful in Python, HTML, JavaScript, and Kotlin.
<br/>
I occasionally code with Java or C#, and am currently learning Rust.
</p>
</GroupBox>
<GroupBox name="Reach out">
<Contacts />
</GroupBox>
</Window>
</BaseLayout>