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 full-width image style layout to blog posts #206

Open
popovayoana opened this issue Jan 30, 2024 · 3 comments
Open

Add full-width image style layout to blog posts #206

popovayoana opened this issue Jan 30, 2024 · 3 comments
Assignees

Comments

@popovayoana
Copy link

Description

Our blog currently only supports centered images with large margins on both sides. This layout restriction leads to a less immersive visual experience. We want to enable full-width images in our blog posts (in addition to the current centered one). These images should stretch from edge to edge, without any padding, filling the entire width of the post container.

Details

Full-width style layout

  • Description: Images span the full width of the blog post container (only images, not body text)
  • Characteristics:
    • No padding around the main wrapper
    • Images extend edge-to-edge within the blog post container
    • Responsive design to ensure proper scaling across various devices

Consideration for Image height:

We need to determine an appropriate height limit for these full-width images to maintain aesthetic balance and ensure they don't dominate the screen space excessively. Potential options include setting a maximum height in pixels or a percentage of the viewport height.

Visual comparison

How it looks now

2024-01-30_19-27-49

How we want the additional layout to look like

full width image

@popovayoana
Copy link
Author

@Alex-Pavlyuk @alexmorev hey guys, can you have a look at that and estimate effort needed?

@alexmorev
Copy link
Member

@popovayoana OK. I'll do it.

@alexmorev alexmorev added in progress the work is in progress in testing labels Feb 13, 2024
@alexmorev
Copy link
Member

@popovayoana It's done. Please test.
NOTE. In order to use and display full-width images in articles you should use Post image insertion in the Blog Post admin menu. The maximum height of an image is restricted by 25% from a viewport height.

@Alex-Pavlyuk Alex-Pavlyuk removed the in progress the work is in progress label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants