Replies: 61 comments 44 replies
-
How to make light/dark themes with Astro? |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
How to implement a contact form in Astro |
Beta Was this translation helpful? Give feedback.
-
How to implement search/filtering of structured content in Astro? (There could be one example using SSR, and one that builds a search index on the server and passes it to a framework component that does the searching/filtering live on the client) |
Beta Was this translation helpful? Give feedback.
-
How to load data from MongoDB into Astro |
Beta Was this translation helpful? Give feedback.
-
How to open and close a modal? I did one with Nanostores. I can possibly write one if you review the code and think my approach is good. |
Beta Was this translation helpful? Give feedback.
-
How to allow user comments on my blog posts |
Beta Was this translation helpful? Give feedback.
-
How to set up micro-frontends with EcmaScript Modules. I've written an article about it with a code example on GitHub. Happy to contribute with anything! |
Beta Was this translation helpful? Give feedback.
-
How to get dependencies from esm.sh. I've made an example here. |
Beta Was this translation helpful? Give feedback.
-
How to get Firebase and Firestore up and running for an Astro Project. |
Beta Was this translation helpful? Give feedback.
-
How to use Material UI components (Emotion) with Astro |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Is there a way to render Jupyter notebooks with Astro? I have a .ipynb file, and I'd like to render it to HTML. |
Beta Was this translation helpful? Give feedback.
-
Optimal Filter + List I have a list of items that I want to make filterable by putting an interactive filter above. How would I do this optimally? Generally I'd like to SSG this page and sent as little javascript to the client as possible |
Beta Was this translation helpful? Give feedback.
-
An example of using Astro.cookies in combination with manipulating the cookies from a framework (e.g. React) component. |
Beta Was this translation helpful? Give feedback.
-
Creating a global toggle I'll create a button for this website labeled "Zen Mode". When this button is clicked, I want to display an alternate rendering for the site, across all pages. I also want to store this state in a cookie. How should I approach this? Kapa spit out:
|
Beta Was this translation helpful? Give feedback.
-
import images as blob. Making an endpoint, and would like to return a Response. I have a folder with a list of icons. Is it possible to |
Beta Was this translation helpful? Give feedback.
-
Global Fetch Headers How do I apply a bearer token to all my fetch requests globally? |
Beta Was this translation helpful? Give feedback.
-
Cookie button How can I make a button that sets a cookie? Kapa AI spit out:
In this example, when the button with the id setCookie is clicked, a cookie with the key |
Beta Was this translation helpful? Give feedback.
-
Seed database I have a csv file that I would like to seed my Astro DB with. How to do this? |
Beta Was this translation helpful? Give feedback.
-
Add data to nanostores with form action Hello, how can I add data to a nanostores atom from my frontmatter using form actions? Discord ai support thread here: https://discord.com/channels/830184174198718474/1248682440512241718 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Deploy vercel: A function of my application downloads files from an S3 bucket and stores them in a temporary folder. It works locally but in production it gives me an error. Is there a possibility of creating this folder in production? |
Beta Was this translation helpful? Give feedback.
-
Starlight supports a built-in theme switcher for users to decide using light or dark mode. If I have a picture that requires to be displayed differently in light/dark modes, how do I achieve this? From Chris: |
Beta Was this translation helpful? Give feedback.
-
recipe for analyzing bundle size From the linked issue: When using client-side JavaScript libraries, it is important to keep track of how much they will increase the final js bundle size. Knowing this, we can optimize our page performance by potentially removing, or lazy-loading our client-side code. An official guide on how to analyze/visualize our page's js budle would be super helpful to do this. For reference, some other frameworks have guides on how to do this: |
Beta Was this translation helpful? Give feedback.
-
Heads up - might I suggest: Check out our full guide to writing recipes. Happy Showcase Friday! Vive le Docs! |
Beta Was this translation helpful? Give feedback.
-
What’s cookin’ docs?
Use this discussion to share ideas for new “Recipes” that you’d like to see added to Docs. (Or recipes you’d like to write!)
What’s a recipe?
Recipes are step-by-step how-to guides for accomplishing a specific task in Astro. Check out our full guide to writing recipes.
How many recipes can I suggest?
As many as you want! If possible, use a separate post for each idea. This will let people vote for them one by one.
See a suggestion you like?
Upvote it so we know! ⬆️
Beta Was this translation helpful? Give feedback.
All reactions