summaryrefslogtreecommitdiff
path: root/examples/fast-build/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fast-build/src/pages')
-rw-r--r--examples/fast-build/src/pages/index.astro32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/fast-build/src/pages/index.astro b/examples/fast-build/src/pages/index.astro
new file mode 100644
index 000000000..b5b9785da
--- /dev/null
+++ b/examples/fast-build/src/pages/index.astro
@@ -0,0 +1,32 @@
+---
+import imgUrl from '../images/penguin.jpg';
+import grayscaleUrl from '../images/random.jpg?grayscale=true';
+import Greeting from '../components/Greeting.vue';
+---
+
+<html>
+<head>
+ <title>Demo app</title>
+ <style>
+ h1 { color: salmon; }
+ </style>
+</head>
+<body>
+ <section>
+ <h1>Images</h1>
+
+ <h2>Imported in JS</h2>
+ <img src={imgUrl} />
+ </section>
+
+ <section>
+ <h1>Component CSS</h1>
+ <Greeting />
+ </section>
+
+ <section>
+ <h1>ImageTools</h1>
+ <img src={grayscaleUrl} />
+ </section>
+</body>
+</html> \ No newline at end of file