update linkedin, github, resume, projects
This commit is contained in:
@@ -13,6 +13,8 @@ import { site } from '../data/site';
|
||||
import { domains } from '../data/skills';
|
||||
|
||||
const projects = (await getCollection('projects')).sort((a, b) => a.data.order - b.data.order);
|
||||
const max_projects = 5;
|
||||
const select_projects = projects.slice(0, projects.length > max_projects ? max_projects : projects.length);
|
||||
---
|
||||
|
||||
<Base>
|
||||
@@ -43,7 +45,10 @@ const projects = (await getCollection('projects')).sort((a, b) => a.data.order -
|
||||
{domains.map((d) => <li class="flex items-center gap-2" data-domain={d.domain}><i class="size-2.5 bg-(--dc)"></i>{d.label}</li>)}
|
||||
</ul>
|
||||
<ul class="flex flex-col gap-3">
|
||||
{projects.map((p, i) => <ProjectStrip project={p} index={i} />)}
|
||||
{select_projects.map((p, i) => <ProjectStrip project={p} index={i} />)}
|
||||
<div class="flex ">
|
||||
<Button primary href="projects">All Projects</Button>
|
||||
</div>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
import { getCollection } from "astro:content";
|
||||
import SectionHeader from "../components/SectionHeader.astro";
|
||||
import { site } from '../data/site';
|
||||
import { domains } from '../data/skills';
|
||||
import Button from "../components/Button.astro";
|
||||
import ProjectStrip from "../components/ProjectStrip.astro";
|
||||
import Base from "../layouts/Base.astro";
|
||||
|
||||
const projects = (await getCollection('projects')).sort((a, b) => a.data.order - b.data.order);
|
||||
---
|
||||
|
||||
<Base>
|
||||
<section class="pt-10" id="projects" aria-labelledby="projects-h">
|
||||
<SectionHeader tag="" title={"All Projects (" + projects.length + ")"} />
|
||||
<ul class="mb-6 flex flex-wrap gap-x-5 gap-y-2 font-mono text-[12px] text-muted">
|
||||
{domains.map((d) => <li class="flex items-center gap-2" data-domain={d.domain}><i class="size-2.5 bg-(--dc)"></i>{d.label}</li>)}
|
||||
</ul>
|
||||
<ul class="flex flex-col gap-3">
|
||||
{projects.map((p, i) => <ProjectStrip project={p} index={i} />)}
|
||||
</ul>
|
||||
</section>
|
||||
</Base>
|
||||
Reference in New Issue
Block a user