-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
80 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export const siteConfig = { | ||
name: 'Vaul Svelte', | ||
url: 'https://www.vaul-svelte.com', | ||
description: 'Unstyled drawer for Svelte.', | ||
ogImage: 'https://www.vaul-svelte.com/og.jpg', | ||
links: { | ||
twitter: 'https://twitter.com/huntabyte', | ||
github: 'https://github.com/huntabyte/vaul-svelte' | ||
}, | ||
keywords: `Svelte,SvelteKit,Svelte Components,Headless Svelte Components,Headless UI Svelte,Drawer for Svelte,SvelteKit Drawer,Svelte Drawer,Vaul Svelte` | ||
}; | ||
|
||
export type SiteConfig = typeof siteConfig; |
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,7 +1,10 @@ | ||
<script lang="ts"> | ||
import '../app.pcss'; | ||
import Metadata from './metadata.svelte'; | ||
</script> | ||
|
||
<Metadata /> | ||
|
||
<main data-vaul-drawer-wrapper=""> | ||
<slot /> | ||
</main> |
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,30 @@ | ||
<script lang="ts"> | ||
import { page } from '$app/stores'; | ||
import { siteConfig } from '../config/site.js'; | ||
export let title: string = siteConfig.name; | ||
</script> | ||
|
||
<svelte:head> | ||
<title>{title}</title> | ||
<meta name="description" content={siteConfig.description} /> | ||
<meta name="keywords" content={siteConfig.keywords} /> | ||
<meta name="author" content="huntabyte" /> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta name="twitter:site" content={siteConfig.url} /> | ||
<meta name="twitter:title" content={title} /> | ||
<meta name="twitter:description" content={siteConfig.description} /> | ||
<meta name="twitter:image" content="https://www.vaul-svelte.com/og.jpg" /> | ||
<meta name="twitter:image:alt" content={siteConfig.name} /> | ||
<meta name="twitter:creator" content="huntabyte" /> | ||
<meta property="og:title" content={title} /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:url" content={siteConfig.url + $page.url.pathname} /> | ||
<meta property="og:image" content="https://www.vaul-svelte.com/og.jpg" /> | ||
<meta property="og:image:alt" content={siteConfig.name} /> | ||
<meta property="og:image:width" content="1200" /> | ||
<meta property="og:image:height" content="630" /> | ||
<meta property="og:description" content={siteConfig.description} /> | ||
<meta property="og:site_name" content={siteConfig.name} /> | ||
<meta property="og:locale" content="EN_US" /> | ||
</svelte:head> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.