AnswerDotAI / fasthtml-example

Example fasthtml applications demonstrating a range of web programming techniques
Apache License 2.0
581 stars 82 forks source link

Wrong sakura CSS link #16

Closed leandermaerkisch closed 1 month ago

leandermaerkisch commented 1 month ago

In the for web devs docs the following sakura css references are given.

image

When using it out of the box, does not work

INFO:     127.0.0.1:64486 - "GET /assets/normalize.min.css HTTP/1.1" 404 Not Found
INFO:     127.0.0.1:64487 - "GET /assets/sakura.css HTTP/1.1" 404 Not Found

The trick is to use the full url

Link(rel='stylesheet', href='https://unpkg.com/sakura.css/css/normalize.min.css', type='text/css'),
Link(rel='stylesheet', href='https://unpkg.com/sakura.css/css/sakura.css', type='text/css'),

It would be great to update the docs to make life easier for starters. Happy contribute it if you tell me where the docs reside!

jph00 commented 1 month ago

You'll need to copy the files into your assets dir (if not using a cdn).