Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
feat: add github & discord links
Browse files Browse the repository at this point in the history
  • Loading branch information
TGlide committed Apr 24, 2023
1 parent 8e1dc29 commit 9350d7c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
31 changes: 27 additions & 4 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,43 @@
import '@fontsource/inter/800.css';
import '@fontsource/inter/900.css';
import GithubLogo from '~icons/radix-icons/github-logo';
import DiscordLogo from '~icons/radix-icons/discord-logo';
import { dev } from '$app/environment';
import { inject } from '@vercel/analytics';
inject({ mode: dev ? 'development' : 'production' });
</script>

<main class="flex min-h-screen flex-col">
<nav class="flex items-center justify-between border-b border-zinc-400 px-4 py-2">
<a class="flex items-center gap-2 text-xl font-sans font-bold" href="/">
<img class="h-9 w-9 rounded-sm object-contain" src="/logo.svg" alt="Radix and Svelte logos" />
<nav class="flex items-center justify-between gap-2 border-b border-zinc-400 px-2 lg:px-4 py-2">
<a class="flex items-center gap-2 lg:text-xl font-sans font-bold" href="/">
<img
class="w-7 h-7 lg:h-9 lg:w-9 rounded-sm object-contain"
src="/logo.svg"
alt="Radix and Svelte logos"
/>
Radix Svelte
</a>

<a href="/docs/accordion" class="underline hover:opacity-75">Documentation</a>
<div class="flex items-center gap-2 lg:gap-4">
<a
href="https://github.com/tglide/radix-svelte"
target="_blank"
class="hover:opacity-75 lg:text-xl"
>
<GithubLogo />
</a>
<a
href="https://discord.com/invite/gQrpPs34xH"
target="_blank"
class="hover:opacity-75 lg:text-xl"
>
<DiscordLogo />
</a>
<a href="/docs/accordion" class="underline hover:opacity-75">Documentation</a>
</div>
</nav>
<div class="flex grow flex-col">
<slot />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
.wrapper {
display: grid;
gap: theme('spacing.4');
padding: theme('spacing.6');
padding: theme('spacing.2');
@media screen('lg') {
display: flex;
Expand Down

0 comments on commit 9350d7c

Please sign in to comment.