Skip to content

Commit

Permalink
feat: added priority to projects
Browse files Browse the repository at this point in the history
  • Loading branch information
TheComputerM committed Jan 27, 2025
1 parent 2aee284 commit c95c3bb
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ProjectCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const { Content } = await render(project);
<Card title="Description">
<Content />
</Card>
<Card title="Details">
<Card title="Links">
<p>
<b>GitHub: </b>
<a href={`https://github.com/${project.data.repo}`} target="_blank">
Expand Down
1 change: 1 addition & 0 deletions src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const projects = defineCollection({
name: z.string(),
repo: z.string(),
homepage: z.string().optional(),
priority: z.number().default(0),
}),
});

Expand Down
1 change: 1 addition & 0 deletions src/content/projects/demochain.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: Demochain
repo: thecomputerm/demochain
priority: 4
---

A dummy peer-2-peer **blockchain** network that can run purely in your **browser** using WebRTC *without* a central server.
1 change: 1 addition & 0 deletions src/content/projects/ffigenpad.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: FFIgenPad
repo: thecomputerm/ffigenpad
homepage: https://ffigenpad.surge.sh
priority: 3
---

My [GSoC](https://summerofcode.withgoogle.com/archive/2024/projects/NDTqal0i) project with the [Dart](https://dart.dev/) organization. Use your C headers to generate *dart:ffi* bindings fully in the browser using **WASM**.
1 change: 1 addition & 0 deletions src/content/projects/lex.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: Lex
repo: crux-bphc/lex
priority: 2
---

A flutter app with a companion [golang server](https://github.com/crux-bphc/lex-backend) that enables the students of BITS Hyderabad to be more academically productive.
1 change: 1 addition & 0 deletions src/content/projects/svelte-materialify.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
name: Svelte Materialify
repo: thecomputerm/svelte-materialify
priority: -1
---

**DEPRECATED**, my **first** huge open-source project, a *material design* component library for **Svelte** 3.
6 changes: 5 additions & 1 deletion src/pages/projects.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ const projects = await getCollection("projects");
Some of my most cherished and meticulously developed projects.
</p>
<hr />
{projects.map((project) => <ProjectCard project={project} />)}
{
projects
.sort((a, b) => b.data.priority - a.data.priority)
.map((project) => <ProjectCard project={project} />)
}
<hr />
<p>
See more of my work and other open-source contributions over on my
Expand Down

0 comments on commit c95c3bb

Please sign in to comment.