astro/examples/component/demo/src/pages/index.astro

25 lines
480 B
Text
Raw Normal View History

---
2021-12-22 21:11:05 +00:00
import * as Component from '@example/my-component';
---
2021-12-22 21:11:05 +00:00
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Welcome to Astro</title>
<style is:global>
2021-12-22 21:11:05 +00:00
h {
display: block;
font-size: 2em;
font-weight: bold;
margin-block: 0.67em;
}
</style>
</head>
2021-12-22 21:11:05 +00:00
<body>
<Component.Heading>Welcome to Astro</Component.Heading>
<Component.Button>Plain Button</Component.Button>
</body>
</html>