Based Cooking Demo
A demo site to showcase astro and svelte frontend development. The UI is built with tailwindcss and Flowbite Svelte.
- Source code
- Original Based.Cooking site
- Astro
- Astro svelte integration
- Astro tailwindcss integration
- Flowbite Svelte
- tailwindcss
Improvement over original site
- Dark theme support
- Show count of recipes for each tags
- Extra features with launch mode
Launch Mode (Convert Static Site to SPA)
Support extra features:
- Fully local rendering, with no network traffic from server (other than images)
- Quick search on tags and recipes’ title and author
Persistent Astro Islands
Using astro’s persisten islands to keep logic running across page navigation
Async Loading Svelte Components
For better user experience, console loading (took a few seconds) is done asynchronous when user click the launch button.
SurrealDB in Browser
I’m running a surrealdb server in browser, with all the recipes inserted, the plan is to use it to support more complex features, such as multiple tags filtering, not finished yet.
Also did an experiment with using surrealdb’s fulltext search, which works not as good as fuzzysort for this small dataset, so not keep this way.