Skip to content

Commit

Permalink
add some links components
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Jul 6, 2024
1 parent 3fbdd39 commit d422d79
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-clocks-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ryanatkn/fuz': patch
---

add `Community_Links.svelte`, `Community_Links_Panel.svelte`, and `Hidden_Personal_Links.svelte`
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@
"svelte": "./dist/Color_Scheme_Input.svelte",
"default": "./dist/Color_Scheme_Input.svelte"
},
"./Community_Links_Panel.svelte": {
"types": "./dist/Community_Links_Panel.svelte.d.ts",
"svelte": "./dist/Community_Links_Panel.svelte",
"default": "./dist/Community_Links_Panel.svelte"
},
"./Community_Links.svelte": {
"types": "./dist/Community_Links.svelte.d.ts",
"svelte": "./dist/Community_Links.svelte",
"default": "./dist/Community_Links.svelte"
},
"./config.js": {
"types": "./dist/config.d.ts",
"default": "./dist/config.js"
Expand Down Expand Up @@ -206,6 +216,11 @@
"svelte": "./dist/Hashlink.svelte",
"default": "./dist/Hashlink.svelte"
},
"./Hidden_Personal_Links.svelte": {
"types": "./dist/Hidden_Personal_Links.svelte.d.ts",
"svelte": "./dist/Hidden_Personal_Links.svelte",
"default": "./dist/Hidden_Personal_Links.svelte"
},
"./Hue_Input.svelte": {
"types": "./dist/Hue_Input.svelte.d.ts",
"svelte": "./dist/Hue_Input.svelte",
Expand Down
64 changes: 64 additions & 0 deletions src/lib/Community_Links.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<script lang="ts">
interface Props {
selected?: 'spiderspace.org' | 'webdevladder.net' | 'ryanatkn.com';
}
const {selected}: Props = $props();
</script>

<ul>
<li>
join <a rel="me" href="https://discord.gg/YU5tyeK72X">the Discord</a> community
</li>
<li>
<a
rel="me"
href="https://www.webdevladder.net/"
class:selected={selected === 'webdevladder.net'}>webdevladder.net</a
>
- realworld webdev with TypeScript and Svelte, YouTube channels
<a rel="me" href="https://youtube.com/@webdevladder">@webdevladder</a>
and
<a rel="me" href="https://youtube.com/@webdevladder_vods">@webdevladder_vods</a
>{#if selected === 'webdevladder.net'}, you are here{/if}
</li>
<li>
<a rel="me" href="https://www.spiderspace.org/" class:selected={selected === 'spiderspace.org'}
>spiderspace.org</a
>
- nontechnical design videos where we'll make a social website together with
<a href="https://zzz.ryanatkn.com/">Zzz</a> when it's ready, YouTube channel
<a rel="me" href="https://youtube.com/@spiderspace_8000">@spiderspace_8000</a
>{#if selected === 'spiderspace.org'}, you are here{/if}
</li>
<li>
<a rel="me" href="https://www.ryanatkn.com/" class:selected={selected === 'ryanatkn.com'}
>ryanatkn.com</a
>
- my homepage{#if selected === 'ryanatkn.com'}, you are here{/if}
</li>
<li>
GitHub - <a rel="me" href="https://github.com/ryanatkn">@ryanatkn</a> and
<a rel="me" href="https://github.com/spiderspace">@spiderspace</a>
</li>
<li>
Mastodon as
<a rel="me" href="https://mastodon.social/@webdevladder">@webdevladder@mastodon.social</a>
and
<a rel="me" href="https://hci.social/@ryanatkn">@ryanatkn@hci.social</a>
</li>
<li>
@webdevladder on <a rel="me" href="https://twitter.com/webdevladder">Twitter</a>,
<a rel="me" href="https://www.reddit.com/user/webdevladder/">Reddit</a>, and
<a href="https://news.ycombinator.com/user?id=webdevladder">Hacker News</a>
</li>
<li>
support me at <a href="https://www.ryanatkn.com/funding">ryanatkn.com/funding</a>
</li>
</ul>

<style>
li > a {
word-break: break-all;
}
</style>
8 changes: 8 additions & 0 deletions src/lib/Community_Links_Panel.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script lang="ts">
import Community_Links from '$lib/Community_Links.svelte';
</script>

<section class="panel p_lg">
<h2 class="mt_0 mb_lg">Links</h2>
<Community_Links />
</section>
8 changes: 8 additions & 0 deletions src/lib/Hidden_Personal_Links.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div hidden>
@ryanatkn@hci.social on <a rel="me" href="https://hci.social/@ryanatkn">Mastodon</a>
</div>
<div hidden>
@webdevladder@mastodon.social on <a rel="me" href="https://mastodon.social/@webdevladder"
>Mastodon</a
>
</div>
12 changes: 3 additions & 9 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import Card from '$lib/Card.svelte';
import {get_pkg} from '$routes/pkg.js';
import Fuz_Logo from '$lib/Fuz_Logo.svelte';
import Hidden_Personal_Links from '$lib/Hidden_Personal_Links.svelte';
const pkg = get_pkg();
</script>
Expand Down Expand Up @@ -63,15 +64,8 @@
{#snippet logo_header()}
<a href="{base}/about" class="mb_xs">about</a>
{/snippet}
<div hidden>
@ryanatkn@hci.social on <a rel="me" href="https://hci.social/@ryanatkn">Mastodon</a>
</div>
<div hidden>
@webdevladder@mastodon.social on <a rel="me" href="https://mastodon.social/@webdevladder"
>Mastodon</a
>
</div></Library_Footer
>
<Hidden_Personal_Links />
</Library_Footer>
</section>
</div>
</main>
Expand Down
2 changes: 2 additions & 0 deletions src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import Fuz_Logo from '$lib/Fuz_Logo.svelte';
import {get_pkg} from '$routes/pkg.js';
import Community_Links_Panel from '$lib/Community_Links_Panel.svelte';
const pkg = get_pkg();
Expand All @@ -18,6 +19,7 @@
</header>
<Breadcrumb><Fuz_Logo size="32px" /></Breadcrumb>
</section>
<Community_Links_Panel />
<section class="box w_100 mb_lg">
<div class="panel p_md width_md">
<Package_Detail {pkg} />
Expand Down
18 changes: 18 additions & 0 deletions src/routes/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ export const package_json = {
svelte: './dist/Color_Scheme_Input.svelte',
default: './dist/Color_Scheme_Input.svelte',
},
'./Community_Links_Panel.svelte': {
types: './dist/Community_Links_Panel.svelte.d.ts',
svelte: './dist/Community_Links_Panel.svelte',
default: './dist/Community_Links_Panel.svelte',
},
'./Community_Links.svelte': {
types: './dist/Community_Links.svelte.d.ts',
svelte: './dist/Community_Links.svelte',
default: './dist/Community_Links.svelte',
},
'./config.js': {types: './dist/config.d.ts', default: './dist/config.js'},
'./Contextmenu_Entry.svelte': {
types: './dist/Contextmenu_Entry.svelte.d.ts',
Expand Down Expand Up @@ -180,6 +190,11 @@ export const package_json = {
svelte: './dist/Hashlink.svelte',
default: './dist/Hashlink.svelte',
},
'./Hidden_Personal_Links.svelte': {
types: './dist/Hidden_Personal_Links.svelte.d.ts',
svelte: './dist/Hidden_Personal_Links.svelte',
default: './dist/Hidden_Personal_Links.svelte',
},
'./Hue_Input.svelte': {
types: './dist/Hue_Input.svelte.d.ts',
svelte: './dist/Hue_Input.svelte',
Expand Down Expand Up @@ -355,6 +370,8 @@ export const src_json = {
'./Breadcrumb.svelte': {path: 'Breadcrumb.svelte', declarations: []},
'./Card.svelte': {path: 'Card.svelte', declarations: []},
'./Color_Scheme_Input.svelte': {path: 'Color_Scheme_Input.svelte', declarations: []},
'./Community_Links_Panel.svelte': {path: 'Community_Links_Panel.svelte', declarations: []},
'./Community_Links.svelte': {path: 'Community_Links.svelte', declarations: []},
'./config.js': {
path: 'config.ts',
declarations: [
Expand Down Expand Up @@ -411,6 +428,7 @@ export const src_json = {
'./Github_Logo.svelte': {path: 'Github_Logo.svelte', declarations: []},
'./Gro_Logo.svelte': {path: 'Gro_Logo.svelte', declarations: []},
'./Hashlink.svelte': {path: 'Hashlink.svelte', declarations: []},
'./Hidden_Personal_Links.svelte': {path: 'Hidden_Personal_Links.svelte', declarations: []},
'./Hue_Input.svelte': {path: 'Hue_Input.svelte', declarations: []},
'./Library_Content.svelte': {path: 'Library_Content.svelte', declarations: []},
'./Library_Footer.svelte': {path: 'Library_Footer.svelte', declarations: []},
Expand Down

0 comments on commit d422d79

Please sign in to comment.