Skip to content

Commit

Permalink
Entry: add theme (#7195)
Browse files Browse the repository at this point in the history
* Add entry theme

Theme created by @beafialho

* Bump stylesheet version

* add showcase URL

* Remove "theme" attribute from template

* Compress big image files

Lossless compression had a minimal effect, but it's worth a try.

* Fix typo

* Change initial release version to 1.0.0
  • Loading branch information
vcanales authored Jul 4, 2023
1 parent 99af67f commit fe96f6a
Show file tree
Hide file tree
Showing 25 changed files with 1,141 additions and 0 deletions.
Binary file added entry/assets/fonts/piazzolla_italic_200.ttf
Binary file not shown.
Binary file added entry/assets/fonts/piazzolla_italic_600.ttf
Binary file not shown.
Binary file added entry/assets/fonts/piazzolla_normal_200.ttf
Binary file not shown.
Binary file added entry/assets/fonts/piazzolla_normal_600.ttf
Binary file not shown.
Binary file added entry/assets/images/friday_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added entry/assets/images/monday_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added entry/assets/images/saturday_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added entry/assets/images/thursday_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added entry/assets/images/tuesday_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added entry/assets/images/wednesday_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions entry/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<?php
/**
* Entry functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Entry
* @since Entry 1.0
*/


if ( ! function_exists( 'entry_support' ) ) :

/**
* Sets up theme defaults and registers support for various WordPress features.
*
* @since Entry 1.0
*
* @return void
*/
function entry_support() {

// Enqueue editor styles.
add_editor_style( 'style.css' );

// Make theme available for translation.
load_theme_textdomain( 'entry' );
}

endif;

add_action( 'after_setup_theme', 'entry_support' );

if ( ! function_exists( 'entry_styles' ) ) :

/**
* Enqueue styles.
*
* @since Entry 1.0
*
* @return void
*/
function entry_styles() {

// Register theme stylesheet.
wp_register_style(
'entry-style',
get_stylesheet_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);

// Enqueue theme stylesheet.
wp_enqueue_style( 'entry-style' );

}

endif;

add_action( 'wp_enqueue_scripts', 'entry_styles' );
15 changes: 15 additions & 0 deletions entry/parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- wp:group {"style":{"spacing":{"padding":{"right":"3vw","left":"3vw"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-right:3vw;padding-left:3vw"><!-- wp:group {"style":{"border":{"radius":"4em"},"spacing":{"padding":{"top":"8vh","right":"8vw","bottom":"8vh","left":"8vw"}}},"backgroundColor":"secondary","layout":{"type":"default"}} -->
<div class="wp-block-group has-secondary-background-color has-background" style="border-radius:4em;padding-top:8vh;padding-right:8vw;padding-bottom:8vh;padding-left:8vw"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between","verticalAlignment":"bottom"}} -->
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:site-title /-->

<!-- wp:site-tagline /--></div>
<!-- /wp:group -->

<!-- wp:paragraph {"style":{"typography":{"fontSize":"12px"}}} -->
<p style="font-size:12px">Designed with <a rel="nofollow" href="https://wordpress.org">WordPress</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
26 changes: 26 additions & 0 deletions entry/parts/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|60","top":"var:preset|spacing|60","right":"var:preset|spacing|40","left":"var:preset|spacing|40"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
<div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--40)">
<!-- wp:group {"layout":{"type":"flex"}} -->
<div class="wp-block-group">
<!-- wp:site-logo {"width":64} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}}} -->
<div class="wp-block-group">
<!-- wp:site-title /-->
<!-- wp:site-tagline /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"}}}} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:spacer {"height":"var(\u002d\u002dwp\u002d\u002dpreset\u002d\u002dspacing\u002d\u002d80)"} -->
<div style="height:var(--wp--preset--spacing--80)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
9 changes: 9 additions & 0 deletions entry/parts/post-meta.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- wp:group {"layout":{"type":"default"}} -->
<div class="wp-block-group"><!-- wp:group {"layout":{"type":"flex"}} -->
<div class="wp-block-group"><!-- wp:post-author {"showAvatar":false,"fontSize":"small"} /-->

<!-- wp:post-terms {"term":"category","fontSize":"small"} /-->

<!-- wp:post-terms {"term":"post_tag","fontSize":"small"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
16 changes: 16 additions & 0 deletions entry/patterns/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
/**
* Title: A 404 page
* Slug: entry/404
* Inserter: no
*/

?>

<!-- wp:heading {"textAlign":"center","level":1,"fontSize":"x-large"} -->
<h1 class="has-text-align-center has-x-large-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Oops! That page can&rsquo;t be found.', 'entry' ); ?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'entry' ); ?></p>
<!-- /wp:paragraph -->
33 changes: 33 additions & 0 deletions entry/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/**
* Title: Default footer
* Slug: entry/footer
* Categories: footer
* Block Types: core/template-part/footer
*/
?>

<!-- wp:spacer {"height":"var(--wp--preset--spacing--80)"} -->
<div style="height:var(--wp--preset--spacing--80)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var(--wp--preset--spacing--60)","bottom":"var(--wp--preset--spacing--60)"}}}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)">
<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">
<?php
/* Translators: WordPress link. */
$wordpress_link = '<a href="' . esc_url( __( 'https://wordpress.org', 'entry' ) ) . '" rel="nofollow">WordPress</a>';
echo sprintf(
esc_html__( 'Designed with %1$s', 'entry' ),
$wordpress_link
);
?>
</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
10 changes: 10 additions & 0 deletions entry/patterns/hidden-no-results-content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
/**
* Title: Hidden No Results Content
* Slug: entry/hidden-no-results-content
* Inserter: no
*/
?>
<!-- wp:paragraph -->
<p><?php echo esc_html_x( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'entry' ); ?></p>
<!-- /wp:paragraph -->
32 changes: 32 additions & 0 deletions entry/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
=== Entry ===
Contributors: Automattic
Requires at least: 5.8
Tested up to: 6.2
Requires PHP: 5.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

