Add Lettre (#6792)

* Add Lettre

* Move patterns out of inc

* Remove unused font face

* Remove index.php

* Remove alignment CSS

* Update newsletter bold

* Update hidden subscription form

* Update about single

* Update categories

* Update about multiple

* Update hidden 404

* Add missing echos

* Update hidden footer

* Update patterns

* Update remaining patterns

* Remove image ids

* Add footer to 404 template

* Use global padding

* Fix typo!

* Update all subscribe block markup

* Remove blank template

* Remove reference to .com

* Move CSS to theme.json

* Add Newsreader font

* Manual version bump

* Remove page title

* Add temp fix for Jetpack issue

* Update min version

* Remove archive search content

* Add search template

* Remove content from search block

* Remove buttonText attribute

* Fix media and text pattern

* Remove link hover CSS

* Fix button padding

* Remove Jetpack CSS fix

* Add Jetpack fix back

Needed until Jetpack 11.7 is released

* Update opacity GB issue link

* Add container element to index; remove search template

* Enable root padding

* Remove top and bottom global padding

* Add core/button styles back

* Add load_theme_textdomain

* Change tested up to versions to 6.1

* Exclude editor from Jetpack fix

The fix doesn't need to be applied in the editor, only on the front end

* Remove stable tag

* Update readme and style.css

* Fix echo typos

* Version bump
This commit is contained in:
Sarah Norris 2023-01-04 15:59:46 +00:00 committed by GitHub
parent d9af28108d
commit f2d6a5f7a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 12696 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 B

64
lettre/functions.php Normal file
View file

@ -0,0 +1,64 @@
<?php
/**
* Lettre functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Lettre
* @since Lettre 1.0
*/
if ( ! function_exists( 'lettre_support' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Lettre 1.0
*
* @return void
*/
function lettre_support() {
// Make theme available for translation.
load_theme_textdomain( 'lettre' );
// Add support for block styles.
add_theme_support( 'wp-block-styles' );
// Enqueue editor styles.
add_editor_style( 'style.css' );
}
endif;
add_action( 'after_setup_theme', 'lettre_support' );
if ( ! function_exists( 'lettre_styles' ) ) :
/**
* Enqueue styles.
*
* @since Lettre 1.0
*
* @return void
*/
function lettre_styles() {
// Register theme stylesheet.
wp_register_style(
'lettre-style',
get_template_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);
// Enqueue theme stylesheet.
wp_enqueue_style( 'lettre-style' );
}
endif;
add_action( 'wp_enqueue_scripts', 'lettre_styles' );

1
lettre/parts/footer.html Normal file
View file

@ -0,0 +1 @@
<!-- wp:pattern {"slug":"lettre/hidden-footer"} /-->

View file

@ -0,0 +1,13 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--outer)"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--custom--spacing--outer)">
<!-- wp:group {"align":"full","layout":{"type":"flex","justifyContent":"space-between"}} -->
<div class="wp-block-group alignfull"><!-- wp:site-title {"style":{"typography":{"fontStyle":"normal","fontWeight":"700"}}} /-->
<!-- wp:navigation {"overlayMenu":"always","overlayBackgroundColor":"background","overlayTextColor":"foreground","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"},"style":{"typography":{"fontStyle":"normal"}},"fontSize":"x-large"} /--></div>
<!-- /wp:group -->
<!-- wp:spacer {"height":"200px"} -->
<div style="height:200px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
</div>
<!-- /wp:group -->

7
lettre/parts/header.html Normal file
View file

@ -0,0 +1,7 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var(--wp--custom--spacing--outer)"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--custom--spacing--outer)">
<!-- wp:group {"align":"full","layout":{"type":"flex","justifyContent":"right"}} -->
<div class="wp-block-group alignfull"><!-- wp:navigation {"overlayMenu":"always","overlayBackgroundColor":"background","overlayTextColor":"foreground","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"},"style":{"typography":{"fontStyle":"normal"}},"fontSize":"x-large"} /--></div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

View file

@ -0,0 +1,49 @@
<?php
/**
* Title: About the authors
* Slug: lettre/about-multiple
* Categories: featured, about
*/
?>
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":"60px"}}} -->
<div class="wp-block-columns alignwide"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":"30px"}}} -->
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"100px"} -->
<div class="wp-block-column" style="flex-basis:100px"><!-- wp:image {"sizeSlug":"full","linkDestination":"none","className":"is-style-rounded"} -->
<figure class="wp-block-image size-full is-style-rounded"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/gray-square.png" alt="<?php echo esc_attr__( 'A generic profile picture.', 'lettre' ); ?>"/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"style":{"spacing":{"margin":{"bottom":"0px","top":"0px"}}},"fontSize":"large"} -->
<h2 class="has-large-font-size" style="margin-top:0px;margin-bottom:0px"><?php echo esc_html__( 'Manuel de Carlo', 'lettre' ); ?></h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size"><?php echo esc_html__( 'Hello! Im the author of this newsletter. Im a professor of literature at the University of Culture, in Brazil.', 'lettre' ); ?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":"30px"}}} -->
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"100px"} -->
<div class="wp-block-column" style="flex-basis:100px"><!-- wp:image {"sizeSlug":"full","linkDestination":"none","className":"is-style-rounded"} -->
<figure class="wp-block-image size-full is-style-rounded"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/blue-square.png" alt="<?php echo esc_attr__( 'A generic profile picture.', 'lettre' ); ?>"/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:heading {"style":{"spacing":{"margin":{"bottom":"0px","top":"0px"}}},"fontSize":"large"} -->
<h2 class="has-large-font-size" style="margin-top:0px;margin-bottom:0px"><?php echo esc_html__( 'Jennifer Rosa', 'lettre' ); ?></h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size"><?php echo esc_html__( 'Im an author and illustrator with a love for clasics. Youll usually find me at a coffee shop, with my nose in a book.', 'lettre' ); ?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->'

View file

@ -0,0 +1,25 @@
<?php
/**
* Title: About the author
* Slug: lettre/about-single
* Categories: featured, about
*/
?>
<!-- wp:columns {"verticalAlignment":"center","style":{"spacing":{"blockGap":"30px"}}} -->
<div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center","width":"120px"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:120px"><!-- wp:image {"sizeSlug":"full","linkDestination":"none","className":"is-style-rounded"} -->
<figure class="wp-block-image size-full is-style-rounded"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/gray-square.png" alt="<?php echo esc_attr__( 'A generic profile picture.', 'lettre' ); ?>"/></figure>
<!-- /wp:image --></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center","width":"66.66%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:66.66%"><!-- wp:heading {"style":{"spacing":{"margin":{"bottom":"0px","top":"0px"}}},"fontSize":"large"} -->
<h2 class="has-large-font-size" style="margin-top:0px;margin-bottom:0px"><?php echo esc_html__( 'Manuel de Carlo', 'lettre' ); ?></h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size"><?php echo esc_html__( 'Hello! Im the author of this newsletter. Im a professor of literature at the University of Culture, in Brazil.', 'lettre' ); ?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->'

