-
Notifications
You must be signed in to change notification settings - Fork 684
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
Adding Book Cover in Tauri Docs #3159
Conversation
✅ Deploy Preview for tauri-v2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Ideally we would have done this a "BookPreview.astro" component and have the styles in the component <styles>
block, instead of having to inline. But it's ok for now
thanks for your work. You can remove the extra placeholders and leave only 1 book now.
- **HTML, CSS, JavaScript, and Rust for Beginners: A Guide to Application Development with Tauri** by James Alexander Rose | ||
- Paperback on Amazon: https://www.amazon.com/dp/B0DR6KZVVW | ||
- Free PDF version: [direct download](/assets/learn/community/HTML_CSS_JavaScript_and_Rust_for_Beginners_A_Guide_to_Application_Development_with_Tauri.pdf) (PDF 4MB) | ||
<div style={{ display: "flex", alignItems: "center", gap: "1.5rem", width: "100%" }}> |
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.
<div style={{ display: "flex", alignItems: "center", gap: "1.5rem", width: "100%" }}> | |
import { Image } from 'astro:assets'; | |
import RoseRustBookfrom '@assets/learn/community/HTML_CSS_JavaScript_and_Rust_for_Beginners_A_Guide_to_Application_Development_with_Tauri.png'; | |
<div style={{ display: "flex", alignItems: "center", gap: "1.5rem", width: "100%" }}> |
Astro image component, you'd have to move the image file back to /src/assets...
<img | ||
src="/assets/learn/community/HTML_CSS_JavaScript_and_Rust_for_Beginners_A_Guide_to_Application_Development_with_Tauri.png" | ||
alt="HTML, CSS, JavaScript, and Rust for Beginners Book Cover" | ||
style={{ width: "80px", height: "100%", objectFit: "cover" }} | ||
/> |
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.
<img | |
src="/assets/learn/community/HTML_CSS_JavaScript_and_Rust_for_Beginners_A_Guide_to_Application_Development_with_Tauri.png" | |
alt="HTML, CSS, JavaScript, and Rust for Beginners Book Cover" | |
style={{ width: "80px", height: "100%", objectFit: "cover" }} | |
/> | |
<Image style={{ height: "100%", objectFit: "cover" }} | |
/> src={RoseRustBook} alt="HTML, CSS, JavaScript, and Rust for Beginners Book Cover" /> |
using Astro image component. Removed the width, not sure it's needed.
style={{ width: "80px", height: "100%", objectFit: "cover" }} | ||
/> | ||
</div> | ||
<div style={{ display: "flex", flexDirection: "column", flex: "1", gap: "0.20rem" }}> |
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.
Description
Adding Book Covers for in Learn Section
Included
--> Transferred the book cover image {src => public}
--> Using Inline CSS modified the current layout
Before
After

If there are any issues, please let me know and thank you for your time.