Skip to content

Commit

Permalink
feat: personal website init
Browse files Browse the repository at this point in the history
  • Loading branch information
Eveeifyeve committed Nov 9, 2024
1 parent 24e9b57 commit 5268b53
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/content/authors/eveeifyeve.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"role": "CEO",
"img": "https://github.com/eveeifyeve.png",
"socials": {
"personalWebsite": "https://eveeifyeve.pages.dev",
"github": "https://github.com/eveeifyeve",
"discordServer": "https://teaclient.net/discord"
}
Expand Down
1 change: 1 addition & 0 deletions src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const authors = defineCollection({
img: z.string(),
socials: z
.object({
personalWebsite: z.string().optional(),
github: z.string().optional(),
discordServer: z.string().optional(),
})
Expand Down
16 changes: 14 additions & 2 deletions src/layouts/newspost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,22 @@ const Sociallogosizes = 24;
{authorData.name}
</div>
<div class="text-neutral-400 mt-1">{authorData.role} @ TeaClient</div>
</div>
</div>
{
authorData.socials && (
<div class="flex gap-x-2 mr-4 mt-10">
<div class="flex gap-x-2 mr-4 mt-10">
{authorData.socials.personalWebsite && (
<a
href={authorData.socials.personalWebsite}
class="text-white hover:text-stone-200"
>
<Icon
name="mdi:internet"
width={Sociallogosizes}
height={Sociallogosizes}
/>
</a>
)}
{authorData.socials.github && (
<a
href={authorData.socials.github}
Expand Down

0 comments on commit 5268b53

Please sign in to comment.