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.
add logos for zzz and webdevladder (#33)
- Loading branch information
Showing
22 changed files
with
445 additions
and
195 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': patch | ||
--- | ||
|
||
add logos for webdevladder and zzz |
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": patch | ||
--- | ||
|
||
add support for `logo` and `logo_alt` in `Package_Json` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
<script lang="ts"> | ||
import type {SvelteHTMLElements} from 'svelte/elements'; | ||
import Spider from '$lib/Spider.svelte'; | ||
// TODO think about this API | ||
interface Props { | ||
fill?: string; | ||
/** | ||
* Sets both the `width` and `height` of the svg. Overridden by the `width` and `height` props. | ||
*/ | ||
size?: string; | ||
/** | ||
* Sets the `width` of the svg. Overrides `size`. | ||
*/ | ||
width?: string; | ||
/** | ||
* Sets the `height` of the svg. Overrides `size`. | ||
*/ | ||
height?: string; | ||
label?: string; | ||
classes?: string; | ||
path_attrs?: SvelteHTMLElements['path']; | ||
attrs?: SvelteHTMLElements['svg']; | ||
} | ||
const {size, label = 'the Fuz logo, a little brown spider'}: Props = $props(); | ||
// color: | ||
// #6a3e1b | ||
// hsl(27, 60%, 26%) | ||
// rgb(106, 62, 27) | ||
const { | ||
fill = 'var(--color_f_5)', | ||
size, | ||
width, | ||
height, | ||
label = 'a friendly brown spider facing you', | ||
classes, | ||
path_attrs, | ||
attrs, | ||
}: Props = $props(); | ||
</script> | ||
|
||
<span | ||
style:--text_color="var(--color_f_5)" | ||
class="inline_block" | ||
style:width={size} | ||
style:height={size}><Spider {label} /></span | ||
> | ||
<Spider {fill} {size} {width} {height} {label} {classes} {path_attrs} {attrs} /> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<script lang="ts"> | ||
import type {SvelteHTMLElements} from 'svelte/elements'; | ||
interface Props { | ||
fill?: string; | ||
/** | ||
* Sets both the `width` and `height` of the svg. Overridden by the `width` and `height` props. | ||
*/ | ||
size?: string; | ||
/** | ||
* Sets the `width` of the svg. Overrides `size`. | ||
*/ | ||
width?: string; | ||
/** | ||
* Sets the `height` of the svg. Overrides `size`. | ||
*/ | ||
height?: string; | ||
label?: string; | ||
classes?: string; | ||
path_attrs?: SvelteHTMLElements['path']; | ||
attrs?: SvelteHTMLElements['svg']; | ||
} | ||
const { | ||
fill = '#f75e22', // TODO change to Moss orange color when it's added | ||
size, | ||
width, | ||
height, | ||
label = 'a friendly pixelated spider facing you', | ||
classes, | ||
path_attrs, | ||
attrs, | ||
}: Props = $props(); | ||
const final_width = $derived(width ?? size); | ||
const final_height = $derived(height ?? size); | ||
</script> | ||
|
||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 100 100" | ||
{...attrs} | ||
aria-label={label} | ||
width={final_width} | ||
height={final_height} | ||
class={classes} | ||
> | ||
<g> | ||
<path | ||
{...path_attrs} | ||
d="m 25,81.200002 h 6.2 v -12.5 h 6.3 v -18.7 h -6.3 v 6.2 H 12.5 v 6.3 H 0 v -6.3 h 6.2 v -6.2 H 25 v -6.3 h 12.5 v -6.2 h -6.3 v -6.3 H 18.7 v -6.2 H 6.2 v -6.3 H 25 v 6.3 h 12.5 v -6.3 H 31.2 V 6.2 h 6.3 v 6.300002 h 6.2 V 31.200001 H 56.2 V 12.500002 h 6.3 V 6.2 h 6.2 v 12.500001 h -6.2 v 18.800001 h 6.2 v -12.5 h 12.5 v -12.5 h 12.5 v 6.2 h -6.2 v 12.5 H 75 v 12.5 h 6.2 v 6.3 h 12.5 v 6.2 h 6.299997 v 6.3 H 87.5 v -6.3 H 75 v -6.2 h -6.3 v 12.5 H 75 v 12.5 h 6.2 V 99.99999 H 75 V 81.200002 h -6.3 v -12.5 h -6.2 v -12.5 H 43.7 v 18.8 h -6.2 v 12.5 H 31.2 V 99.99999 H 25 Z" | ||
style:fill | ||
/> | ||
</g> | ||
</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
Oops, something went wrong.