Skip to content

Commit

Permalink
chore: github link
Browse files Browse the repository at this point in the history
  • Loading branch information
aolyang committed Dec 14, 2024
1 parent 5c29001 commit 4713b6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import AssetsTree from "@/components/AssetsTree.svelte"
import AutoSaveAsset from "@/components/AutoSaveAsset.svelte"
import ExportContent from "@/components/ExportContent.svelte"
import Github from "@/components/Github.svelte"
import TableOfContents from "@/components/TableOfContents.svelte"
import ToggleAssetsTree from "@/components/ToggleAssetsTree.svelte"
import ToggleLocale from "@/components/ToggleLocale.svelte"
Expand Down Expand Up @@ -76,6 +77,7 @@
<AutoSaveAsset/>
{/if}
<div class="flex-1"></div>
<Github href="https://github.com/aolyang/tiptap-contentful" target="_blank" width="24" height="24"/>
<ToggleToc/>
<ToggleLocale/>
<ToggleSparkLine/>
Expand Down
10 changes: 10 additions & 0 deletions example/src/components/Github.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts">
export let href: string
export let target: string
</script>
<a {href} aria-label="github link" target={target}>
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="qem" viewBox="0 0 24 24" {...$$restProps}>
<path fill="currentColor"
d="M12 2.247a10 10 0 0 0-3.162 19.487c.5.088.687-.212.687-.475c0-.237-.012-1.025-.012-1.862c-2.513.462-3.163-.613-3.363-1.175a3.64 3.64 0 0 0-1.025-1.413c-.35-.187-.85-.65-.013-.662a2 2 0 0 1 1.538 1.025a2.137 2.137 0 0 0 2.912.825a2.1 2.1 0 0 1 .638-1.338c-2.225-.25-4.55-1.112-4.55-4.937a3.9 3.9 0 0 1 1.025-2.688a3.6 3.6 0 0 1 .1-2.65s.837-.262 2.75 1.025a9.43 9.43 0 0 1 5 0c1.912-1.3 2.75-1.025 2.75-1.025a3.6 3.6 0 0 1 .1 2.65a3.87 3.87 0 0 1 1.025 2.688c0 3.837-2.338 4.687-4.562 4.937a2.37 2.37 0 0 1 .674 1.85c0 1.338-.012 2.413-.012 2.75c0 .263.187.575.687.475A10.005 10.005 0 0 0 12 2.247"/>
</svg>
</a>

0 comments on commit 4713b6d

Please sign in to comment.