View file

@ -0,0 +1,13 @@
<?php
/**
* Title: Category buttons
* Slug: lettre/categories
* Categories: featured
*/
?>
<!-- wp:paragraph {"fontSize":"small","style":{"typography":{"textTransform":"uppercase"}}} -->
<p class="has-small-font-size" style="text-transform:uppercase"><?php echo esc_html__( 'Categories', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:tag-cloud {"taxonomy":"category","className":"is-style-outline"} /-->

View file

@ -0,0 +1,16 @@
<?php
/**
* Title: 404 content
* Slug: lettre/hidden-404
* Inserter: no
*/
?>
<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:heading {"style":{"typography":{"fontWeight":"700","lineHeight":"1","fontStyle":"normal"}},"className":"has-text-align-center","fontSize":"large"} -->
<h2 class="has-text-align-center has-large-font-size" style="font-style:normal;font-weight:700;line-height:1"><?php echo esc_html__( 'This page could not be found.', 'lettre'); ?></h2><!-- /wp:heading -->
<!-- wp:paragraph {"align":"center","fontSize":"small"} -->
<p class="has-text-align-center has-small-font-size"><?php echo esc_html__( ' Maybe try a search?', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:search {"label":"<?php echo esc_html__( 'Search', 'lettre' ); ?>","showLabel":false,"width":100,"widthUnit":"%","buttonText":"<?php echo esc_html__( 'Search', 'lettre' ); ?>","align":"center","style":{"border":{"radius":"100px"}},"borderColor":"primary","backgroundColor":"primary"} /--></div>
<!-- /wp:group -->

View file

@ -0,0 +1,32 @@
<?php
/**
* Title: Footer
* Slug: lettre/hidden-footer
* Inserter: no
*/
?>
<!-- wp:group {"style":{"spacing":{"padding":{"top":"58px","bottom":"58px"}}},"layout":{"contentSize":"500px"}} -->
<div class="wp-block-group" style="padding-top:58px;padding-bottom:58px;"><!-- wp:pattern {"slug":"lettre/hidden-subscription-form"} /--></div>
<!-- /wp:group -->
<!-- wp:spacer {"height":"170px"} -->
<div style="height:170px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--outer)"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="padding-bottom:var(--wp--custom--spacing--outer)"><!-- wp:group {"align":"full","layout":{"type":"flex","allowOrientation":false,"justifyContent":"space-between"}} -->
<div class="wp-block-group alignfull"><!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size">
<?php
echo sprintf(
esc_html__( 'A %s newsletter', 'lettre' ),
'<a href="' . esc_url( __( 'https://wordpress.org', 'lettre' ) ) . '" rel="nofollow">WordPress</a>'
);
?>
</p>
<!-- /wp:paragraph -->
<!-- wp:site-title {"style":{"spacing":{"padding":{"top":"20px","bottom":"20px"}}},"fontSize":"small"} /--></div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

View file

@ -0,0 +1,11 @@
<?php
/**
* Title: Subscription form
* Slug: lettre/hidden-subscription-form
* Inserter: no
*/
?>
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/subscriptions {"buttonBackgroundColor":"primary","textColor":"secondary","fontSize":"0.9rem","customFontSize":"16px","borderRadius":50,"borderColor":"primary","className":"is-style-compact"} /--></div>
<!-- /wp:group -->

View file

@ -0,0 +1,19 @@
<?php
/**
* Title: Bold newsletter signup
* Slug: lettre/newsletter-bold
* Categories: featured, newsletter
*/
?>
<!-- wp:cover {"customOverlayColor":"#cdffe8","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"2em","right":"2em","bottom":"2em","left":"2em"}}}} -->
<div class="wp-block-cover alignfull is-light" style="padding-top:2em;padding-right:2em;padding-bottom:2em;padding-left:2em"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim" style="background-color:#cdffe8"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}},"layout":{"inherit":false}} -->
<div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><!-- wp:group {"style":{"spacing":{"padding":{"bottom":"1.5em"}}}} -->
<div class="wp-block-group" style="padding-bottom:1.5em"><!-- wp:paragraph {"align":"left","style":{"typography":{"fontSize":"max(48px, 10vw)","lineHeight":"1"}},"textColor":"foreground"} -->
<p class="has-text-align-left has-foreground-color has-text-color" style="font-size:max(48px, 10vw);line-height:1"><strong><?php echo esc_html__( 'Sign up for updates', 'lettre' ); ?></strong></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:jetpack/subscriptions {"subscribePlaceholder":"<?php echo esc_html__( 'Email Address', 'lettre' ); ?>","buttonOnNewLine":true,"buttonWidth":"100%","submitButtonText":"<?php echo esc_html__( 'Subscribe', 'lettre' ); ?>","buttonBackgroundColor":"foreground","textColor":"secondary","fontSize":"50px","customFontSize":"50px","borderRadius":0,"borderWeight":8,"borderColor":"foreground","padding":40,"spacing":40,"className":"is-style-split"} /--></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover -->

View file

@ -0,0 +1,25 @@
<?php
/**
* Title: Two-column newsletter signup
* Slug: lettre/newsletter-columns
* Categories: featured, newsletter
*/
?>
<!-- wp:cover {"customOverlayColor":"#ff513d","contentPosition":"center left","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}}}} -->
<div class="wp-block-cover alignfull is-light has-custom-content-position is-position-center-left" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim" style="background-color:#ff513d"></span><div class="wp-block-cover__inner-container"><!-- wp:columns {"align":"full"} -->
<div class="wp-block-columns alignfull"><!-- wp:column {"width":"60%"} -->
<div class="wp-block-column" style="flex-basis:60%"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase"}},"textColor":"black","fontSize":"x-large"} -->
<p class="has-black-color has-text-color has-x-large-font-size" style="text-transform:uppercase"><?php echo esc_html__( 'Dont miss an update', 'lettre' ); ?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:column -->
<!-- wp:column {"width":"40%"} -->
<div class="wp-block-column" style="flex-basis:40%"><!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.2"}},"fontSize":"x-large"} -->
<p class="has-x-large-font-size" style="line-height:1.2"><?php echo esc_html__( 'Enter your email and hit the subscribe button to receive our latest stories in your inbox.', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:jetpack/subscriptions {"buttonOnNewLine":true,"buttonWidth":"100%","buttonBackgroundColor":"black","customTextColor":"#ff513d","fontSize":"1.75rem","customFontSize":"1.75rem","borderRadius":50,"borderWeight":2,"borderColor":"black","padding":16,"align":"wide","className":"is-style-split"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div></div>
<!-- /wp:cover -->

View file

@ -0,0 +1,27 @@
<?php
/**
* Title: Newsletter signup with fixed background image
* Slug: lettre/newsletter-fixed-cover
* Categories: featured, newsletter
*/
?>
<!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/book.jpg","hasParallax":true,"dimRatio":30,"overlayColor":"secondary","minHeight":100,"minHeightUnit":"vh","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"120px","right":"120px","bottom":"120px","left":"120px"}}}} -->
<div class="wp-block-cover alignfull is-light has-parallax" style="padding-top:120px;padding-right:120px;padding-bottom:120px;padding-left:120px;background-image:url(<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/book.jpg);min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-secondary-background-color has-background-dim-30 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"spacing":{"blockGap":"30px","padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}},"textColor":"secondary","fontSize":"medium"} -->
<div class="wp-block-group has-secondary-color has-text-color has-medium-font-size" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","style":{"color":{"duotone":["#333","#CCC"],"text":"#df0522"},"typography":{"lineHeight":1}},"fontSize":"xx-large"} -->
<p class="has-text-align-center has-text-color has-xx-large-font-size" style="color:#df0522;line-height:1"><?php echo esc_html__( 'You dont wanna miss it.', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"center","style":{"color":{"text":"#f30800"}}} -->
<p class="has-text-align-center has-text-color" style="color:#f30800"><?php echo esc_html__( 'Get the latest articles in your inbox.', 'lettre' ); ?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:spacer {"height":"90px"} -->
<div style="height:90px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:group {"layout":{"inherit":false,"wideSize":"480px"}} -->
<div class="wp-block-group"><!-- wp:jetpack/subscriptions {"customButtonBackgroundColor":"#df0522","textColor":"secondary","fontSize":"1.3rem","customFontSize":"1.3rem","borderRadius":50,"borderWeight":5,"customBorderColor":"#df0522","padding":18,"spacing":15,"className":"is-style-compact"} /--></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover -->

