-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
132 additions
and
194 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,22 @@ | ||
<script lang="ts"> | ||
import Markdown from "$components/markdown/markdown.svelte"; | ||
import PackageBanner from "$components/package-banner/package-banner.svelte"; | ||
import PackageMetas from "$components/package-metas/package-metas.svelte"; | ||
import useDefaultBrowser from "$libs/utils/use-default-browser"; | ||
import type { GUIPackage } from "$libs/types"; | ||
export let pkg: GUIPackage; | ||
$: readme = pkg?.readme || ({ data: "", type: "md" } as { data: string; type: "md" | "rst" }); | ||
</script> | ||
|
||
<div class="w-3/4 pr-4"> | ||
<PackageBanner on:openterminal {pkg} /> | ||
<hr class="border-top border-gray" /> | ||
<Markdown source={readme} hook={useDefaultBrowser} /> | ||
</div> | ||
<div class="w-1/4"> | ||
{#if pkg} | ||
<PackageMetas {pkg} /> | ||
{/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,24 @@ | ||
<script lang="ts"> | ||
import { t } from "$libs/translations"; | ||
export let isActive: boolean; | ||
export let onClick: () => void; | ||
export let label: string; | ||
export let hidden = false; | ||
</script> | ||
|
||
<button class="tabborder w-20 border-x" class:activetab={isActive} class:hidden on:click={onClick} | ||
>{$t(label)}</button | ||
> | ||
|
||
<style> | ||
.tabborder { | ||
border-image: linear-gradient(to bottom, rgba(148, 148, 148, 0%), rgba(148, 148, 148, 100%)) 1; | ||
} | ||
.activetab { | ||
color: #00ffd0; | ||
background: linear-gradient(180deg, rgba(77, 77, 77, 0.7) 0%, rgba(77, 77, 77, 0.35) 100%); | ||
border-image: linear-gradient(to bottom, rgba(0, 255, 208, 0%), rgba(0, 255, 208, 100%)) 1; | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
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
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 was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.