summaryrefslogtreecommitdiff
path: root/examples/subpath/src/pages/index.astro
blob: 1a86a554bc0f175b8514063de34ae1372802cb47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
import '../styles/main.css';
import Time from '../components/Time.jsx';

// Full Astro Component Syntax:
// https://docs.astro.build/core-concepts/astro-components/
---

<html lang="en">
	<head>
		<meta charset="utf-8" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<meta name="viewport" content="width=device-width" />
		<meta name="generator" content={Astro.generator} />
		<title>Welcome to Astro</title>
	</head>

	<body>
		<h1>Welcome to <a href="https://astro.build/">Astro</a></h1>

		<main id="app">
			Today: <Time client:idle />
		</main>

		<article>
			<h2>Animals</h2>

			<figure>
				<img src="/blog/images/penguin.png" />
				<figcaption>A penguin</figcaption>
			</figure>
		</article>
	</body>
</html>