Skip to content

Commit c95c3bb

Browse files
committed
feat: added priority to projects
1 parent 2aee284 commit c95c3bb

File tree

7 files changed

+11
-2
lines changed

7 files changed

+11
-2
lines changed

src/components/ProjectCard.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { Content } = await render(project);
2929
<Card title="Description">
3030
<Content />
3131
</Card>
32-
<Card title="Details">
32+
<Card title="Links">
3333
<p>
3434
<b>GitHub: </b>
3535
<a href={`https://github.com/${project.data.repo}`} target="_blank">

src/content.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const projects = defineCollection({
1919
name: z.string(),
2020
repo: z.string(),
2121
homepage: z.string().optional(),
22+
priority: z.number().default(0),
2223
}),
2324
});
2425

src/content/projects/demochain.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Demochain
33
repo: thecomputerm/demochain
4+
priority: 4
45
---
56

67
A dummy peer-2-peer **blockchain** network that can run purely in your **browser** using WebRTC *without* a central server.

src/content/projects/ffigenpad.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: FFIgenPad
33
repo: thecomputerm/ffigenpad
44
homepage: https://ffigenpad.surge.sh
5+
priority: 3
56
---
67

78
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**.

src/content/projects/lex.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Lex
33
repo: crux-bphc/lex
4+
priority: 2
45
---
56

67
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.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Svelte Materialify
33
repo: thecomputerm/svelte-materialify
4+
priority: -1
45
---
56

67
**DEPRECATED**, my **first** huge open-source project, a *material design* component library for **Svelte** 3.

src/pages/projects.astro

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ const projects = await getCollection("projects");
1515
Some of my most cherished and meticulously developed projects.
1616
</p>
1717
<hr />
18-
{projects.map((project) => <ProjectCard project={project} />)}
18+
{
19+
projects
20+
.sort((a, b) => b.data.priority - a.data.priority)
21+
.map((project) => <ProjectCard project={project} />)
22+
}
1923
<hr />
2024
<p>
2125
See more of my work and other open-source contributions over on my

0 commit comments

Comments
 (0)