View file

@ -0,0 +1,27 @@
<?php
/**
* Title: In-post newsletter signup
* Slug: lettre/newsletter-in-post
* Categories: featured, newsletter
*/
?>
<!-- wp:separator {"color":"tertiary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-tertiary-background-color has-tertiary-color is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:spacer {"height":"5px"} -->
<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:paragraph {"align":"center","fontSize":"small"} -->
<p class="has-text-align-center has-small-font-size"><?php echo esc_html__( 'Subscribe for more posts like this', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:jetpack/subscriptions {"buttonBackgroundColor":"primary","textColor":"secondary","borderRadius":50,"borderColor":"primary","className":"is-style-compact"} /-->
<!-- wp:spacer {"height":"5px"} -->
<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:separator {"color":"tertiary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-tertiary-background-color has-tertiary-color is-style-wide"/>
<!-- /wp:separator -->

View file

@ -0,0 +1,29 @@
<?php
/**
* Title: Newsletter intro with dark background image
* Slug: lettre/newsletter-into-dark-background
* Categories: featured, newsletter
*/
?>
<!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/envelopes.jpg","dimRatio":70,"overlayColor":"foreground","minHeight":90,"minHeightUnit":"vh","align":"full"} -->
<div class="wp-block-cover alignfull" style="min-height:90vh"><span aria-hidden="true" class="wp-block-cover__background has-foreground-background-color has-background-dim-70 has-background-dim"></span><img class="wp-block-cover__image-background" alt="<?php echo esc_attr__( 'A photograph of vintage envelopes.', 'lettre' ); ?>" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/envelopes.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"elements":{"link":{"color":{"text":"var:preset|color|secondary"}}}},"textColor":"secondary","className":"has-secondary-color has-text-color has-link-color","layout":{"wideSize":"360px"}} -->
<div class="wp-block-group has-secondary-color has-text-color has-link-color"><!-- wp:site-logo {"width":120,"shouldSyncIcon":true,"align":"center","className":"is-style-rounded"} /-->
<!-- wp:site-title {"textAlign":"center","style":{"typography":{"fontStyle":"normal","fontWeight":"700","lineHeight":"1.3"}},"fontSize":"x-large"} /-->
<!-- wp:group {"style":{"spacing":{"blockGap":"40px"}}} -->
<div class="wp-block-group"><!-- wp:site-tagline {"textAlign":"center","fontSize":"small"} /-->
<!-- wp:jetpack/subscriptions {"buttonBackgroundColor":"background","textColor":"foreground","borderRadius":50,"borderColor":"secondary","className":"is-style-compact"} /--></div>
<!-- /wp:group -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:paragraph {"align":"center","fontSize":"small"} -->
<p class="has-text-align-center has-small-font-size"><a href="#posts"><?php echo esc_html__( 'Read all posts', 'lettre' ); ?> ↓</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover -->

View file

@ -0,0 +1,29 @@
<?php
/**
* Title: Newsletter intro with light background image
* Slug: lettre/newsletter-into-light-background
* Categories: featured, newsletter
*/
?>
<!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/envelope.jpg","dimRatio":50,"overlayColor":"secondary","minHeight":90,"minHeightUnit":"vh","isDark":false,"align":"full"} -->
<div class="wp-block-cover alignfull is-light" style="min-height:90vh"><span aria-hidden="true" class="wp-block-cover__background has-secondary-background-color has-background-dim"></span><img class="wp-block-cover__image-background" alt="<?php echo esc_attr__( 'A photograph of an envelope.', 'lettre' ); ?>" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/envelope.jpg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"contentSize":"360px"}} -->
<div class="wp-block-group"><!-- wp:site-logo {"width":120,"shouldSyncIcon":true,"align":"center","className":"is-style-rounded"} /-->
<!-- wp:site-title {"textAlign":"center","style":{"typography":{"fontStyle":"normal","fontWeight":"700","lineHeight":"1.3"}},"fontSize":"x-large"} /-->
<!-- wp:group {"style":{"spacing":{"blockGap":"40px"}}} -->
<div class="wp-block-group"><!-- wp:site-tagline {"textAlign":"center","fontSize":"small"} /-->
<!-- wp:jetpack/subscriptions {"buttonBackgroundColor":"primary","textColor":"secondary","borderRadius":50,"borderColor":"primary","className":"is-style-compact"} /--></div>
<!-- /wp:group -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:paragraph {"align":"center","fontSize":"small"} -->
<p class="has-text-align-center has-small-font-size"><a href="#posts"><?php echo esc_html__( 'Read all posts', 'lettre' ); ?> ↓</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover -->

View file

@ -0,0 +1,29 @@
<?php
/**
* Title: Newsletter intro
* Slug: lettre/newsletter-intro
* Categories: featured, newsletter
*/
?>
<!-- wp:cover {"overlayColor":"secondary","minHeight":90,"minHeightUnit":"vh","isDark":false,"align":"full"} -->
<div class="wp-block-cover is-light alignfull" style="min-height:90vh"><span aria-hidden="true" class="wp-block-cover__background has-secondary-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"contentSize":"360px"}} -->
<div class="wp-block-group"><!-- wp:site-logo {"width":120,"shouldSyncIcon":true,"align":"center","className":"is-style-rounded"} /-->
<!-- wp:site-title {"textAlign":"center","style":{"typography":{"fontStyle":"normal","fontWeight":"700","lineHeight":"1.3"}},"fontSize":"x-large"} /-->
<!-- wp:group {"style":{"spacing":{"blockGap":"40px"}}} -->
<div class="wp-block-group"><!-- wp:site-tagline {"textAlign":"center","fontSize":"small"} /-->
<!-- wp:jetpack/subscriptions {"buttonBackgroundColor":"primary","textColor":"secondary","borderRadius":50,"borderColor":"primary","className":"is-style-compact"} /--></div>
<!-- /wp:group -->
<!-- wp:spacer -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:paragraph {"align":"center","fontSize":"small"} -->
<p class="has-text-align-center has-small-font-size"><a href="#posts"><?php echo esc_html__( 'Read all posts', 'lettre' ); ?> ↓</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover -->

View file

@ -0,0 +1,9 @@
<?php
/**
* Title: Large newsletter signup
* Slug: lettre/newsletter-large
* Categories: featured, newsletter
*/
?>
<!-- wp:jetpack/subscriptions {"buttonBackgroundColor":"foreground","textColor":"secondary","fontSize":"1.125rem","customFontSize":"1.125rem","borderRadius":0,"borderWeight":10,"borderColor":"foreground","className":"is-style-compact"} /-->

View file

@ -0,0 +1,25 @@
<?php
/**
* Title: Newsletter signup with media on the left
* Slug: lettre/newsletter-media-text
* Categories: featured, newsletter
*/
?>
<!-- wp:media-text {"align":"full","mediaType":"image","mediaWidth":42,"verticalAlignment":"center","style":{"color":{"background":"#ffe030"}}} -->
<div class="wp-block-media-text alignfull is-stacked-on-mobile is-vertically-aligned-center has-background" style="background-color:#ffe030;grid-template-columns:42% auto"><figure class="wp-block-media-text__media"><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/flowers-vase.jpg" alt="<?php echo esc_attr__( 'Illustration of flowers in a vase.', 'lettre' ); ?>"/></figure><div class="wp-block-media-text__content"><!-- wp:group {"style":{"spacing":{"blockGap":"0px"}}} -->
<div class="wp-block-group"><!-- wp:spacer {"height":"60px"} -->
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:paragraph {"textColor":"black","fontSize":"large"} -->
<p class="has-black-color has-text-color has-large-font-size"><?php echo esc_html__( 'Subscribe to our newsletter to get the latest stories in your inbox.', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"40px"} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div>
<!-- /wp:group -->
<!-- wp:jetpack/subscriptions {"buttonOnNewLine":true,"buttonWidth":"100%","submitButtonText":"<?php echo esc_html__( 'Subscribe', 'lettre' ); ?>","buttonBackgroundColor":"black","customTextColor":"#ffe030","fontSize":"1.75rem","customFontSize":"1.75rem","borderRadius":50,"borderWeight":1,"borderColor":"black","padding":24,"spacing":15,"className":"is-style-split"} /--></div></div>
<!-- /wp:media-text -->

View file

