mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 20:09:35 +00:00
chore(examples): add routify set-up
This commit is contained in:
parent
a4aa2d9c77
commit
1d479eb835
16 changed files with 2885 additions and 0 deletions
19
examples/routify/src/pages/_layout.svelte
Normal file
19
examples/routify/src/pages/_layout.svelte
Normal file
|
@ -0,0 +1,19 @@
|
|||
<script>
|
||||
import { metatags, page } from "@sveltech/routify";
|
||||
import { Content, Grid } from "carbon-components-svelte";
|
||||
import Navigation from "./_navigation.svelte";
|
||||
import Theme from "../components/Theme.svelte";
|
||||
</script>
|
||||
|
||||
<style lang="scss" global>
|
||||
@import "carbon-components-svelte/css/all";
|
||||
</style>
|
||||
|
||||
<Theme persist theme="g10">
|
||||
<Navigation />
|
||||
<Content style="background: none; padding: 1rem">
|
||||
<Grid>
|
||||
<slot />
|
||||
</Grid>
|
||||
</Content>
|
||||
</Theme>
|
Loading…
Add table
Add a link
Reference in a new issue