feat: add page for small building blocks

This commit is contained in:
Ayo 2023-09-29 11:40:07 +02:00
parent 32666b58c9
commit 5bc9c7f511
7 changed files with 52 additions and 12 deletions

View file

@ -16,8 +16,8 @@ const { href, title, rel, body, newTab = false } = Astro.props;
{title} {title}
{ {
newTab newTab
? (<span>&nearr;</span>) ? (<span>&nbsp;&nearr;</span>)
: (<span>&rarr; </span>) : (<span>&nbsp;&rarr;</span>)
} }
</h2> </h2>
<p> <p>

View file

@ -1,5 +1,5 @@
<footer> <footer>
<ul role="list" style="list-style:none"> <ul style="list-style:none">
<li>2022 &#169; <strong>Ayo Ayco</strong>. All Rights Reserved</li> <li>2022 &#169; <strong>Ayo Ayco</strong>. All Rights Reserved</li>
<li>This website does not track users.</li> <li>This website does not track users.</li>
<li><a href="https://git.sr.ht/~ayoayco/ayco.io-astro/tree">See the source code</a></li> <li><a href="https://git.sr.ht/~ayoayco/ayco.io-astro/tree">See the source code</a></li>

View file

@ -11,7 +11,8 @@ let { display_name, avatar, note } = await response.json();
const [first_name, last_name] = display_name.split(" "); const [first_name, last_name] = display_name.split(" ");
note = note note = note
.replace('<span class="">ayco.io/gh/', '<span class="">') .replace('<span class="">ayco.io/gh/', '<span class="">')
.replace('<span class="">ayco.io/sh/', '<span class="">'); .replace('<a href="https://ayco.io/stuff" target="_blank" rel="nofollow', '<a href="/stuff"')
.replace('<span class="">ayco.io/stuff', '<span class="">stuff')
--- ---
<Layout> <Layout>
@ -39,7 +40,7 @@ note = note
</section> </section>
<main> <main>
<section class="cards-section"> <section class="cards-section">
<ul role="list" class="cards-section__grid"> <ul class="cards-section__grid">
<Card <Card
href="/showcase" href="/showcase"
title="Fun Side Projects" title="Fun Side Projects"

View file

@ -11,7 +11,7 @@ import Card from "../components/Card.astro";
<main> <main>
<h1>Fun <span class="text-gradient">Side Projects</span></h1> <h1>Fun <span class="text-gradient">Side Projects</span></h1>
<p>See more of my previous projects at <a href="https://ayos.blog/projects">my blog</a>.</p> <p>See more of my previous projects at <a href="https://ayos.blog/projects">my blog</a>.</p>
<ul role="list"> <ul>
<Card <Card
newTab newTab
href="https://cozy-reader.netlify.app" href="https://cozy-reader.netlify.app"
@ -22,22 +22,22 @@ import Card from "../components/Card.astro";
newTab newTab
href="https://kaboom.ayco.io" href="https://kaboom.ayco.io"
title="Kaboom!" title="Kaboom!"
body="A simple physics simulation with Matter.js 👨🏻‍🔬" body="Simple physics simulation with Matter.js 👨🏻‍🔬"
/> />
<Card <Card
newTab newTab
href="https://mnswpr.com" href="https://mnswpr.com"
title="Minesweeper" title="Minesweeper"
body="Recreated the classic game that Microsoft discontinued 💣" body="Recreated the classic game for the web 💣"
/> />
<Card <Card
href="/showcase/astro-reactive-form" href="/showcase/astro-reactive-form"
title="Astro Reactive Form" title="Reactive Form"
body="The reactive form component for Astro 🔥" body="The reactive form component for Astro 🔥"
/> />
<Card <Card
href="/showcase/astro-github-stats" href="/showcase/astro-github-stats"
title="Astro GitHub Stats" title="GitHub Stats"
body="Embed GitHub stats on your Astro page ✨" body="Embed GitHub stats on your Astro page ✨"
/> />
</ul> </ul>

View file

@ -2,7 +2,7 @@
import Layout from "../../layouts/Layout.astro"; import Layout from "../../layouts/Layout.astro";
import Footer from "../../components/Footer.astro"; import Footer from "../../components/Footer.astro";
import Form, { ControlConfig, FormGroup } from "@astro-reactive/form"; import Form, { type ControlConfig, FormGroup } from "@astro-reactive/form";
import { Validators } from "@astro-reactive/validator"; import { Validators } from "@astro-reactive/validator";
const simpleForm = new FormGroup([ const simpleForm = new FormGroup([

View file

@ -10,7 +10,7 @@ import Footer from "../components/Footer.astro";
> >
<main> <main>
<h1>Social <span class="text-gradient">Links</span></h1> <h1>Social <span class="text-gradient">Links</span></h1>
<ul role="list" class="link-card-grid"> <ul class="link-card-grid">
<Card <Card
newTab={true} newTab={true}
rel="me" rel="me"

39
src/pages/stuff.astro Normal file
View file

@ -0,0 +1,39 @@
---
import Layout from "../layouts/Layout.astro";
import Footer from "../components/Footer.astro";
import Card from "../components/Card.astro";
---
<Layout
title="Stuff: Smaller Building Blocks"
description="See demos of side projects Ayo Ayco created"
>
<main>
<h1 class="text-gradient">Stuff</h1>
<p>Because software is not just a huge pile of code, but a combination of reusable stuff...</p>
<ul>
<Card
newTab
href="https://ayco.io/n/web-component-base"
title="Web Component Base"
body="This provides a minimal vanilla JS base class that aims to reduce the complexity of creating reactive custom elements."
/>
<Card
newTab
href="https://ayco.io/n/@ayco/astro-resume"
title="Astro Resume"
body="This facilitates the creation and usage of global, immutable data for Astro apps"
/>
</ul>
<Footer />
</main>
</Layout>
<style>
ul {
list-style: none;
display: grid;
gap: 1rem;
padding: 0;
}
</style>