@ -0,0 +1,217 @@
<?php
/**
* Title: Newsletter signup with lots of site logos
* Slug: lettre/newsletter-site-logos
* Categories: featured, newsletter
*/
?>
<!-- wp:cover {"overlayColor":"white","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"5%","right":"5%","bottom":"5%","left":"5%"}}}} -->
<div class="wp-block-cover alignfull is-light" style="padding-top:5%;padding-right:5%;padding-bottom:5%;padding-left:5%"><span aria-hidden="true" class="wp-block-cover__background has-white-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:columns {"verticalAlignment":"center","isStackedOnMobile":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->
<div class="wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:columns {"verticalAlignment":"center","isStackedOnMobile":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->
<div class="wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:columns {"verticalAlignment":"center"} -->
<div class="wp-block-columns are-vertically-aligned-center"><!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:columns {"verticalAlignment":"center","isStackedOnMobile":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->
<div class="wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:jetpack/subscriptions {"buttonBackgroundColor":"foreground","textColor":"secondary","borderRadius":50,"borderWeight":2,"borderColor":"foreground","className":"is-style-compact"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:columns {"verticalAlignment":"center","isStackedOnMobile":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->
<div class="wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:columns {"verticalAlignment":"center","isStackedOnMobile":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->
<div class="wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:columns {"style":{"spacing":{"margin":{"bottom":"0px"}}}} -->
<div class="wp-block-columns" style="margin-bottom:0px"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:columns {"verticalAlignment":"center","isStackedOnMobile":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->
<div class="wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column"><!-- wp:columns {"verticalAlignment":"center","isStackedOnMobile":false,"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} -->
<div class="wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile" style="margin-top:0px;margin-bottom:0px"><!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center"} -->
<div class="wp-block-column is-vertically-aligned-center"><!-- wp:site-logo {"width":64,"isLink":false,"align":"center","className":"is-style-rounded"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div></div>
<!-- /wp:cover -->

View file

@ -0,0 +1,22 @@
<?php
/**
* Title: Newsletter signup with video background
* Slug: lettre/newsletter-video
* Categories: featured, newsletter
*/
?>
<!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/car.mp4","dimRatio":50,"overlayColor":"foreground","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-foreground-background-color has-background-dim"></span><video class="wp-block-cover__video-background intrinsic-ignore" autoplay muted loop playsinline src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/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":"secondary","fontSize":"x-large"} -->
<p class="has-secondary-color has-text-color has-x-large-font-size" style="line-height:1.2"><?php echo esc_html__( 'Get our latest posts in your inbox.', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:jetpack/subscriptions {"subscribePlaceholder":"<?php echo esc_html__( 'Email Address', 'lettre' ); ?>","buttonWidth":"","submitButtonText":"<?php echo esc_html__( 'Subscribe', 'lettre' ); ?>","buttonBackgroundColor":"secondary","textColor":"foreground","fontSize":"1.3rem","customFontSize":"1.3rem","borderRadius":50,"borderWeight":2,"borderColor":"secondary","padding":20,"className":"is-style-compact"} /--></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 -->

View file

@ -0,0 +1,45 @@
<?php
/**
* Title: List of posts
* Slug: lettre/query-posts
* Categories: featured, query
*/
?>
<!-- wp:query {"query":{"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"perPage":3},"displayLayout":{"type":"list"},"align":"wide"} -->
<div class="wp-block-query alignwide"><!-- wp:post-template -->
<!-- wp:separator {"color":"tertiary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-tertiary-background-color has-tertiary-color is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:cover {"customOverlayColor":"rgba(0,0,0,0)","minHeight":178,"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-cover" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;min-height:178px"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-100 has-background-dim" style="background-color:rgba(0,0,0,0)"></span><div class="wp-block-cover__inner-container"><!-- wp:columns {"verticalAlignment":"center","align":"wide","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"var( --wp--style--block-gap )","bottom":"0.5em"}},"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"textColor":"foreground"} -->
<div class="wp-block-columns alignwide are-vertically-aligned-center has-foreground-color has-text-color has-link-color" style="margin-top:var( --wp--style--block-gap );margin-bottom:0.5em;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:column {"verticalAlignment":"center","width":"10%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:10%"><!-- wp:post-date {"format":"M n","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"small"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center","width":"70%","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;flex-basis:70%"><!-- wp:post-title {"textAlign":"left","isLink":true,"style":{"typography":{"lineHeight":"1.1","fontSize":"xx-large","fontStyle":"normal","fontWeight":"700"},"spacing":{"margin":{"top":"0px","bottom":"0px"}}}} /--></div>
<!-- /wp:column -->
<!-- wp:column {"width":"144px"} -->
<div class="wp-block-column" style="flex-basis:144px"><!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"144px","style":{"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div></div>
<!-- /wp:cover -->
<!-- /wp:post-template -->
<!-- wp:separator {"color":"tertiary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-tertiary-background-color has-tertiary-color is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:spacer {"height":"5px"} -->
<div style="height:5px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous {"fontSize":"small"} /-->
<!-- wp:query-pagination-next {"fontSize":"small"} /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:query -->

View file

@ -0,0 +1,37 @@
<?php
/**
* Title: In-post article promo
* Slug: lettre/query-related-post
* Categories: featured, query
*/
?>
<!-- wp:paragraph {"fontSize":"small","style":{"typography":{"textTransform":"uppercase"}}} -->
<p class="has-small-font-size" style="text-transform:uppercase"><?php echo esc_html__( 'Related post', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:query {"query":{"pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"perPage":"1"},"displayLayout":{"type":"list"}} -->
<div class="wp-block-query"><!-- wp:post-template -->
<!-- wp:separator {"color":"tertiary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-tertiary-background-color has-tertiary-color is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:cover {"overlayColor":"secondary","minHeight":124,"isDark":false,"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-cover is-light" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;min-height:124px"><span aria-hidden="true" class="wp-block-cover__background has-secondary-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:columns {"verticalAlignment":"center","align":"wide","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"calc(var( --wp--style--block-gap ) - 0.25em)","bottom":"0.25em"}}}} -->
<div class="wp-block-columns alignwide are-vertically-aligned-center" style="margin-top:calc(var( --wp--style--block-gap ) - 0.25em);margin-bottom:0.25em;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:column {"verticalAlignment":"center","width":"","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:post-title {"textAlign":"left","isLink":true,"style":{"typography":{"lineHeight":"1.1","fontStyle":"normal","fontWeight":"700"},"color":{"text":"#ffffff","link":"#ffffff"},"spacing":{"margin":{"top":"0px","bottom":"0.5rem"}}},"fontSize":"large"} /-->
<!-- wp:post-date {"format":"M n","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"small"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"width":"100px"} -->
<div class="wp-block-column" style="flex-basis:100px"><!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"100px","style":{"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div></div>
<!-- /wp:cover -->
<!-- /wp:post-template -->
<!-- wp:separator {"color":"tertiary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-tertiary-background-color has-tertiary-color is-style-wide"/>
<!-- /wp:separator --></div>
<!-- /wp:query -->

View file

@ -0,0 +1,57 @@
<?php
/**
* Title: List of posts with sidebar
* Slug: lettre/query-related-post
* Categories: featured, query, columns
*/
?>
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":"60px"}}} -->
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"70%"} -->
<div class="wp-block-column" style="flex-basis:70%"><!-- wp:query {"query":{"pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"perPage":"5"},"displayLayout":{"type":"list"}} -->
<div class="wp-block-query"><!-- wp:post-template -->
<!-- wp:separator {"color":"tertiary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-tertiary-background-color has-tertiary-color is-style-wide"/>
<!-- /wp:separator -->
<!-- wp:cover {"overlayColor":"secondary","minHeight":124,"isDark":false,"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-cover is-light" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;min-height:124px"><span aria-hidden="true" class="wp-block-cover__background has-secondary-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:columns {"verticalAlignment":"center","align":"wide","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"calc(var( \u002d\u002dwp\u002d\u002dstyle\u002d\u002dblock-gap ) - 0.25em)","bottom":"0.25em"}}}} -->
<div class="wp-block-columns alignwide are-vertically-aligned-center" style="margin-top:calc(var( --wp--style--block-gap ) - 0.25em);margin-bottom:0.25em;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:column {"verticalAlignment":"center","width":"","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:post-title {"textAlign":"left","isLink":true,"style":{"typography":{"lineHeight":"1.1","fontStyle":"normal","fontWeight":"700"},"color":{"text":"#ffffff","link":"#ffffff"},"spacing":{"margin":{"top":"0px","bottom":"0.5rem"}}},"fontSize":"large"} /-->
<!-- wp:post-date {"format":"M n","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"small"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"width":"100px"} -->
<div class="wp-block-column" style="flex-basis:100px"><!-- wp:post-featured-image {"isLink":true,"width":"100%","height":"100px","style":{"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div></div>
<!-- /wp:cover -->
<!-- /wp:post-template -->
<!-- wp:separator {"color":"tertiary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-background has-tertiary-background-color has-tertiary-color is-style-wide"/>
<!-- /wp:separator --></div>
<!-- /wp:query --></div>
<!-- /wp:column -->
<!-- wp:column {"width":"33.33%"} -->
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase"}},"fontSize":"small"} -->
<p class="has-small-font-size" style="text-transform:uppercase"><?php echo esc_html__( 'About Manuel', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"fontSize":"small"} -->
<p class="has-small-font-size"><?php echo esc_html__( 'Hello! Im the author of this newsletter. Im a professor of literature at the University of Culture, in Brazil.', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"1em"} -->
<div style="height:1em" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase"}},"fontSize":"small"} -->
<p class="has-small-font-size" style="text-transform:uppercase"><?php echo esc_html__( 'Categories', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:tag-cloud {"taxonomy":"category","className":"is-style-outline"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

13
lettre/patterns/tags.php Normal file
View file

@ -0,0 +1,13 @@
<?php
/**
* Title: Tag buttons
* Slug: lettre/tags
* Categories: featured
*/
?>
<!-- wp:paragraph {"fontSize":"small","style":{"typography":{"textTransform":"uppercase"}}} -->
<p class="has-small-font-size" style="text-transform:uppercase"><?php echo esc_html__( 'Tags', 'lettre' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:tag-cloud {"className":"is-style-outline"} /-->

81
lettre/readme.txt Normal file
View file

@ -0,0 +1,81 @@
=== Lettre ===
Contributors: Automattic
Requires at least: 6.1
Tested up to: 6.1
Requires PHP: 5.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
== Description ==
A theme for writers that want to publish a newsletter using Jetpack.
== Changelog ==
= 1.1.2 =
* Fix typos
= 1.1.1 =
* Remove stable tag
= 1.1.0 =
* Prep Lettre for dotorg (#6792)
= 1.0 =
* Released: March 8, 2022
== Copyright ==
Lettre WordPress Theme, (C) 2022 Automattic, Inc.
Lettre is distributed under the terms of the GNU GPL.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Lettre is derived from Twenty Twenty-Two, (C) 2021-2022 WordPress.org.
Lettre is also derived from Livro, (C) 2022 Automattic.
This theme bundles the following third-party resources:
Inter Font
Copyright 2016-2020 The Inter Project Authors.
License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1
Source: https://github.com/rsms/inter
Newsreader Font
Copyright 2020 The Newsreader Project Authors.
License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1
Source: http://github.com/productiontype/Newsreader
Photograph by Craig Whitehead.
License: CC0
Source: https://stocksnap.io/photo/blur-people-CB8216SFLR
Used in theme screenshot.
Envelope photographs.
License: CC0
Source: https://www.rawpixel.com/image/5969737/envelope-invites
https://www.rawpixel.com/image/3294967/free-photo-image-mail-envelope-book
Used in block patterns.
Flowers illustration.
License: CC0
Source: https://www.rawpixel.com/image/3068819/free-illustration-image-abstract-art-vase
Used in block patterns.
Video of a car driving on a curved road.
License: CC0
Source: https://www.pexels.com/video/video-of-a-car-passing-through-a-curve-road-853786/
Used in block patterns.
Image of a book.
License: C00
Source: https://stocksnap.io/photo/book-read-F7VFBCFYNS
Used in block patterns.

BIN
lettre/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

147
lettre/style.css Normal file
View file

@ -0,0 +1,147 @@
/*
Theme Name: Lettre
Theme URI: http://wordpress.com/theme/lettre/
Author: Automattic
Author URI: https://automattic.com/
Description: A theme for writers that want to publish a newsletter using Jetpack.
Requires at least: 6.1
Tested up to: 6.1
Requires PHP: 5.6
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lettre
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, news
Lettre WordPress Theme, (C) 2022 Automattic, Inc.
Lettre is distributed under the terms of the GNU GPL.
*/
/*
* Font smoothing.
* This is a niche setting that will not be available via Global Styles.
* https://github.com/WordPress/gutenberg/issues/35934
*/
body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
/*
* Text and navigation link styles.
* Necessary until the following issue is resolved in Gutenberg:
* https://github.com/WordPress/gutenberg/issues/27075
*/
a {
text-decoration-thickness: 1px;
text-underline-offset: 0.25ch;
text-decoration-style: underline;
}
/*
* Button opacity styles.
* Necessary until the following issue is resolved in Gutenberg:
* https://github.com/WordPress/gutenberg/issues/46755
*/
.wp-block-search__button:hover,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:hover {
opacity: 0.90;
}
/*
* Custom theme styles.
*/
.wp-block-site-title[style*="text-transform:uppercase"] {
letter-spacing: 0.15em;
}
.wp-block-post-title,
.wp-block-site-title {
hyphens: auto;
word-break: break-word;
word-wrap: break-word;
}
/*
* Comment form cleanup.
*/
input {
font-family: inherit;
}
textarea,
input:not([type="submit"]):not([type="button"]) {
color: var(--wp--preset--color--foreground);
}
textarea:focus,
input:not([type="submit"]):not([type="button"]):focus {
border-color: var(--wp--preset--color--secondary);
}
.comment-form label {
font-size: var(--wp--preset--font-size--small);
}
.wp-block-post-comments .comment-form-cookies-consent #wp-comment-cookies-consent {
margin-top: 0.2em;
}
.wp-block-post-comments h3#comments {
margin-top: var(--wp--style--block-gap);
}
.wp-block-post-comments .navigation + .comment-respond {
margin-top: calc(3 * var(--wp--style--block-gap));
}
/*
* Drop cap refinements.
*/
.has-drop-cap:not(:focus)::first-letter {
font-size: 3.15em;
font-weight: 300;
margin: 0.2em 0.125em 0 0;
}
/*
* Tag cloud refinements.
*/
.wp-block-tag-cloud.is-style-outline a {
border-radius: 50px;
border-color: var(--wp--preset--color--primary);
color: var(--wp--preset--color--primary);
/* Core styles use !important here, so the theme needs to use it too. */
font-size: var(--wp--preset--font-size--small) !important;
}
/*
* Comment form refinements.
*/
.comment-form .comment-subscription-form,
.comment-form .post-subscription-form{
margin: 0;
}
/*
* Fixes an issue with Jetpack Subscribe block.
* Necessary until Jetpack 11.7 is released:
* https://github.com/Automattic/jetpack/milestone/295
*/
.wp-block-jetpack-subscriptions__container .wp-element-button:not(.block-editor-rich-text__editable),
.wp-block-jetpack-subscriptions__container .wp-block-button__link:not(.block-editor-rich-text__editable) {
font-size: inherit;
margin-top: 10px;
padding: 24px 36px 24px 36px;
width: 100%;
}

11
lettre/templates/404.html Normal file
View file

@ -0,0 +1,11 @@
<!-- wp:template-part {"slug":"header-archive","tagName":"header"} /-->
<!-- wp:group {"tagName":"main"} -->
<main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">
<!-- wp:pattern {"slug":"lettre/hidden-404"} /-->
</div>
<!-- /wp:group --></main>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

View file

@ -0,0 +1,40 @@
<!-- wp:template-part {"slug":"header-archive","tagName":"header"} /-->
<!-- wp:group {"tagName":"main"} -->
<main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">
<!-- wp:search {"showLabel":false,"width":100,"widthUnit":"%","buttonText":"Search","buttonPosition":"button-inside","buttonUseIcon":true,"style":{"border":{"radius":"190px","width":"1px"}},"borderColor":"primary","backgroundColor":"primary","textColor":"secondary"} /-->
<!-- wp:spacer {"height":"70px"} -->
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} -->
<div class="wp-block-query"><!-- wp:post-template -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} -->
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:post-featured-image {"height":"200px"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
<!-- wp:post-excerpt {"showMoreOnNewLine":false,"fontSize":"small"} /-->
<!-- wp:group {"layout":{"type":"flex","allowOrientation":false}} -->
<div class="wp-block-group"><!-- wp:post-author-name {"fontSize":"small"} /-->
<!-- wp:post-date {"format":"F j, Y","fontSize":"small"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:separator {"backgroundColor":"tertiary","className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-tertiary-color has-alpha-channel-opacity has-tertiary-background-color has-background is-style-wide"/>
<!-- /wp:separator -->
<!-- /wp:post-template --></div>
<!-- /wp:query --></div>
<!-- /wp:group --></main>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

View file

@ -0,0 +1,11 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:pattern {"slug":"lettre/newsletter-intro"} /-->
<!-- wp:group {"tagName":"main","align":"full","layout":{"contentSize":"1000px"}} -->
<main class="wp-block-group alignfull" id="posts">
<!-- wp:pattern {"slug":"lettre/query-posts"} /-->
</main>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

View file

@ -0,0 +1,41 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:group {"tagName":"main"} -->
<main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">
<!-- wp:search {"label":"","showLabel":false,"placeholder":"","width":100,"widthUnit":"%","buttonPosition":"button-inside","buttonUseIcon":true,"style":{"border":{"radius":"190px","width":"1px"}},"borderColor":"primary","backgroundColor":"primary","textColor":"secondary"} /-->
<!-- wp:spacer {"height":"70px"} -->
<div style="height:70px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:query {"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} -->
<div class="wp-block-query"><!-- wp:post-template -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"33.33%"} -->
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:post-featured-image {"height":"200px"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:post-title {"isLink":true,"fontSize":"large"} /-->
<!-- wp:post-excerpt {"showMoreOnNewLine":false,"style":{"typography":{"fontSize":"medium"}}} /-->
<!-- wp:group {"layout":{"type":"flex","allowOrientation":false}} -->
<div class="wp-block-group"><!-- wp:post-author-name {"fontSize":"small"} /-->
<!-- wp:post-date {"format":"F j, Y","fontSize":"small"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:separator {"opacity":"css","style":{"color":{"background":"#e5e5e5"}},"className":"is-style-wide"} -->
<hr class="wp-block-separator has-text-color has-css-opacity has-background is-style-wide" style="background-color:#e5e5e5;color:#e5e5e5"/>
<!-- /wp:separator -->
<!-- /wp:post-template --></div>
<!-- /wp:query --></div>
<!-- /wp:group --></main>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

View file

@ -0,0 +1,17 @@
<!-- wp:template-part {"slug":"header-archive","tagName":"header"} /-->
<!-- wp:group {"tagName":"main"} -->
<main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">
<!-- wp:spacer {"height":"1px"} -->
<div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:post-featured-image {"align":"wide","style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}}} /--></div>
<!-- /wp:group -->
<!-- wp:post-content {"layout":{"inherit":true}} /--></main>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

View file

@ -0,0 +1,69 @@
<!-- wp:template-part {"slug":"header-archive","tagName":"header"} /-->
<!-- wp:group {"tagName":"main"} -->
<main class="wp-block-group"><!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:post-title {"level":1} /-->
<!-- wp:group {"layout":{"type":"flex","justifyContent":"left"}} -->
<div class="wp-block-group"><!-- wp:post-author {"showAvatar":false,"fontSize":"small"} /-->
<!-- wp:post-date {"format":null,"fontSize":"small"} /--></div>
<!-- /wp:group -->
<!-- wp:spacer {"height":"1px"} -->
<div style="height:1px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"bottom":"var(--wp--custom--spacing--small, 1.25rem)"}}}} /--></div>
<!-- /wp:group -->
<!-- wp:post-content {"layout":{"inherit":true}} /-->
<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex"}} -->
<div class="wp-block-group"><!-- wp:post-terms {"term":"category","fontSize":"small"} /-->
<!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /--></div>
<!-- /wp:group -->
<!-- wp:spacer {"height":"32px"} -->
<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:comments-query-loop -->
<div class="wp-block-comments-query-loop"><!-- wp:comments-title /-->
<!-- wp:comment-template -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:comment-author-name {"fontSize":"small"} /-->
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"flex"}} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px"><!-- wp:comment-date {"fontSize":"small"} /-->
<!-- wp:comment-edit-link {"fontSize":"small"} /--></div>
<!-- /wp:group -->
<!-- wp:comment-content /-->
<!-- wp:comment-reply-link {"fontSize":"small"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- /wp:comment-template -->
<!-- wp:comments-pagination -->
<!-- wp:comments-pagination-previous /-->
<!-- wp:comments-pagination-numbers /-->
<!-- wp:comments-pagination-next /-->
<!-- /wp:comments-pagination -->
<!-- wp:post-comments-form /--></div>
<!-- /wp:comments-query-loop -->
</div>
<!-- /wp:group --></main>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

422
lettre/theme.json Normal file
View file

@ -0,0 +1,422 @@
{
"version": 2,
"$schema": "https://schemas.wp.org/trunk/theme.json",
"settings": {
"appearanceTools": true,
"color": {
"palette": [
{
"slug": "primary",
"color": "#113AF5",
"name": "Primary"
},
{
"slug": "secondary",
"color": "#FFFFFF",
"name": "Secondary"
},
{
"slug": "tertiary",
"color": "#D9D9D9",
"name": "Tertiary"
},
{
"slug": "foreground",
"color": "#1E1E1E",
"name": "Foreground"
}
]
},
"custom": {
"spacing": {
"small": "max(1.25rem, 2vw)",
"medium": "clamp(2rem, 8vw, calc(4 * var(--wp--style--block-gap)))",
"large": "clamp(4rem, 12vw, 10rem)",
"outer": "var(--wp--custom--spacing--small, 1.25rem)"
},
"typography": {
"line-height": {
"tiny": 1.15,
"small": 1.2,
"medium": 1.4,
"normal": 1.6
}
}
},
"spacing": {
"units": [
"%",
"px",
"em",
"rem",
"vh",
"vw"
]
},
"typography": {
"fluid": true,
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Inter",
"fontStyle": "normal",
"fontWeight": "400",
"src": [
"file:./assets/fonts/Inter-Regular.woff2"
]
},
{
"fontFamily": "Inter",
"fontStyle": "italic",
"fontWeight": "400",
"src": [
"file:./assets/fonts/Inter-Italic.woff2"
]
},
{
"fontFamily": "Inter",
"fontStyle": "normal",
"fontWeight": "700",
"src": [
"file:./assets/fonts/Inter-Bold.woff2"
]
},
{
"fontFamily": "Inter",
"fontStyle": "italic",
"fontWeight": "700",
"src": [
"file:./assets/fonts/Inter-BoldItalic.woff2"
]
}
],
"fontFamily": "\"Inter\", sans-serif",
"name": "Inter",
"slug": "Inter"
},
{
"fontFace": [
{
"fontFamily": "Newsreader",
"fontStyle": "normal",
"fontWeight": "800",
"src": [
"file:./assets/fonts/Newsreader16pt-ExtraBold.woff2"
]
},
{
"fontFamily": "Newsreader",
"fontStyle": "normal",
"fontWeight": "200",
"src": [
"file:./assets/fonts/Newsreader16pt-ExtraLight.woff2"
]
},
{
"fontFamily": "Newsreader",
"fontStyle": "italic",
"fontWeight": "800",
"src": [
"file:./assets/fonts/Newsreader16pt-ExtraBoldItalic.woff2"
]
},
{
"fontFamily": "Newsreader",
"fontStyle": "italic",
"fontWeight": "200",
"src": [
"file:./assets/fonts/Newsreader16pt-ExtraLightItalic.woff2"
]
}
],
"fontFamily": "Newsreader",
"name": "Newsreader",
"slug": "newsreader"
}
],
"fontSizes": [
{
"fluid": {
"max": "1rem",
"min": "0.85rem"
},
"size": "0.9rem",
"slug": "small"
},
{
"fluid": {
"max": "1.2rem",
"min": "1rem"
},
"size": "1.125rem",
"slug": "medium"
},
{
"fluid": {
"max": "2rem",
"min": "1.5rem"
},
"size": "1.75rem",
"slug": "large"
},
{
"fluid": {
"max": "2.75rem",
"min": "2rem"
},
"size": "2.5rem",
"slug": "x-large"
},
{
"fluid": {
"max": "4rem",
"min": "2.875rem"
},
"size": "3rem",
"slug": "xx-large"
}
]
},
"layout": {
"contentSize": "650px",
"wideSize": "1000px"
},
"useRootPaddingAwareAlignments": true
},
"styles": {
"blocks": {
"core/button": {
"border": {
"radius": "100px"
},
"color": {
"background": "var(--wp--preset--color--primary)",
"text": "var(--wp--preset--color--secondary)"
},
"spacing": {
"padding": {
"bottom": "calc(.667em + 2px)",
"left": "calc(1.333em + 2px)",
"right": "calc(1.333em + 2px)",
"top": "calc(.667em + 2px)"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/navigation": {
"elements": {
"link": {
":focus": {
"typography": {
"textDecoration": "underline"
}
},
":hover": {
"typography": {
"textDecoration": "underline"
}
}
}
}
},
"core/post-date": {
"elements": {
"link": {
"typography": {
"textDecoration": "none"
},
":hover": {
"typography": {
"textDecoration": "none"
}
}
}
}
},
"core/post-title": {
"elements": {
"link": {
"typography": {
"textDecoration": "none"
},
":hover": {
"typography": {
"textDecoration": "none"
}
}
}
},
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--tiny)",
"fontSize": "var(--wp--preset--font-size--x-large)"
}
},
"core/post-comments": {
"spacing": {
"padding": {
"top": "var(--wp--custom--spacing--small)"
}
}
},
"core/pullquote": {
"border": {
"width": "1px 0"
}
},
"core/query-title": {
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--small)",
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"core/quote": {
"border": {
"width": "0 0 0 1px"
}
},
"core/separator": {
"border": {
"color": "currentColor",
"style": "solid",
"width": "0 0 1px 0"
},
"color": {
"text": "var(--wp--preset--color--tertiary)"
}
},
"core/site-title": {
"elements": {
"link": {
"typography": {
"textDecoration": "none"
},
":hover": {
"typography": {
"textDecoration": "none"
}
}
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"lineHeight": "var(--wp--custom--typography--line-height--normal)",
"fontSize": "var(--wp--preset--font-size--small)",
"fontWeight": "normal"
}
}
},
"color": {
"background": "#fff",
"text": "var(--wp--preset--color--foreground)"
},
"elements": {
"button": {
"border": {
"radius": "100px"
},
"color": {
"background": "var(--wp--preset--color--primary)",
"text": "var(--wp--preset--color--secondary)"
},
"spacing": {
"padding": {
"bottom": "calc(.667em + 2px)",
"left": "calc(1.333em + 2px)",
"right": "calc(1.333em + 2px)",
"top": "calc(.667em + 2px)"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"h1": {
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--small)",
"fontSize": "var(--wp--preset--font-size--x-large)"
}
},
"h2": {
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--small)",
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"h3": {
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--small)",
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"h4": {
"typography": {
"lineHeight": "var(--wp--custom--typography--line-height--medium)",
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"h5": {
"typography": {
"textTransform": "uppercase",
"lineHeight": "var(--wp--custom--typography--line-height--normal)",
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"h6": {
"typography": {
"textTransform": "uppercase",
"lineHeight": "var(--wp--custom--typography--line-height--normal)",
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"link": {
"color": {
"text": "var(--wp--preset--color--foreground)"
},
":active": {
"typography": {
"textDecoration": "none"
}
},
":focus": {
"typography": {
"textDecoration": "underline"
}
},
":hover": {
"typography": {
"textDecoration": "underline"
}
}
}
},
"spacing": {
"blockGap": "1.5rem",
"padding": {
"bottom": "",
"left": "var(--wp--custom--spacing--outer)",
"top": "",
"right": "var(--wp--custom--spacing--outer)"
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--inter)",
"lineHeight": "var(--wp--custom--typography--line-height--normal)",
"fontSize": "var(--wp--preset--font-size--medium)"
}
},
"templateParts": [
{
"name": "header",
"title": "Header",
"area": "header"
},
{
"name": "footer",
"title": "Footer",
"area": "footer"
}
]
}