Skip to content

Commit

Permalink
feat: analytics and bluesky link
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinderoubaix committed Nov 15, 2024
1 parent dd0c588 commit 4bbfc61
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions demo/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
</script>
<link rel="preload" href="https://www.agnosui.dev/versions.json" as="fetch" crossorigin="anonymous" />
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-49LCWGVXJ9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-49LCWGVXJ9');
</script>

<body data-sveltekit-preload-data="hover">
<div id="root">%sveltekit.body%</div>
Expand Down
1 change: 1 addition & 0 deletions demo/src/resources/bluesky.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions demo/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import Svg from '$lib/layout/Svg.svelte';
import github from 'bootstrap-icons/icons/github.svg?raw';
import bluesky from '$resources/bluesky.svg?raw';
import twitter from 'bootstrap-icons/icons/twitter-x.svg?raw';
import {canonicalURL$, pathToRoot$, routeLevel$, selectedFramework$, selectedApiFramework$} from '$lib/stores';
import './styles.scss';
Expand Down Expand Up @@ -134,6 +135,9 @@
<a class="nav-link" href="https://twitter.com/AgnosUI" aria-label="link to twitter / x account" target="_blank">
<Svg className="icon-24 align-middle" svg={twitter} />
</a>
<a class="nav-link" href="https://bsky.app/profile/agnosui.bsky.social" aria-label="link to bluesky profile" target="_blank">
<Svg className="icon-24 align-middle" svg={bluesky} />
</a>
</div>
<div class="align-items-center d-flex d-md-none gap-3">
<Theme />
Expand Down
4 changes: 4 additions & 0 deletions demo/src/routes/menu/MobileMenu.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import threeDots from 'bootstrap-icons/icons/three-dots-vertical.svg?raw';
import github from 'bootstrap-icons/icons/github.svg?raw';
import bluesky from '$resources/bluesky.svg?raw';
import twitter from 'bootstrap-icons/icons/twitter-x.svg?raw';
import MobileDialog from './MobileDialog.svelte';
import Svg from '$lib/layout/Svg.svelte';
Expand Down Expand Up @@ -64,6 +65,9 @@
<a class="nav-link ms-3" href="https://twitter.com/AgnosUI" aria-label="link to twitter / x account" target="_blank">
<Svg className="icon-24 align-middle" svg={twitter} />
</a>
<a class="nav-link ms-3" href="https://bsky.app/profile/agnosui.bsky.social" aria-label="link to bluesky profile" target="_blank">
<Svg className="icon-24 align-middle" svg={bluesky} />
</a>
</div>
</MobileDialog>

Expand Down

0 comments on commit 4bbfc61

Please sign in to comment.