Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F134
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 7b582cc..e10e541 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,69 +1,69 @@
-import { GitlabLogo, LinkedinLogo, MastodonLogo } from "@phosphor-icons/react";
+import { GitForkIcon, LinkedinLogo, MastodonLogo } from "@phosphor-icons/react";
import type { Article } from "#/types.ts";
import { asset } from "#/assets.ts";
import { intersperse } from "#/utils.ts";
import Document from "#src/layouts/document.tsx";
type Props = {
articles: Article[];
};
const reindeer = await asset("#src/images/reindev-full.avif");
const descriptionItems = ["Software developer", "Rust, Ruby, TypeScript, Linux", "Strasbourg, France"];
const bullet = " \u2022 ";
function Link({ title, href }: { title: string; href: string }) {
return <a href={href} target="_blank" rel="noopener">{title}</a>;
}
export default function Index({ articles }: Props) {
return (
<Document class="home" path="/" meta={{ description: descriptionItems.join(bullet) }}>
<header>
<div>
<h1>Adædra</h1>
{intersperse(descriptionItems, <br />)}
</div>
<img src={reindeer} alt="Reindeer and cat mascots" title="Hi." />
</header>
<h2>Latest articles</h2>
<div class="articleList">
{articles.map((article: Article) => (
<div>
<span>
{article.data.date ? article.data.date.toISODate() : "0000-00-00"}
</span>
<a href={`/${article.data.slug}/`}>{article.data.title}</a>
</div>
))}
</div>
<h2>Find me elsewhere</h2>
<div class="socials">
- <a href="https://gitlab.drgn.at/adaedra" target="_blank" rel="noopener">
- <GitlabLogo />GitLab
+ <a href="https://phorge.adaedra.eu" target="_blank" rel="noopener">
+ <GitForkIcon />Phorge
</a>
<br />
<a href="https://nerdculture.de/@adaedra" target="_blank" rel="noopener">
<MastodonLogo />Mastodon
</a>
<br />
<a href="https://www.linkedin.com/in/thibault-hamel/" target="_blank" rel="noopener">
<LinkedinLogo />LinkedIn
</a>
</div>
<footer>
<hr />
Mascot drawn by <Link href="https://linktr.ee/cutepencilcase" title="CutePencilCase" />
<br />
Font <Link href="https://github.com/be5invis/Iosevka" title="Iosevka" />
{bullet}
Color theme <Link href="https://github.com/morhetz/gruvbox-contrib" title="Gruvbox" />
{bullet}
Icons <Link href="https://phosphoricons.com/" title="Phosphor" />
<br />
<Link href="https://gitlab.drgn.at/adaedra/blog" title="Source code" />
</footer>
</Document>
);
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Oct 25, 13:13 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
104
Default Alt Text
(2 KB)
Attached To
Mode
rB blog
Attached
Detach File
Event Timeline