Skip to content

Commit

Permalink
added projects section
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-tr committed Nov 16, 2022
1 parent 0164ad7 commit 34e3f9d
Show file tree
Hide file tree
Showing 59 changed files with 299 additions and 1,649 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"remark-github": "^11.2.4",
"remark-slug": "^7.0.1",
"sass": "^1.55.0",
"svelte": "^3.51.0",
"svelte": "^3.52.0",
"svelte-check": "^2.9.2",
"svelte-preprocess": "^4.10.7",
"tslib": "^2.4.0",
Expand Down
58 changes: 29 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 0 additions & 61 deletions src/data/docs.ts

This file was deleted.

63 changes: 51 additions & 12 deletions src/data/features.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/links.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { DocsPage } from "$data/docs";
import type { DocsPage } from "$data/projects";

export const links = {
github: {
Expand Down
45 changes: 45 additions & 0 deletions src/data/projects.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
export type DocsNode = {
name: string,
icon?: string,
}

export type DocsPage = DocsNode & { path: string }

export type DocsCategory = DocsNode & { pages: DocsPage[] }

export const projects: (DocsPage | DocsCategory)[] = [
{
name: "Overview",
path: ""
},
{
name: "Personal",
pages: [
{
name: "Raytracer",
path: "/personal/raytracer"
},
{
name: "Personal website (this site)",
path: "/personal/website"
}
]
},
{
name: "Degree-related",
pages: [
{
name: "Library Manager",
path: "/degree/library-manager"
},
{
name: "Python QT Data Analysis Tool",
path: "/degree/pythonqtdataanalysis"
},
{
name: "Lunar Lander game written in SQL",
path: "/degree/lunarlandersql"
}
]
}
];
2 changes: 1 addition & 1 deletion src/layout/FeaturesSection/FeaturesSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</div>
<div class="features-section-right">
<HeaderChip>Skills</HeaderChip>
<h2>My experience and confidence</h2>
<h2>My experience and interests</h2>
<p>
I like using a wide-range of technologies and tools to solve problems.
Here's a sample of the ones I like the most and have the most experience with.
Expand Down
9 changes: 8 additions & 1 deletion src/layout/FeaturesSection/preview/PreviewShowcase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,14 @@
background-image: linear-gradient(#f0a3a3, #f42323);
}
}

div.listcontainer {
text-align: center;
ul {
display: inline-block;
text-align: left;
}
}

// Metadata elements
h4,
h5,
Expand Down
18 changes: 18 additions & 0 deletions src/layout/FeaturesSection/preview/PreviewShowcase.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script>
import { draw } from "svelte/transition";
import { previewFiles } from "$data/features";
import { projects } from "$data/projects";
import { each } from "svelte/internal";
let currentPreviewFile = 0;
</script>
Expand Down Expand Up @@ -48,6 +50,22 @@
<h5>
{file.confidence}
</h5>
{#if file?.projects !== undefined}
<br/>
<hr/>
<h4>Projects</h4>
<div class="listcontainer">
<ul>
{#each file.projects as project}
<li>
<a href="/projects{project.link}">
{project.name}
</a>
</li>
{/each}
</ul>
</div>
{/if}
<br/>
<hr/>
<span>{file.description}</span>
Expand Down
Loading

0 comments on commit 34e3f9d

Please sign in to comment.