== Description ==

Entry is a uniquely styled WordPress block theme designed for journaling. It features a grid layout and blocky layout for posts, with every element contained in squared or rectangular shapes. Its impactful design is sure to make a statement, while its customizable templates offer a range of options for creating a truly unique journaling experience.

== Changelog ==

= 1.0.0 =
* Initial release

== Copyright ==

Entry WordPress Theme, (C) 2023 Automattic
Entry is distributed under the terms of the GNU GPL.
Entry is based on Entry (), (C) , [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)

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.
Binary file added entry/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions entry/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
Theme Name: Entry
Theme URI: https://wordpress.com/theme/entry
Author: Automattic
Author URI: https://automattic.com
Description: Entry is a uniquely styled WordPress block theme designed for journaling. It features a grid layout and blocky layout for posts, with every element contained in squared or rectangular shapes. Its impactful design is sure to make a statement, while its customizable templates offer a range of options for creating a truly unique journaling experience.
Requires at least: 5.8
Tested up to: 6.2
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: entry
Tags: blog, news, portfolio, grid-layout, two-columns, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, template-editing, theme-options, threaded-comments, translation-ready, squares, grid
*//*
* Control the hover stylings of outline block style.
* Unnecessary once block styles are configurable via theme.json
* https://github.com/WordPress/gutenberg/issues/42794
*/
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
background-color: var(--wp--preset--color--secondary);
color: var(--wp--preset--color--background);
border-color: var(--wp--preset--color--secondary);
}

/**
* Currently table styles are only available with 'wp-block-styles'
* theme support (block css) thus the following needs to be included
* since 'wp-block-styles' aren't used for this theme.
* https://github.com/WordPress/gutenberg/issues/45065
*/
.wp-block-table thead {
border-bottom: 3px solid;
}
.wp-block-table tfoot {
border-top: 3px solid;
}
.wp-block-table td,
.wp-block-table th {
padding: var(--wp--preset--spacing--30);
border: 1px solid;
word-break: normal;
}
.wp-block-table figcaption {
font-size: var(--wp--preset--font-size--small);
text-align: center;
}

/*
* Link styles
* https://github.com/WordPress/gutenberg/issues/42319
*/
a {
text-decoration-thickness: .0625em !important;
text-underline-offset: .15em;
}
33 changes: 33 additions & 0 deletions entry/templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"0vw","right":"4vw","bottom":"0vw","left":"4vw"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:0vw;padding-right:4vw;padding-bottom:0vw;padding-left:4vw"><!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"var:preset|spacing|50","margin":{"top":"0","bottom":"0"},"padding":{"top":"8vw","right":"8vw","bottom":"8vw","left":"8vw"}},"border":{"radius":"4em"}},"backgroundColor":"secondary","layout":{"type":"default"}} -->
<main class="wp-block-group has-secondary-background-color has-background" style="border-radius:4em;margin-top:0;margin-bottom:0;padding-top:8vw;padding-right:8vw;padding-bottom:8vw;padding-left:8vw"><!-- wp:spacer {"height":"12vh"} -->
<div style="height:12vh" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"textAlign":"left","level":1,"fontSize":"x-large","anchor":"oops-that-page-can-t-be-found"} -->
<h1 class="wp-block-heading has-text-align-left has-x-large-font-size" id="oops-that-page-can-t-be-found">It looks like nothing was found at this location.</h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Maybe try a search?</p>
<!-- /wp:paragraph -->

