generated from ryanatkn/fuz_template
-
-
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.
rename
Spider
from Fuz_Logo
and publish Fuz_Logo
and Spiders
- Loading branch information
Showing
15 changed files
with
118 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ryanatkn/fuz": minor | ||
--- | ||
|
||
rename `Spider` from `Fuz_Logo` and publish `Fuz_Logo` and `Spiders` |
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 |
---|---|---|
@@ -1,60 +1,28 @@ | ||
<script lang="ts"> | ||
import type {SvelteHTMLElements} from 'svelte/elements'; | ||
import {base} from '$app/paths'; | ||
import Spider from '$lib/Spider.svelte'; | ||
// TODO think about this API | ||
interface Props { | ||
size?: string; | ||
fill?: string; | ||
label?: string; | ||
path_attrs?: SvelteHTMLElements['path']; | ||
attrs?: SvelteHTMLElements['svg']; | ||
image?: boolean; | ||
src?: string; | ||
alt?: string; | ||
} | ||
const { | ||
size = '100%', | ||
fill = 'var(--color, #000)', | ||
label = 'the Fuz logo, a little brown spider', | ||
path_attrs, | ||
attrs, | ||
}: Props = $props(); | ||
const {size, image = false, src, alt = 'the Fuz logo, a little brown spider'}: Props = $props(); | ||
// TODO do something more optimal preferring {@html} | ||
// color: | ||
// #6a3e1b | ||
// hsl(27, 60%, 26%) | ||
// rgb(106, 62, 27) | ||
</script> | ||
|
||
<!-- viewBox="0 0 1024 1024" | ||
style:width={size} | ||
style:height={size} | ||
<path | ||
transform="scale(64)" | ||
/> | ||
--> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
aria-label={label} | ||
viewBox="0 0 100 100" | ||
width={size} | ||
height={size} | ||
fill="none" | ||
{...attrs} | ||
> | ||
<path | ||
{fill} | ||
d="M 26.253917,88.532336 29.904106,71.394855 40.667193,53.342811 40.258534,49.99234 38.417407, | ||
49.000991 22.876908,50.369035 9.4865496,53.880193 2.3019024,57.978424 0.42708056, | ||
57.27994 7.2642726,51.086985 20.811326,45.373351 37.960128,42.356792 39.354818, | ||
40.107008 38.229925,38.149883 26.030989,27.105568 14.46539,21.861786 8.0479986, | ||
18.615387 l -0.41428,-1.710463 8.2789464,1.499862 13.012873,5.003724 13.447448, | ||
10.696856 1.680801,-0.729547 0.222439,-1.343157 -3.983998,-12.128053 -5.730215, | ||
-9.573597 -0.823624,-5.1744052 1.16944,-1.165102 2.604334,6.3355162 6.612025,7.08777 4.874534, | ||
11.55989 2.800804,0.515574 4.48815,-1.359246 1.521623,-8.687062 5.685014,-8.620764 2.75965, | ||
-6.8316782 1.094578,1.128569 -1.293029,5.4222362 -4.084776,11.06803 -0.484994, | ||
8.377408 0.194311,1.192896 1.42954,1.700726 11.563936,-10.644623 9.878262,-8.331535 8.732915, | ||
-3.390708 -0.387305,1.402757 -5.294686,3.023816 -10.445054,10.705792 -9.561599, | ||
13.627899 -0.438945,1.602755 1.001398,1.666754 17.376932,3.986302 9.537375,6.940531 4.325785, | ||
4.636405 0.211208,1.557106 -6.15842,-4.279925 -10.413771,-5.155697 -15.838715, | ||
-1.696223 -0.83461,1.144484 0.774499,2.593247 9.737644,16.194355 3.925704,17.214082 0.07146, | ||
10.277289 -1.706242,1.13628 -2.009721,-9.21637 -5.894265,-16.88027 -12.292087, | ||
-17.295813 -4.177778,-0.585888 -7.294671,2.935716 -11.138052,16.645915 -6.462422, | ||
17.752509 -1.634756,7.206641 -2.070766,-1.52923 z" | ||
{...path_attrs} | ||
/> | ||
</svg> | ||
{#if image}<img src={src ?? `${base}/favicon.png`} {alt} width={size} height={size} />{:else}<span | ||
aria-label={alt} | ||
style:--color="var(--color_f_5)" | ||
class="inline_block" | ||
style:width={size} | ||
style:height={size}><Spider /></span | ||
>{/if} |
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
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,51 @@ | ||
<script lang="ts"> | ||
import type {SvelteHTMLElements} from 'svelte/elements'; | ||
interface Props { | ||
size?: string; | ||
fill?: string; | ||
label?: string; | ||
path_attrs?: SvelteHTMLElements['path']; | ||
attrs?: SvelteHTMLElements['svg']; | ||
} | ||
const { | ||
size = '100%', | ||
fill = 'var(--color, #000)', | ||
label = 'a little brown spider', | ||
path_attrs, | ||
attrs, | ||
}: Props = $props(); | ||
</script> | ||
|
||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
aria-label={label} | ||
viewBox="0 0 100 100" | ||
width={size} | ||
height={size} | ||
fill="none" | ||
{...attrs} | ||
> | ||
<path | ||
{fill} | ||
d="M 26.253917,88.532336 29.904106,71.394855 40.667193,53.342811 40.258534,49.99234 38.417407, | ||
49.000991 22.876908,50.369035 9.4865496,53.880193 2.3019024,57.978424 0.42708056, | ||
57.27994 7.2642726,51.086985 20.811326,45.373351 37.960128,42.356792 39.354818, | ||
40.107008 38.229925,38.149883 26.030989,27.105568 14.46539,21.861786 8.0479986, | ||
18.615387 l -0.41428,-1.710463 8.2789464,1.499862 13.012873,5.003724 13.447448, | ||
10.696856 1.680801,-0.729547 0.222439,-1.343157 -3.983998,-12.128053 -5.730215, | ||
-9.573597 -0.823624,-5.1744052 1.16944,-1.165102 2.604334,6.3355162 6.612025,7.08777 4.874534, | ||
11.55989 2.800804,0.515574 4.48815,-1.359246 1.521623,-8.687062 5.685014,-8.620764 2.75965, | ||
-6.8316782 1.094578,1.128569 -1.293029,5.4222362 -4.084776,11.06803 -0.484994, | ||
8.377408 0.194311,1.192896 1.42954,1.700726 11.563936,-10.644623 9.878262,-8.331535 8.732915, | ||
-3.390708 -0.387305,1.402757 -5.294686,3.023816 -10.445054,10.705792 -9.561599, | ||
13.627899 -0.438945,1.602755 1.001398,1.666754 17.376932,3.986302 9.537375,6.940531 4.325785, | ||
4.636405 0.211208,1.557106 -6.15842,-4.279925 -10.413771,-5.155697 -15.838715, | ||
-1.696223 -0.83461,1.144484 0.774499,2.593247 9.737644,16.194355 3.925704,17.214082 0.07146, | ||
10.277289 -1.706242,1.13628 -2.009721,-9.21637 -5.894265,-16.88027 -12.292087, | ||
-17.295813 -4.177778,-0.585888 -7.294671,2.935716 -11.138052,16.645915 -6.462422, | ||
17.752509 -1.634756,7.206641 -2.070766,-1.52923 z" | ||
{...path_attrs} | ||
/> | ||
</svg> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<script lang="ts"> | ||
import Library_Content from '$lib/Library_Content.svelte'; | ||
import {get_tomes} from '$lib/tome.js'; | ||
import {get_pkg} from '$routes/pkg.js'; | ||
const tomes_by_name = get_tomes(); | ||
const tomes = Array.from(tomes_by_name.values()); | ||
const pkg = get_pkg(); | ||
</script> | ||
|
||
<Library_Content {tomes} /> | ||
<Library_Content {tomes} {pkg} /> |
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