summaryrefslogtreecommitdiff
path: root/examples/basics/src/components
diff options
context:
space:
mode:
authorGravatar Erika <3019731+Princesseuh@users.noreply.github.com> 2022-08-04 14:16:51 -0400
committerGravatar GitHub <noreply@github.com> 2022-08-04 14:16:51 -0400
commitf591150512903014461e4fa1be3bc53bd261af2f (patch)
treedfdad8d11b3379cc47618398281ebca6e1be91bc /examples/basics/src/components
parent32580d4fdc6ba8bb9a7e39e0b2c001ab29b3b940 (diff)
downloadastro-f591150512903014461e4fa1be3bc53bd261af2f.tar.gz
astro-f591150512903014461e4fa1be3bc53bd261af2f.tar.zst
astro-f591150512903014461e4fa1be3bc53bd261af2f.zip
Audit examples templates (#3940)
* basics, framework-alpine, framework-solid, delete unused examples * framework-multiple * Remove non-standard file extensions, add missing .vscode folders * Remove robots.txt * Remove blog-multiple-authors * Rewrite components comments to be consistent * Update lockfile * Remove unnecessary usage of SCSS in subpath example * Fix props weirdness in portfolio example * Remove Lit from `framework-multiple` for now * Misc fixes * Update lockfile * I'm in lockfile hell, send help
Diffstat (limited to 'examples/basics/src/components')
-rw-r--r--examples/basics/src/components/Card.astro4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/basics/src/components/Card.astro b/examples/basics/src/components/Card.astro
index 4039d4f4f..aea28c83f 100644
--- a/examples/basics/src/components/Card.astro
+++ b/examples/basics/src/components/Card.astro
@@ -4,7 +4,8 @@ export interface Props {
body: string;
href: string;
}
-const { href, title, body } = Astro.props;
+
+const { href, title, body } = Astro.props as Props;
---
<li class="link-card">
@@ -69,6 +70,7 @@ const { href, title, body } = Astro.props;
}
.link-card:is(:hover, :focus-within) h2 span {
+ will-change: transform;
transform: translateX(2px);
}
</style>