<!-- wp:search {"label":"","showLabel":false,"placeholder":"Search for journal entries...","style":{"border":{"radius":"4em"}}} /-->

<!-- wp:spacer {"height":"4vh"} -->
<div style="height:4vh" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"4vh","bottom":"4vh"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between","verticalAlignment":"bottom"}} -->
<div class="wp-block-group" style="padding-top:4vh;padding-bottom:4vh"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|30"}},"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:site-title /-->

<!-- wp:site-tagline /--></div>
<!-- /wp:group -->

<!-- wp:paragraph {"style":{"typography":{"fontSize":"12px"}}} -->
<p style="font-size:12px">Designed with <a rel="nofollow" href="https://wordpress.org">WordPress</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></main>
<!-- /wp:group --></div>
<!-- /wp:group -->
59 changes: 59 additions & 0 deletions entry/templates/archive.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!-- wp:group {"style":{"spacing":{"padding":{"right":"3vw","left":"3vw"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-right: 3vw; padding-left: 3vw">
<!-- wp:group {"style":{"spacing":{"padding":{"top":"6vh","right":"3vw","bottom":"6vh","left":"3vw"}},"border":{"radius":"4em"}},"backgroundColor":"secondary","layout":{"type":"default"}} -->
<div
class="wp-block-group has-secondary-background-color has-background"
style="
border-radius: 4em;
padding-top: 6vh;
padding-right: 3vw;
padding-bottom: 6vh;
padding-left: 3vw;
"
>
<!-- wp:query-title {"type":"archive"} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"3vw","left":"3vw"},"blockGap":"0"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-right: 3vw; padding-left: 3vw">
<!-- wp:query {"queryId":8,"query":{"perPage":6,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"displayLayout":{"type":"flex","columns":3},"align":"full"} -->
<div class="wp-block-query alignfull">
<!-- wp:post-template -->
<!-- wp:group {"style":{"border":{"radius":"4em"}},"backgroundColor":"secondary","layout":{"type":"constrained"}} -->
<div
class="wp-block-group has-secondary-background-color has-background"
style="border-radius: 4em"
>
<!-- wp:cover {"dimRatio":0,"overlayColor":"secondary","minHeight":100,"minHeightUnit":"%","contentPosition":"bottom left","style":{"border":{"radius":"4em"},"spacing":{"padding":{"right":"5vw","left":"5vw","bottom":"8vh","top":"8vh"}}},"layout":{"type":"constrained"}} -->
<div
class="wp-block-cover has-custom-content-position is-position-bottom-left"
style="
border-radius: 4em;
padding-top: 8vh;
padding-right: 5vw;
padding-bottom: 8vh;
padding-left: 5vw;
min-height: 100%;
"
>
<span
aria-hidden="true"
class="wp-block-cover__background has-secondary-background-color has-background-dim-0 has-background-dim"
></span>
<div class="wp-block-cover__inner-container">
<!-- wp:post-title {"isLink":true,"style":{"spacing":{"padding":{"top":"0","bottom":"0"}},"typography":{"fontSize":"1.9em"}}} /-->
</div>
</div>
<!-- /wp:cover -->
</div>
<!-- /wp:group -->
<!-- /wp:post-template -->
</div>
<!-- /wp:query -->
</div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer"} /-->
11 changes: 11 additions & 0 deletions entry/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- wp:group {"style":{"spacing":{"padding":{"right":"3vw","left":"3vw"},"blockGap":"0"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-right:3vw;padding-left:3vw"><!-- wp:query {"queryId":8,"query":{"perPage":9,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"displayLayout":{"type":"flex","columns":3},"align":"full"} -->
<div class="wp-block-query alignfull"><!-- wp:post-template -->
<!-- wp:group {"style":{"border":{"radius":"4em"}},"backgroundColor":"secondary","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-secondary-background-color has-background" style="border-radius:4em"><!-- wp:cover {"dimRatio":0,"overlayColor":"secondary","minHeight":100,"minHeightUnit":"%","contentPosition":"bottom left","style":{"border":{"radius":"4em"},"spacing":{"padding":{"right":"5vw","left":"5vw","bottom":"8vh","top":"8vh"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-cover has-custom-content-position is-position-bottom-left" style="border-radius:4em;padding-top:8vh;padding-right:5vw;padding-bottom:8vh;padding-left:5vw;min-height:100%"><span aria-hidden="true" class="wp-block-cover__background has-secondary-background-color has-background-dim-0 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:post-title {"isLink":true,"style":{"spacing":{"padding":{"top":"0","bottom":"0"}},"typography":{"fontSize":"1.9em"}}} /--></div></div>
<!-- /wp:cover --></div>
<!-- /wp:group -->
<!-- /wp:post-template --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->
Loading

0 comments on commit fe96f6a

Please sign in to comment.