Skip to content

Commit

Permalink
fix: UI
Browse files Browse the repository at this point in the history
  • Loading branch information
FOSSit committed Apr 13, 2024
1 parent 4ddea81 commit 7963cd6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/routes/(protected)/projects/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
}
if (data) {
projects = data;
for (let project of projects) project.issues.reverse();
for (let project of projects) {
project.issues.reverse();
project.difficulty =
project.difficulty.slice(0, 1).toUpperCase() + project.difficulty.slice(1);
}
}
});
let view = false;
Expand Down Expand Up @@ -90,12 +94,12 @@
<div class="space-y-8">
{#each projects[focused].issues as issue}
<div class="flex w-full justify-between">
<a href={issue.url}
><h3 class="m-0 text-foreground">{issue.title} #{issue.number}</h3></a
>
<a href={issue.url}><h3 class="m-0 text-foreground">{issue.title}</h3></a>
<div class="flex space-x-4">
{#each issue.labels as label}
<Tag class="h-fit">{label.name}</Tag>
<Tag class="h-fit"
>{label.name.slice(0, 1).toUpperCase() + label.name.slice(1)}</Tag
>
{/each}
</div>
</div>
Expand All @@ -122,7 +126,7 @@
</h3>
<div class="flex flex-[1] flex-col items-end space-y-2">
<Tag>{project.language}</Tag>
<Tag>{project.difficulty}</Tag>
<!-- <Tag>{project.difficulty}</Tag> -->
</div>
</div>
<p>{project.about}</p>
Expand Down

0 comments on commit 7963cd6

Please sign in to comment.