Skip to content

Commit

Permalink
Merge branch 'main' into add-prettier-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored Aug 4, 2022
2 parents df3f9c6 + 3362ec2 commit f251a5a
Show file tree
Hide file tree
Showing 129 changed files with 278 additions and 1,719 deletions.
1 change: 0 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Astro Examples Library


The easiest way to check out one of these examples on your machine is by running this command in an empty directory:

```
Expand Down
4 changes: 3 additions & 1 deletion examples/basics/src/components/Card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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>
1 change: 1 addition & 0 deletions examples/basics/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import Card from "../components/Card.astro";
border-radius: 4px;
padding: 0.15em 0.25em;
}

.link-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
Expand Down
19 changes: 0 additions & 19 deletions examples/blog-multiple-authors/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions examples/blog-multiple-authors/.npmrc

This file was deleted.

6 changes: 0 additions & 6 deletions examples/blog-multiple-authors/.stackblitzrc

This file was deleted.

54 changes: 0 additions & 54 deletions examples/blog-multiple-authors/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions examples/blog-multiple-authors/astro.config.mjs

This file was deleted.

19 changes: 0 additions & 19 deletions examples/blog-multiple-authors/package.json

This file was deleted.

Binary file removed examples/blog-multiple-authors/public/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed examples/blog-multiple-authors/public/images/don.jpg
Binary file not shown.
Binary file not shown.
11 changes: 0 additions & 11 deletions examples/blog-multiple-authors/sandbox.config.json

This file was deleted.

49 changes: 0 additions & 49 deletions examples/blog-multiple-authors/src/components/MainHead.astro

This file was deleted.

63 changes: 0 additions & 63 deletions examples/blog-multiple-authors/src/components/Nav.astro

This file was deleted.

44 changes: 0 additions & 44 deletions examples/blog-multiple-authors/src/components/Pagination.astro

This file was deleted.

66 changes: 0 additions & 66 deletions examples/blog-multiple-authors/src/components/PostPreview.astro

This file was deleted.

10 changes: 0 additions & 10 deletions examples/blog-multiple-authors/src/data/authors.json

This file was deleted.

Loading

0 comments on commit f251a5a

Please sign in to comment.