Repository navigation
docs: add light and dark screenshots - #1211
trueberryless wants to merge 1 commit into
Conversation
✅ Deploy Preview for all-contributors ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
❌ Deploy Preview for all-contributors failed.
|
| @@ -0,0 +1,161 @@ | |||
| --- | |||
There was a problem hiding this comment.
@trueberryless can you help me understand what these files are? they look svg ish kinda but not really.
There was a problem hiding this comment.
The bigger picture reason for these files is that we replace the old PNG illustrations with SVGs where we can control light/dark mode variants.
At a technical level: This is just an Astro component, which contains the SVG in the HTML, which is also what you get as an output when importing an SVG normally.
Here it is pretty useful to have an Astro component however, as it allows for additional logic within the SVG (example: the kind can be a developer or product manager).
|
ok so the stack recognizes merge conflicts. |
9bf0605 to
2e00c2d
Compare
|
This is really nice. Great work 👏 |
JimMadge
left a comment
There was a problem hiding this comment.
This does look really great.
I'm a bit worried about the maintainability of these Astro modules with embedded SVGs.
Is it possible to keep the logic and the images separate? Looks like it might be tricky where the SVGs are parameterised, like the Avatar
2e00c2d to
1a3ab21
Compare
1a3ab21 to
113b3b6
Compare
@JimMadge , what are you worried about specifically? Is it the module not being maintained, or portability to another platform? I think Felix came up with a clever accessibility pathway here to ensure illustrations are accessible in both dark and light mode. I think in the future, if we really needed to port these to graphics, we could, because they are SVG; we could just use a tool to turn them into something else. I support this change (unless I'm missing something)!! I wouldn't have thought of such a clever approach. SVGs are simple to read and modify in my experience. I'm approving this but do want to better understand concerns! |
lwasser
left a comment
There was a problem hiding this comment.
Another great pr @trueberryless thank you for being so thoughtful about accessibility!!
I agree. I wonder if the hesitation stems from the fact that GitHub shows the SVG code, but doesn't show other image types because they're binary. If you think of it as another image format, it doesn't feel much different from keeping |
e852135 to
044ea10
Compare
Thinking about editing SVGs, or adding new ones. Does the process involve moving the SVG HTML in and out of an Astro component, and parameterising the SVG? (How often are we likely to do that? Probably not very often) I was really wondering whether it is possible to wrap the SVGs with some CSS or filter so we can drop any SVG into the docs and have them automatically adapt to the light or dark theme. Actually, now that I think about it, if I tried to open one of the It looks like we've lost the SVGs from the head of the branch here. I didn't mean to push you to remove them @trueberryless 🙏. It is a definite improvement. |
|
Oh, I'm confused 😆. Looks like this has all been done in #1249 🚀 |
6df90ff to
6babbf6
Compare
6babbf6 to
57ecc11
Compare
🔗 Linked issue(s)
Part of #1205
🧭 Context
Modernize the screenshots, stacked on #1247.
📚 Description
Adds light and dark screenshots to the docs, shown via a new
ThemedImagecomponent that follows the site theme. Replaces the seven outdated images with six new ones, and adds screenshots to the first contributor, installation, permissions and contributing pages.The illustrations moved to their own PR to keep this one small.