-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(examples): New basics template #12472
base: next
Are you sure you want to change the base?
Conversation
|
@@ -4,5 +4,3 @@ | |||
export { default as Code } from './Code.astro'; | |||
// @ts-ignore | |||
export { default as Debug } from './Debug.astro'; | |||
// @ts-ignore | |||
export { default as Welcome } from './Welcome.astro'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It moved it back into the template for multiple reasons:
- You can't import from
astro:components
a component that has styles defined the "Astro way", you cause styles to leak everywhere - Inside Astro, you could check out the code, but not modify it, which feels like pedagogically it was a downgrade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW (and perhaps you already know) for no1, I think is:inline
can be used to avoid that, unless I miss something that requires processing the styles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh. Forgot to hit send on a couple of comments. May well be out of date now…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spotted a few issues, but it’s looking great @Princesseuh!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Safari and looks great!
Changes
This updates the design of the basics template for Astro 5. It aims to provide a mix between the old basics and minimal templates, so that it's easy for someone to take the basics, remove a few things easily and get minimal.
Looks like this
Testing
Tested manually
Docs
N/A. Docs doesn't seem to describe this template as far as I can tell.