-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
feat: poc generated image #10432
base: main
Are you sure you want to change the base?
feat: poc generated image #10432
Conversation
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the deploy preview of this PR
|
Size Change: -8.67 kB (-0.07%) Total Size: 11.6 MB
ℹ️ View Unchanged
|
I would prefer a more simplistic solution by default without the gradient background—what about just gray background and the initial letters? |
I find the grey variant better and sober, more in sync with our theme 👍 Maybe it could be interesting to add a small grey-only gradient? Also could you add:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks good enough to me, apart from a few details
packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/styles.module.css
Outdated
Show resolved
Hide resolved
packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/GeneratedImage/index.tsx
Outdated
Show resolved
Hide resolved
packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/GeneratedImage/index.tsx
Outdated
Show resolved
Hide resolved
packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/GeneratedImage/index.tsx
Outdated
Show resolved
Hide resolved
packages/docusaurus-theme-classic/src/theme/Blog/Components/Author/GeneratedImage/index.tsx
Outdated
Show resolved
Hide resolved
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Wonder what a blog post with inline authors with no image should look like. For example this case: IMHO it looks better after, but not sure it's what users expect us to do. I think we should keep the ability to display authors' names without avatars? In particular for single author blogs that don't care about avatar or author layout alignment. At least, if none of the authors have any avatar, maybe we shouldn't add the extra avatar because all users would have generated avatars? Or maybe this should be an opt-in theme option? What do you think @Josh-Cena @OzakIOne ? |
Personally, I don't like the way it looks when there are no images, so I'm in favor of enabling this by default however users may not want this. |
I'm ambivalent. I find the current no-avatar rendering quite ugly, but maybe it's better if there's a subtitle line. I also think the current one is a good default and users can always either swizzle or use CSS to provide something better. After all, everything about rendering is up to Docusaurus to decide. If you really want to, we can make this opt-in and then remove the option in v4. |
Motivation
Idea in #10427
Test Plan
Deploy
Test links
Deploy preview: https://deploy-preview-10432--docusaurus-2.netlify.app/tests/blog/authors