Skip to content

Commit fed4a18

Browse files
authored
Merge pull request #7 from milan-codes/develop
Develop
2 parents 4f56362 + e201f39 commit fed4a18

3 files changed

Lines changed: 45 additions & 15 deletions

File tree

src/components/BlogPostCard.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
<a
1111
class="inline-flex items-center rounded-lg text-gray-900 dark:text-gray-100 hover:underline"
1212
href={post.url}
13-
target="_blank"
14-
rel="noreferrer"
1513
>
1614
{post.frontmatter.title}
1715
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ml-1 h-4 w-4"><line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline></svg>

src/components/ProjectCard.svelte

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<script lang="ts">
2-
export let projectName: string;
3-
export let projectDescription: string;
4-
export let projectLink: string;
5-
export let projectTags: string[];
2+
export let name: string;
3+
export let description: string;
4+
export let link: string;
5+
export let tags: string[];
66
</script>
77

88
<div class="grid grid-cols-2 items-start my-8">
9-
<a class="inline-flex items-center rounded-lg text-gray-900 dark:text-gray-100 hover:underline" href={projectLink} target="_blank" rel="noreferrer">
10-
{projectName}
9+
<a class="inline-flex items-center rounded-lg text-gray-900 dark:text-gray-100 hover:underline" href={link} target="_blank" rel="noreferrer">
10+
{name}
1111
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="ml-1 h-4 w-4"><line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline></svg>
1212
</a>
1313
<div>
14-
<p class="text-gray-600 dark:text-gray-400">{projectDescription}</p>
14+
<p class="text-gray-600 dark:text-gray-400">{description}</p>
1515
<ul class="flex flex-wrap">
16-
{#each projectTags as tag}
16+
{#each tags as tag}
1717
<li class="text-gray-400 dark:text-gray-600 text-sm font-medium">{tag + "/"}</li>
1818
{/each}
1919
</ul>

src/components/Projects.svelte

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,44 @@
11
<script>
22
import ProjectCard from "./ProjectCard.svelte";
3+
4+
const projects = [
5+
{
6+
name: "Personal blog",
7+
description: "The source code of this site",
8+
link: "https://github.com/milan-codes/milan-codes.github.io",
9+
tags: ["Astro", "Svelte", "Tailwind"]
10+
},
11+
{
12+
name: "The Briefing Room",
13+
description: "Access and visualize Formula 1 telemetry data",
14+
link: "https://github.com/milan-codes/the-briefing-room",
15+
tags: ["Next", "React.ts", "Tailwind"]
16+
},
17+
{
18+
name: "The Briefing Room API",
19+
description: "Simple Flask API to serve The Briefing Room's frontend",
20+
link: "https://github.com/milan-codes/the-briefing-room-api",
21+
tags: ["Flask"]
22+
},
23+
{
24+
name: "Studician",
25+
description: "Android app for students to digitalize their timetable and tasks",
26+
link: "https://github.com/milan-codes/studician-android-client",
27+
tags: ["Kotlin"]
28+
},
29+
{
30+
name: "Studician API",
31+
description: "Express API to make information available for Studician users",
32+
link: "https://github.com/milan-codes/studician-api",
33+
tags: ["Node.js", "Express", "Firebase"]
34+
},
35+
]
36+
337
</script>
438

539
<div class="my-16">
640
<h1 class="text-gray-900 dark:text-gray-100 mb-2 tracking-wider">Projects</h1>
7-
<ProjectCard projectName="Personal blog" projectDescription="The source code of this site" projectLink="https://github.com/milan-codes/milan-codes.github.io" projectTags={["Astro", "Svelte", "Tailwind"]}/>
8-
<ProjectCard projectName="The Briefing Room" projectDescription="Access and visualize Formula 1 telemetry data" projectLink="https://github.com/milan-codes/the-briefing-room" projectTags={["Next", "React.ts", "Tailwind"]}/>
9-
<ProjectCard projectName="The Briefing Room API" projectDescription="Simple Flask API to serve the frontend" projectLink="https://github.com/milan-codes/the-briefing-room-api" projectTags={["Flask"]}/>
10-
<ProjectCard projectName="Studician" projectDescription="Android app for students to digitalize their timetable and tasks" projectLink="https://github.com/milan-codes/studician-android-client" projectTags={["Kotlin"]}/>
11-
<ProjectCard projectName="Studician API" projectDescription="Express API to make information available for users" projectLink="https://github.com/milan-codes/studician-api" projectTags={["Node.js", "Express", "Firebase"]}/>
41+
{#each projects as project, index}
42+
<ProjectCard key={index} {...project} />
43+
{/each}
1244
</div>

0 commit comments

Comments
 (0)