Skip to content

Commit

Permalink
feat: added layout
Browse files Browse the repository at this point in the history
  • Loading branch information
vtrbo committed Dec 15, 2023
1 parent 7dc7c57 commit 8f961e9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
</div>
</header>

<main class="p4 xs:w-full">
<main class="p4 w-1200px ma">
<slot />
</main>
7 changes: 6 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<script>
import { KAvatar } from '@ikun-ui/core'
import { KAvatar, KCard } from '@ikun-ui/core'
</script>

<div class="mt-15vh flex flex-col items-center">
<KAvatar size="100px" src="/favicon.png"></KAvatar>
<div class="text-28px mt-4">欢迎访问XParCai工具库</div>
</div>
<div class="grid grid-cols-4 grid-gap-10px mt-100px">
<KCard shadow="never" cls="cursor-pointer fcc">
<a href="/JSONToTSType">JSONToTSType</a>
</KCard>
</div>
1 change: 1 addition & 0 deletions src/routes/JSONToTSType/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div>json2tstype</div>
5 changes: 2 additions & 3 deletions uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
transformerVariantGroup,
} from 'unocss'
import extractorSvelte from '@unocss/extractor-svelte'
import { getCSSPreflights, presetIkun } from '@ikun-ui/preset'
import { getCSSPreflights, getSafeList, presetIkun } from '@ikun-ui/preset'
import { localIconCollections } from './collection-icons'

export default defineConfig({
Expand Down Expand Up @@ -51,8 +51,7 @@ export default defineConfig({
getCSS: () => `:root {${getCSSPreflights()}}`,
},
],
safelist: [...getSafeList()],
shortcuts: [],
rules: [],
safelist: [],

})

0 comments on commit 8f961e9

Please sign in to comment.