-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
414b1e6
commit f26e2be
Showing
17 changed files
with
1,236 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
import type { CollectionEntry } from "astro:content" | ||
type Props = { | ||
description: CollectionEntry<"projects">["data"]["description"] | ||
} | ||
const { description } = Astro.props | ||
--- | ||
|
||
{ | ||
description && ( | ||
<p class="mb-1 font-thin text-[hsl(var(--muted-foreground))]"> | ||
<em>{description}</em> | ||
</p> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
import type { CollectionEntry } from "astro:content" | ||
import { format } from "date-fns" | ||
import Link from "./Link.astro" | ||
import ProjectDescription from "./ProjectDescription.astro" | ||
import TagsList from "./TagsList.astro" | ||
type Props = { | ||
project: CollectionEntry<"projects"> | ||
} | ||
const { project: project } = Astro.props | ||
const url = project.data.url | ||
const title = project.data.title | ||
const date = project.data.startDate | ||
const tech = project.data.tech | ||
--- | ||
|
||
<li> | ||
<div> | ||
<Link href={url}> | ||
{title} | ||
</Link> | ||
|
||
<time | ||
class="ml-2 text-sm whitespace-nowrap text-[hsl(var(--muted-foreground))]" | ||
>{format(date, "MMMM dd, yyyy")} | ||
</time> | ||
</div> | ||
|
||
<ProjectDescription description={project.data.description} /> | ||
|
||
<TagsList tags={tech} /> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
import type { CollectionEntry } from "astro:content" | ||
import { getCollection } from "astro:content" | ||
import ProjectListItem from "./ProjectListItem.astro" | ||
const allProjects = (await getCollection( | ||
"projects", | ||
)) as CollectionEntry<"projects">[] | ||
interface Props { | ||
limit?: number | ||
} | ||
const { limit = 3 } = Astro.props | ||
--- | ||
|
||
<div class="my-12"> | ||
<h2 class="text-2xl mb-4 mt-2">Currently Building</h2> | ||
|
||
<ul class="flex flex-col gap-2"> | ||
{ | ||
allProjects | ||
.filter((project) => project.data.published) | ||
.sort( | ||
(a, b) => | ||
new Date(b.data.startDate).getTime() - | ||
new Date(a.data.startDate).getTime(), | ||
) | ||
.slice(0, limit) | ||
.map((project) => <ProjectListItem project={project} />) | ||
} | ||
</ul> | ||
|
||
<a | ||
class="mt-2 flex h-6 rounded-lg leading-7 text-gray-600 transition-all dark:text-gray-400 dark:hover:text-gray-600" | ||
href="/projects/" | ||
> | ||
See all projects → | ||
</a> | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"title": "CV Optimiser", | ||
"description": "A tool to optimise your CV for specific job descriptions using AI.", | ||
"url": "https://www.cvoptimiser.com", | ||
"image": "../_images/cvoptimiser.jpeg", | ||
"startDate": "2024-10-01", | ||
"published": true, | ||
"tech": [ | ||
"Next.js", | ||
"Postgresql", | ||
"Drizzle ORM", | ||
"AWS", | ||
"Tailwind", | ||
"Vercel" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"title": "Interview Optimiser", | ||
"description": "An app providing realistic interview practice and comprehensive performance reports.", | ||
"url": "https://www.interviewoptimiser.com", | ||
"image": "../_images/interview-optimiser.png", | ||
"startDate": "2024-10-18", | ||
"published": true, | ||
"tech": [ | ||
"Next.js", | ||
"Postgresql", | ||
"Drizzle ORM", | ||
"AWS", | ||
"Tailwind", | ||
"Vercel" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.