Skip to content
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

Add a screenshot of a basic website #23

Open
SkyfallWasTaken opened this issue Feb 18, 2023 · 10 comments
Open

Add a screenshot of a basic website #23

SkyfallWasTaken opened this issue Feb 18, 2023 · 10 comments

Comments

@SkyfallWasTaken
Copy link

It would be nice to see the progress of blitz by showing it render a basic website (perhaps one of the websites on nocss.club?)

@ealmloff
Copy link
Member

ealmloff commented Feb 20, 2023

Having a few real world example demos built up to show what you can build with Blitz and screenshots of them in the readme would be a great addition!

It could also be interested to have a "goal app" implemented in Dioxus web or desktop (hacker news?) for Blitz to work towards

@nicoburns
Copy link
Collaborator

Unfortunately Blitz currently (or soon) implements what are considered "advanced" layout modes from the perspective of the web (Flexbox and CSS Grid) but not the "basic" ones (block/inline and table layout). And I'm also not sure what state Blitz' text rendering is in. So it might be difficult to find websites that it can render well.

I looked at Hacker News as Taffy demo. But unfortunately it uses table layout, which might make it tricky. The tables spec is... not small https://www.w3.org/TR/css-tables-3/. It would definitely be possible to recreate though. And perhaps that might be a worthwhile excercise?

@nicoburns
Copy link
Collaborator

nicoburns commented Mar 28, 2023

I would suggest the following as the minimum viable feature set for rendering a website:

Then as part of the demo itself we'd ideally want:

Extension tasks:

  • Images (Add Image support #24) and fetching images via URL
  • Actual CSS selector resolution (presumably using the selectors crate)
  • Font resolution (installed fonts and web fonts)
  • Click handling for links

Normalize.css (https://necolas.github.io/normalize.css/8.0.1/normalize.css) would also be a sensible target to track.
Also https://css.tobyase.de

@nicoburns
Copy link
Collaborator

nicoburns commented May 1, 2023

Sciter's CSS support might also be a useful point of comparison:

@nicoburns
Copy link
Collaborator

I've started working on Block layout in Taffy here: DioxusLabs/taffy#474.

@nicoburns
Copy link
Collaborator

https://alistapart.com/ could be a possible target to aim for. It would require the ability to resolve CSS selectors / stylesheets and will exercise quite a few layout/styling paths, but it works well without JS.

@nicoburns
Copy link
Collaborator

https://alistapart.com/ definitely has some issues, but it is also very much recognisable...

Screenshot 2024-06-14 at 09 47 05 Screenshot 2024-06-14 at 09 47 18

@nicoburns
Copy link
Collaborator

Blitz rendering it's own README:

Screenshot 2024-06-12 at 16 16 06

@nicoburns
Copy link
Collaborator

https://servo.org

Screenshot 2024-06-12 at 11 28 55

@nicoburns
Copy link
Collaborator

Screenshot 2024-07-30 at 16 31 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants