Automattic / blockpatterns

Repo of block patterns to work with
7 stars 2 forks source link

Newsletter Signup with Video Background #285

Closed iamtakashi closed 1 year ago

iamtakashi commented 1 year ago

Imported from Lettre.

Screenshot: dotcompatterns wordpress com__p=7603 preview=true

<!-- wp:cover {"url":"https://dotcompatterns.files.wordpress.com/2022/10/car.mp4","id":7606,"dimRatio":50,"customOverlayColor":"#1e1e1e","backgroundType":"video","minHeight":100,"minHeightUnit":"vh","contentPosition":"center right","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"70px","right":"70px","bottom":"70px","left":"70px"}}}} -->
<div class="wp-block-cover alignfull is-light has-custom-content-position is-position-center-right" style="padding-top:70px;padding-right:70px;padding-bottom:70px;padding-left:70px;min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim" style="background-color:#1e1e1e"></span><video class="wp-block-cover__video-background intrinsic-ignore" autoplay muted loop playsinline src="https://dotcompatterns.files.wordpress.com/2022/10/car.mp4" data-object-fit="cover"></video><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"wideSize":"480px"}} -->
<div class="wp-block-group"><!-- wp:spacer {"height":"40px"} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:group {"style":{"spacing":{"blockGap":"30px"}},"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.2"}},"textColor":"white","fontSize":"x-large"} -->
<p class="has-white-color has-text-color has-x-large-font-size" style="line-height:1.2">Get our latest posts in your inbox.</p>
<!-- /wp:paragraph -->

<!-- wp:jetpack/subscriptions {"subscribePlaceholder":"Email Address","buttonWidth":"","submitButtonText":"\u003cstrong\u003eSubscribe\u003c/strong\u003e","buttonBackgroundColor":"white","customTextColor":"#1e1e1e","fontSize":"1.3rem","customFontSize":"1.3rem","borderRadius":50,"borderWeight":2,"borderColor":"white","padding":20,"className":"is-style-compact"} -->
<div class="wp-block-jetpack-subscriptions wp-block-jetpack-subscriptions__supports-newline is-style-compact">[jetpack_subscription_form subscribe_placeholder="Email Address" show_subscribers_total="false" button_on_newline="false" submit_button_text="&lt;strong&gt;Subscribe&lt;/strong&gt;" custom_text_button_color="#1e1e1e" custom_font_size="1.3rem" custom_border_radius="50" custom_border_weight="2" custom_padding="20" custom_spacing="10" submit_button_classes="has-1-3-rem-font-size has-white-border-color has-background has-white-background-color" email_field_classes="has-1-3-rem-font-size has-white-border-color" show_only_email_and_button="true" success_message="Success! An email was just sent to confirm your subscription. Please find the email now and click &#039;Confirm Follow&#039; to start subscribing."]</div>
<!-- /wp:jetpack/subscriptions --></div>
<!-- /wp:group -->

<!-- wp:spacer {"height":"40px"} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover -->

Preview: https://dotcompatterns.wordpress.com/?p=7603&preview=true

cc: @alaczek @onuro

alaczek commented 1 year ago

This one needs tweaks on mobile:

image
iamtakashi commented 1 year ago

I removed the extra padding inside the cover block before I published it.