diff --git a/src/lib/components/ProjectCard.svelte b/src/lib/components/ProjectCard.svelte index 4690158..5facf4a 100644 --- a/src/lib/components/ProjectCard.svelte +++ b/src/lib/components/ProjectCard.svelte @@ -4,7 +4,7 @@
-
+
{info.title}
@@ -18,6 +18,7 @@ href={info.sourceCodeURL} class="hover:text-srcery-blue-500 duration-200" aria-label="Source code" + target="_blank" > diff --git a/src/lib/index.ts b/src/lib/index.ts index 62d7e27..bf97d5c 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,5 +1,4 @@ export interface ProjectInfo { - id: string title: string sourceCodeURL: string createdAt: string @@ -8,14 +7,124 @@ export interface ProjectInfo { export const email = "rokas.puz@gmail.com" -const gameOfLifeInfo: ProjectInfo = { - id: "game-of-life", - title: "\"Game Of Life\"", - sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/rust-game-of-life", - createdAt: "2022/06/03", - shortDescription: "John Conway's game of life parašytas rust programavimo kalboje" -} - -export const projects = [ - gameOfLifeInfo, +export const projects: ProjectInfo[] = [ + { + title: "\"Game Of Life\"", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/rust-game-of-life", + createdAt: "2022/06/03", + shortDescription: "John Conway's game of life parašytas rust programavimo kalboje" + }, + { + title: "8086", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/8086", + createdAt: "2023/06/12", + shortDescription: "CPU instrukcijų dekodavimas ir simuliavimas naudojant C" + }, + { + title: "Rust WASM Snake", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/rust-wasm-snake", + createdAt: "2022/06/03", + shortDescription: "" + }, + { + title: "Advent of Code 2020", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/aoc-2020", + createdAt: "2020/12/25", + shortDescription: "" + }, + { + title: "Advent of Code 2021", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/aoc-2021", + createdAt: "2021/12/25", + shortDescription: "" + }, + { + title: "Advent of Code 2022", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/aoc-2022", + createdAt: "2022/12/25", + shortDescription: "" + }, + { + title: "Advent of Code 2023", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/aoc-2023", + createdAt: "2023/12/25", + shortDescription: "" + }, + { + title: "ls-todos", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/ls-todos", + createdAt: "2022/08/05", + shortDescription: "" + }, + { + title: "ls-repos", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/ls-todos", + createdAt: "2022/08/05", + shortDescription: "" + }, + { + title: "KTU Timetable", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/ktu-timetable", + createdAt: "2023/02/05", + shortDescription: "" + }, + { + title: "Sudoku solver", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/sudoku-solver", + createdAt: "2019/12/29", + shortDescription: "" + }, + { + title: "Boids playground", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/boids-playground", + createdAt: "2023/08/15", + shortDescription: "" + }, + { + title: "Raylib example indexer", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/raylib-example-indexer", + createdAt: "2023/08/26", + shortDescription: "" + }, + { + title: "CHIP-8 Zig", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/chip8-zig", + createdAt: "2023/09/02", + shortDescription: "" + }, + { + title: "Nature of Code", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/nature-of-code", + createdAt: "2024/02/10", + shortDescription: "" + }, + { + title: "Brainfuck", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/brainfuck", + createdAt: "2024/09/14", + shortDescription: "" + }, + { + title: "Seam carving", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/seam-carving", + createdAt: "2024/07/14", + shortDescription: "" + }, + { + title: "Raytracing in One Weekend", + sourceCodeURL: "https://git.rpuzonas.com/rpuzonas/raytracing-in-a-weekend", + createdAt: "2022/03/13", + shortDescription: "" + }, ] + +projects.sort((a, b) => { + if (a.createdAt < b.createdAt) { + return 1 + } else if (a.createdAt > b.createdAt) { + return -1 + } else { + return 0 + } +}) + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index cbb14e1..ba386ef 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -30,25 +30,25 @@