summaryrefslogtreecommitdiff
path: root/examples/framework-svelte
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-svelte')
-rw-r--r--examples/framework-svelte/astro.config.mjs4
-rw-r--r--examples/framework-svelte/src/pages/index.astro48
2 files changed, 26 insertions, 26 deletions
diff --git a/examples/framework-svelte/astro.config.mjs b/examples/framework-svelte/astro.config.mjs
index 3e7d4acdb..a22ba9c95 100644
--- a/examples/framework-svelte/astro.config.mjs
+++ b/examples/framework-svelte/astro.config.mjs
@@ -8,6 +8,6 @@
// @ts-check
export default /** @type {import('astro').AstroUserConfig} */ ({
- // Enable the Svelte renderer to support Svelte components.
- renderers: ['@astrojs/renderer-svelte'],
+ // Enable the Svelte renderer to support Svelte components.
+ renderers: ['@astrojs/renderer-svelte'],
});
diff --git a/examples/framework-svelte/src/pages/index.astro b/examples/framework-svelte/src/pages/index.astro
index e5e7883d0..2cc0fed69 100644
--- a/examples/framework-svelte/src/pages/index.astro
+++ b/examples/framework-svelte/src/pages/index.astro
@@ -1,32 +1,32 @@
---
// Component Imports
-import Counter from '../components/Counter.svelte'
-
+import Counter from '../components/Counter.svelte';
// Full Astro Component Syntax:
// https://docs.astro.build/core-concepts/astro-components/
---
+
<html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width" />
- <link rel="icon" type="image/x-icon" href="/favicon.ico" />
- <style>
- html,
- body {
- font-family: system-ui;
- margin: 0;
- }
- body {
- padding: 2rem;
- }
- </style>
- </head>
- <body>
- <main>
- <Counter client:visible>
- <h1>Hello, Svelte!</h1>
- </Counter>
- </main>
- </body>
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width" />
+ <link rel="icon" type="image/x-icon" href="/favicon.ico" />
+ <style>
+ html,
+ body {
+ font-family: system-ui;
+ margin: 0;
+ }
+ body {
+ padding: 2rem;
+ }
+ </style>
+ </head>
+ <body>
+ <main>
+ <Counter client:visible>
+ <h1>Hello, Svelte!</h1>
+ </Counter>
+ </main>
+ </body>
</html>