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

Archeo: Add Image with headline on dark background pattern #5474

Merged
merged 8 commits into from
Feb 8, 2022

Conversation

mikachan
Copy link
Member

@mikachan mikachan commented Feb 8, 2022

Changes proposed in this Pull Request:

This adds the 'Image with headline on dark background' to Archeo.

image

Related issue(s):

#5429

@mikachan mikachan added the [Theme] Archeo Automatically generated label for Archeo. label Feb 8, 2022
@mikachan mikachan added this to the Archeo milestone Feb 8, 2022
@mikachan mikachan self-assigned this Feb 8, 2022
@mikachan mikachan mentioned this pull request Feb 8, 2022
9 tasks
@mikachan mikachan requested review from kjellr, beafialho and a team February 8, 2022 12:39
<!-- wp:group {"style":{"spacing":{"padding":{"top":"clamp(30px, 4vw, 80px)","right":"clamp(30px, 4vw, 80px)","bottom":"clamp(30px, 4vw, 80px)","left":"clamp(30px, 4vw, 80px)"}}}} -->
<div class="wp-block-group" style="padding-top:clamp(30px, 4vw, 80px);padding-right:clamp(30px, 4vw, 80px);padding-bottom:clamp(30px, 4vw, 80px);padding-left:clamp(30px, 4vw, 80px)">
<!-- wp:paragraph {"placeholder":"Content…","style":{"typography":{"fontStyle":"italic","fontWeight":"300","lineHeight":"1.5"}},"fontSize":"large"} -->
<p class="has-large-font-size" style="font-style:italic;font-weight:300;line-height:1.5">' . wp_kses_post( __( 'Figure gigantesque, <br>à Izamal; au bas de la seconde pyramide', 'archeo' ) ) . '</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to do anything different given that this isn't in English? Should it even be translated? @Automattic/i18n

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The translators expect English text in originals, so it'd be a problem to get it translated. On the other hand, leaving it untranslated would mean that non-English users would see the same French text in any language.
Would it be possible to use an English original here instead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally think it's fine to keep this in the original language. It's just a placeholder anyway.

<div class="wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile has-background-color has-foreground-background-color has-text-color has-background"><figure class="wp-block-media-text__media"><img src="' . esc_url( get_template_directory_uri() ) . '/assets/images/figure-gigantesque.jpg" alt="Photo of gigantic figure at Izamal" class="size-full"/></figure><div class="wp-block-media-text__content">
<!-- wp:group {"style":{"spacing":{"padding":{"top":"clamp(30px, 4vw, 80px)","right":"clamp(30px, 4vw, 80px)","bottom":"clamp(30px, 4vw, 80px)","left":"clamp(30px, 4vw, 80px)"}}}} -->
<div class="wp-block-group" style="padding-top:clamp(30px, 4vw, 80px);padding-right:clamp(30px, 4vw, 80px);padding-bottom:clamp(30px, 4vw, 80px);padding-left:clamp(30px, 4vw, 80px)">
<!-- wp:paragraph {"placeholder":"Content…","style":{"typography":{"fontStyle":"italic","fontWeight":"300","lineHeight":"1.5"}},"fontSize":"large"} -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change the line height to 1.4 instead? It's looking a little too spaced out for my liking. I've updated the comps just now to use that value.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@kjellr
Copy link
Contributor

kjellr commented Feb 8, 2022

I'm getting an error for this one:
Screen Shot 2022-02-08 at 8 49 41 AM

@scruffian
Copy link
Member

I'm getting an error for this one:
Fixed!

@kjellr
Copy link
Contributor

kjellr commented Feb 8, 2022

This looks good for now! This might just be some weirdness in my test environment, but I can't change the font size:

recording

🤔 Other than that, this is good to go.

@mikachan
Copy link
Member Author

mikachan commented Feb 8, 2022

Great, thanks!

I think I've fixed the font size issue by updating the line height in the block markup. I could see it not working too, and this seemed to fix it on my side.

@scruffian scruffian merged commit 7348c7b into trunk Feb 8, 2022
@scruffian scruffian deleted the add/archeo-pattern-7 branch February 8, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Theme] Archeo Automatically generated label for Archeo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants