summaryrefslogtreecommitdiff
path: root/examples/blog/src/components/Author.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/src/components/Author.astro')
-rw-r--r--examples/blog/src/components/Author.astro18
1 files changed, 10 insertions, 8 deletions
diff --git a/examples/blog/src/components/Author.astro b/examples/blog/src/components/Author.astro
index 87cb48c45..3b29e0e76 100644
--- a/examples/blog/src/components/Author.astro
+++ b/examples/blog/src/components/Author.astro
@@ -1,16 +1,18 @@
---
export interface Props {
- name: string;
- href: string;
+ name: string;
+ href: string;
}
const { name, href } = Astro.props;
---
-<style>
- .author {
- margin-bottom: 0.75rem;
- }
-</style>
+
<div class="author">
- <p><a href={href}>{name}</a></p>
+ <p><a {href}>{name}</a></p>
</div>
+
+<style>
+ .author {
+ margin-bottom: 0.75rem;
+ }
+</style>