Skip to content

Commit

Permalink
chore: redirect to github
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi-best committed Dec 5, 2024
1 parent 7871747 commit 53a0c28
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/lib/pages/home/author-display.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<script>
export let data = {
author: '',
author_link: '',
author_avatar: ''
};
<script lang="ts">
import type { Repository } from '$lib/types/repository';
export let data: Repository;
</script>

<div class="flex items-center gap-3">
<a href={`${data.author_link}`}>
<a
href={`${data.author_link_madeinnigeria}`}
target="_blank"
rel="noopener noreferrer"
>
<div class="flex items-center gap-3">
<img src={data.author_avatar} alt="" class="w-7 rounded-full" />
</a>

<a href={`${data.author_link}`}> {data.author}</a>
</div>
{data.author_madeinnigeria}
</div>
</a>
1 change: 1 addition & 0 deletions src/lib/pages/home/table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
href={`${cell.render()}`}
class="text-left font-medium underline"
target="_blank"
rel="noopener noreferrer"
>
<Render
of={extractLastSegment(cell.render() || '') ||
Expand Down
3 changes: 3 additions & 0 deletions src/lib/types/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export type Repository = {
author_link: string;
author_avatar: string;

author_madeinnigeria: string;
author_link_madeinnigeria: string;

stars: number;
topics: string[];
license: {
Expand Down

0 comments on commit 53a0c28

Please sign in to comment.