feat: ✨ prototype preview page
This commit is contained in:
11
apps/www/src/app.css
Normal file
11
apps/www/src/app.css
Normal file
@@ -0,0 +1,11 @@
|
||||
@font-face {
|
||||
font-family: "Mona Sans";
|
||||
src: url("$lib/assets/Mona-Sans.woff2") format("woff2 supports variations"),
|
||||
url("$lib/assets/Mona-Sans.woff2") format("woff2-variations");
|
||||
font-weight: 200 900;
|
||||
font-stretch: 75% 125%;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: "Mona Sans";
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<body data-sveltekit-preload-data="hover" un-bg="#0d1117">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,6 +1,28 @@
|
||||
<script>
|
||||
// your script goes here
|
||||
<script lang="ts">
|
||||
import type { PageData } from './$types';
|
||||
|
||||
export let data: PageData;
|
||||
</script>
|
||||
|
||||
<h1 un-text="red">Welcome to SvelteKit</h1>
|
||||
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
|
||||
<main un-grid="~ rows-4">
|
||||
<div un-h="sm" un-flex="~ justify-center items-center" un-bg="#33578a">
|
||||
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
||||
{@html data.banner}
|
||||
</div>
|
||||
<div un-h="sm" un-flex="~ justify-center items-center" un-bg="#0d1117">
|
||||
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
||||
{@html data.banner}
|
||||
</div>
|
||||
<div un-h="sm" un-flex="~ justify-center items-center" un-bg="#ffffff">
|
||||
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
||||
{@html data.banner}
|
||||
</div>
|
||||
<div un-h="sm" un-flex="~ justify-center items-center" un-bg="#0a0c10">
|
||||
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
||||
{@html data.banner}
|
||||
</div>
|
||||
<div un-h="sm" un-flex="~ justify-center items-center" un-bg="#22272e">
|
||||
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
||||
{@html data.banner}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
6
apps/www/src/routes/+page.ts
Normal file
6
apps/www/src/routes/+page.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { PageLoad } from './$types';
|
||||
|
||||
export const load = (async ({ fetch }): Promise<{ banner: string }> => {
|
||||
const banner = await (await fetch('/api.svg')).text();
|
||||
return { banner };
|
||||
}) satisfies PageLoad;
|
||||
Reference in New Issue
Block a user