Skip to content

Commit

Permalink
add Moss_Logo
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Apr 14, 2024
1 parent 7d5be53 commit 00edf68
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/five-mangos-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ryanatkn/fuz": patch
---

add `Moss_Logo`
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,11 @@
"default": "./dist/Mdn_Logo.svelte",
"types": "./dist/Mdn_Logo.svelte.d.ts"
},
"./Moss_Logo.svelte": {
"svelte": "./dist/Moss_Logo.svelte",
"default": "./dist/Moss_Logo.svelte",
"types": "./dist/Moss_Logo.svelte.d.ts"
},
"./Package_Detail.svelte": {
"svelte": "./dist/Package_Detail.svelte",
"default": "./dist/Package_Detail.svelte",
Expand Down
25 changes: 25 additions & 0 deletions src/lib/Moss_Logo.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script lang="ts">
import Spider from '$lib/Spider.svelte';
// TODO think about this API
interface Props {
size?: string;
alt?: string;
}
const {size, alt = 'the Moss logo, a little green tuft of moss'}: Props = $props();
// color:
// #298e29
// hsl(120, 55%, 36%)
// rgb(41, 142, 41)
</script>

<!-- TODO could potentially support the `image` option like `Fuz_Logo` -->
<span
aria-label={alt}
style:--color="var(--color_e_5)"
class="inline_block"
style:width={size}
style:height={size}><Spider /></span
>
2 changes: 1 addition & 1 deletion src/lib/Package_Detail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
{#if pkg.repo_url}
<span class="title">repo</span>
<div class="content">
<a class="chip" title="repo" href={pkg.repo_url}>{pkg.repo_name}</a>
<a class="chip" title="repo" href={pkg.repo_url}>{pkg.owner_name}/{pkg.repo_name}</a>
</div>
{/if}
{#if pkg.npm_url}
Expand Down
6 changes: 6 additions & 0 deletions src/routes/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ export const package_json = {
default: './dist/Mdn_Logo.svelte',
types: './dist/Mdn_Logo.svelte.d.ts',
},
'./Moss_Logo.svelte': {
svelte: './dist/Moss_Logo.svelte',
default: './dist/Moss_Logo.svelte',
types: './dist/Moss_Logo.svelte.d.ts',
},
'./Package_Detail.svelte': {
svelte: './dist/Package_Detail.svelte',
default: './dist/Package_Detail.svelte',
Expand Down Expand Up @@ -413,6 +418,7 @@ export const src_json = {
},
'./Mdn_Link.svelte': {path: 'Mdn_Link.svelte', declarations: []},
'./Mdn_Logo.svelte': {path: 'Mdn_Logo.svelte', declarations: []},
'./Moss_Logo.svelte': {path: 'Moss_Logo.svelte', declarations: []},
'./Package_Detail.svelte': {path: 'Package_Detail.svelte', declarations: []},
'./Package_Summary.svelte': {path: 'Package_Summary.svelte', declarations: []},
'./Pending_Animation.svelte': {path: 'Pending_Animation.svelte', declarations: []},
Expand Down

0 comments on commit 00edf68

Please sign in to comment.