-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Loading general issues * Language and Platforms * Filtered issues * Filter working fine * Category UI fix * Title count * Platform bg remove * Contribute cards and row UI * Contribute page responsive fix * Added transition animation * Fix path
- Loading branch information
Showing
8 changed files
with
185 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<script lang="ts"> | ||
import type { Issue } from '$utils/constants' | ||
import Icon from '@iconify/svelte' | ||
export let issue: Issue | ||
const category: Record<string, { icon: string; color: string }> = { | ||
enhancement: { icon: 'mdi:settings', color: '#FFE352' }, | ||
'good first issue': { icon: 'mdi:git-issue', color: '#65a30d' }, | ||
feature: { icon: 'mdi:star', color: '#56DD9E' }, | ||
bug: { icon: 'ri:bug-fill', color: '#FF985F' } | ||
} | ||
</script> | ||
|
||
<div class="flex w-fit flex-col gap-1"> | ||
{#if issue.labels} | ||
{#each issue.labels as label} | ||
<div | ||
class="flex h-6 w-fit items-center gap-1 rounded-lg px-2 text-black lg:h-7" | ||
style="background-color: {category[label].color};" | ||
> | ||
<Icon icon={category[label].icon} /> | ||
<span class="capitalize"> | ||
{label} | ||
</span> | ||
</div> | ||
{/each} | ||
{/if} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<script lang="ts"> | ||
import type { Issue } from '$utils/constants' | ||
import Category from '$lib/components/elements/Category.svelte' | ||
import Language from '$lib/components/elements/Language.svelte' | ||
import Platform from '$lib/components/elements/Platform.svelte' | ||
export let issue: Issue | ||
const gotoIssue = () => { | ||
window.open(issue.repo + '/issues/' + issue.number, '_blank') | ||
} | ||
</script> | ||
|
||
<button | ||
on:click={gotoIssue} | ||
class="flex cursor-pointer flex-col gap-5 rounded-lg bg-arkDeep px-6 py-5 text-white hover:bg-arkDeep2" | ||
> | ||
<p class="max-w-full truncate text-start text-xl">{issue.title}</p> | ||
|
||
<div class="flex flex-col-reverse gap-2 sm:flex-row sm:gap-10"> | ||
<div class="flex flex-row gap-3 sm:gap-10"> | ||
<div class="flex flex-col gap-1"> | ||
<p class="text-start font-bold">Language</p> | ||
<Language {issue} /> | ||
</div> | ||
<div class="flex flex-col gap-1"> | ||
<p class="text-start font-bold">Platforms</p> | ||
<Platform {issue} /> | ||
</div> | ||
</div> | ||
<div class="flex flex-col gap-1"> | ||
<p class="text-start font-bold">Category</p> | ||
<Category {issue} /> | ||
</div> | ||
</div> | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<script lang="ts"> | ||
import type { Issue } from '$utils/constants' | ||
import Icon from '@iconify/svelte' | ||
export let issue: Issue | ||
const languages: Record<string, string> = { | ||
Rust: 'skill-icons:rust', | ||
Kotlin: 'devicon:kotlin', | ||
Svelte: 'skill-icons:svelte', | ||
TypeScript: 'skill-icons:typescript' | ||
} | ||
</script> | ||
|
||
<div class="flex w-fit flex-row gap-2"> | ||
{#each issue.languages as language} | ||
<div class="flex h-7 flex-row items-center gap-1 rounded-md bg-arkDeep2 px-2"> | ||
<Icon icon={languages[language]} /> | ||
{language} | ||
</div> | ||
{/each} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script lang="ts"> | ||
import type { Issue } from '$utils/constants' | ||
import Icon from '@iconify/svelte' | ||
export let issue: Issue | ||
const platforms: Record<string, string> = { | ||
Desktop: 'devicon:windows8', | ||
Linux: 'flat-color-icons:linux', | ||
Android: 'devicon:android', | ||
OSX: 'si:apple-fill' | ||
} | ||
</script> | ||
|
||
<div class="flex w-fit flex-row gap-2"> | ||
{#if issue && issue.platforms} | ||
{#each issue.platforms as platform} | ||
<div class="flex h-7 items-center"> | ||
<Icon icon={platforms[platform]} color={platform == 'OSX' ? 'white' : ''} /> | ||
</div> | ||
{/each} | ||
{/if} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters