Skip to content

Commit

Permalink
Fictionary: Address feedback and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtakashi committed Sep 19, 2024
1 parent 934bc71 commit c9babdd
Show file tree
Hide file tree
Showing 22 changed files with 110 additions and 182 deletions.
Binary file removed fictionary/assets/images/fictionary_post_1.jpg
Binary file not shown.
Binary file removed fictionary/assets/images/fictionary_post_2.jpg
Binary file not shown.
Binary file removed fictionary/assets/images/fictionary_post_3.jpg
Binary file not shown.
Binary file removed fictionary/assets/images/fictionary_post_4.jpg
Binary file not shown.
Binary file removed fictionary/assets/images/fictionary_post_5.jpg
Binary file not shown.
16 changes: 1 addition & 15 deletions fictionary/parts/footer.html
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
<!-- 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:preset|spacing|60","bottom":"0"},"blockGap":"var:preset|spacing|20"}}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:0"><!-- wp:paragraph {"align":"center","style":{"typography":{"fontStyle":"normal","fontWeight":"200","letterSpacing":"0px","textTransform":"uppercase"}},"fontSize":"large","fontFamily":"newsreader"} -->
<p class="has-text-align-center has-newsreader-font-family has-large-font-size" style="font-style:normal;font-weight:200;letter-spacing:0px;text-transform:uppercase">FICTIONARY © All Rights Reserved</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"0.8rem"}}} -->
<p class="has-text-align-center" style="font-size:0.8rem">Designed with <a href="https://wordpress.org" rel="nofollow">WordPress</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:pattern {"slug":"fictionary/footer"} /-->
2 changes: 1 addition & 1 deletion fictionary/parts/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- /wp:column -->

<!-- wp:column {"width":"20%"} -->
<div class="wp-block-column" style="flex-basis:20%"><!-- wp:navigation {"ref":4,"overlayMenu":"always","overlayBackgroundColor":"tertiary","overlayTextColor":"contrast","layout":{"type":"flex","justifyContent":"right"},"fontSize":"large","fontFamily":"newsreader"} /--></div>
<div class="wp-block-column" style="flex-basis:20%"><!-- wp:navigation {"overlayMenu":"always","overlayBackgroundColor":"tertiary","overlayTextColor":"contrast","layout":{"type":"flex","justifyContent":"right"},"fontSize":"large","fontFamily":"newsreader"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

Expand Down
11 changes: 5 additions & 6 deletions fictionary/patterns/404.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<?php
/**
* Title: A 404 page
* Title: 404
* Slug: fictionary/404
* Categories: hidden
* 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.', 'fictionary' ); ?></h1>
<!-- wp:heading {"textAlign":"left","level":1,"style":{"typography":{"fontSize":"70px"}}} -->
<h1 class="wp-block-heading has-text-align-left" id="oops-that-page-can-t-be-found" style="font-size:70px"><?php esc_html_e('Oops! That page could not be found.', 'fictionary');?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><?php echo esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'fictionary' ); ?></p>
<p><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'fictionary');?></p>
<!-- /wp:paragraph -->
74 changes: 33 additions & 41 deletions fictionary/patterns/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,37 @@
?>

<!-- wp:comments {"className":"wp-block-comments-query-loop"} -->
<div class="wp-block-comments wp-block-comments-query-loop">
<!-- wp:comments-title {"level":3} /-->

<!-- wp:comment-template -->
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|50"}}}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--50)">
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"},"style":{"spacing":{"blockGap":"0.5em"}}} -->
<div class="wp-block-group">
<!-- wp:avatar {"size":40,"style":{"spacing":{"margin":{"top":"0.5em"}}}} /-->

<!-- wp:group -->
<div class="wp-block-group">
<!-- wp:comment-author-name /-->

<!-- wp:group {"layout":{"type":"flex"},"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"0.5em"}}} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px">
<!-- wp:comment-date {"format":"F j, Y \\a\\t g:i a"} /-->

<!-- wp:comment-edit-link /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->

<!-- wp:comment-content /-->

<!-- wp:comment-reply-link /-->
</div>
<!-- /wp:group -->
<!-- /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>
<div class="wp-block-comments wp-block-comments-query-loop"><!-- wp:comments-title {"level":3} /-->

<!-- wp:comment-template -->
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"var:preset|spacing|50"}}}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--50)"><!-- wp:group {"style":{"spacing":{"blockGap":"0.5em"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:avatar {"size":40,"style":{"spacing":{"margin":{"top":"0.5em"}}}} /-->

<!-- wp:group -->
<div class="wp-block-group"><!-- wp:comment-author-name /-->

<!-- wp:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"blockGap":"0.5em"}},"layout":{"type":"flex"}} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px"><!-- wp:comment-date {"format":"F j, Y \\a\\t g:i a"} /-->

<!-- wp:comment-edit-link /--></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:comment-content /-->

<!-- wp:comment-reply-link /--></div>
<!-- /wp:group -->
<!-- /wp:comment-template -->

<!-- wp:comments-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:comments-pagination-previous /-->

<!-- wp:comments-pagination-numbers /-->

<!-- wp:comments-pagination-next /-->
<!-- /wp:comments-pagination -->

<!-- wp:post-comments-form /--></div>
<!-- /wp:comments -->
34 changes: 10 additions & 24 deletions fictionary/patterns/footer.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,19 @@
<?php
/**
* Title: Default footer
* Title: footer
* Slug: fictionary/footer
* Categories: footer
* Block Types: core/template-part/footer
* Categories: hidden
* Inserter: no
*/
?>

<!-- wp:spacer {"height":"var(--wp--preset--spacing--80)"} -->
<!-- wp:spacer {"height":"var: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', 'fictionary' ) ) . '" rel="nofollow">WordPress</a>';
echo sprintf(
esc_html__( 'Designed with %1$s', 'fictionary' ),
$wordpress_link
);
?>
</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"0"},"blockGap":"var:preset|spacing|20"}}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:0"><!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"0.8rem"}}} -->
<p class="has-text-align-center" style="font-size:0.8rem"><?php echo __('Designed with <a href="https://wordpress.org" rel="nofollow">WordPress</a>', 'fictionary');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
12 changes: 12 additions & 0 deletions fictionary/patterns/intro.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* Title: Intro
* Slug: fictionary/intro
* Categories: hidden
* Inserter: no
*/
?>

<!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"10rem","fontStyle":"normal","fontWeight":"200","lineHeight":"0.9"},"spacing":{"padding":{"right":"4vw","left":"4vw"}}}} -->
<h2 class="wp-block-heading has-text-align-center" style="padding-right:4vw;padding-left:4vw;font-size:10rem;font-style:normal;font-weight:200;line-height:0.9"><?php echo wp_kses_post( __( 'Hello, my name is Ruth and I write <a href="#">fiction</a>.', 'fictionary' ) );?></h2>
<!-- /wp:heading -->
11 changes: 1 addition & 10 deletions fictionary/readme.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== Fictionary ===
Contributors: Automattic
Requires at least: 6.0
Tested up to: 6.4.2
Tested up to: 6.6
Requires PHP: 5.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -45,12 +45,3 @@ This Font Software is licensed under the SIL Open Font License, Version 1.1. Thi
License URL: http://scripts.sil.org/OFL
Source: https://rsms.me/
-- End of Inter Font credits --

Images:

All images are in the Public Domain
fictionary_post_5.jpg: https://www.rawpixel.com/image/8799592/photo-image-public-domain-person
fictionary_post_4.jpg: https://www.rawpixel.com/image/5919341/free-empty-road-image-public-domain-cc0-photo
fictionary_post_3.jpg: https://www.rawpixel.com/image/3285420/free-photo-image-lake-house-cabin
fictionary_post_2.jpg: https://www.rawpixel.com/image/5925727/photo-image-cloud-public-domain-sky
fictionary_post_1.jpg: https://stocksnap.io/photo/space-rocket-M2IXWNZDKT
Binary file modified fictionary/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions fictionary/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Author: Automattic
Author URI: https://automattic.com
Description: Fictionary is a typography based, opinionated blogging theme.
Requires at least: 6.0
Tested up to: 6.4.2
Tested up to: 6.6
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: fictionary
Tags: blog, news, one-column, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, writing, words, fiction, stories, yellow
Tags: blog, one-column, wide-blocks, block-patterns, featured-images, full-site-editing, rtl-language-support, threaded-comments, translation-ready
*/

/*
Expand All @@ -33,4 +33,4 @@ a {
text-decoration-thickness: 0.8px !important;
text-underline-offset: .1em;
text-decoration-style: dotted;
}
}
11 changes: 3 additions & 8 deletions fictionary/templates/404.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"var:preset|spacing|50","margin":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} -->
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--80);margin-bottom:var(--wp--preset--spacing--60)"><!-- wp:heading {"textAlign":"left","level":1,"style":{"typography":{"fontSize":"70px"}}} -->
<h1 class="wp-block-heading has-text-align-left" id="oops-that-page-can-t-be-found" style="font-size:70px">Oops! That page could not be found.</h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>It looks like nothing was found at this location. Maybe try a search?</p>
<!-- /wp:paragraph -->
<main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--80);margin-bottom:var(--wp--preset--spacing--60)">
<!-- wp:pattern {"slug":"fictionary/404"} /-->

<!-- wp:search {"label":"","showLabel":false,"buttonText":"","buttonUseIcon":true,"style":{"typography":{"fontSize":"0.9rem"},"border":{"width":"0px","style":"none","radius":"0px"}},"fontFamily":"inter"} /--></main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
14 changes: 6 additions & 8 deletions fictionary/templates/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:query-pagination -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-numbers /-->
<!-- wp:query-no-results -->
<!-- wp:pattern {"slug":"fictionary/hidden-no-results-content"} /-->
<!-- /wp:query-no-results -->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination --></div>
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:template-part {"slug":"pagination"} /--></div>
<!-- /wp:group --></main>
<!-- /wp:query -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
6 changes: 2 additions & 4 deletions fictionary/templates/home.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:heading {"textAlign":"center","style":{"typography":{"fontSize":"10rem","fontStyle":"normal","fontWeight":"200","lineHeight":"0.9"},"spacing":{"padding":{"right":"4vw","left":"4vw"}}}} -->
<h2 class="wp-block-heading has-text-align-center" style="padding-right:4vw;padding-left:4vw;font-size:10rem;font-style:normal;font-weight:200;line-height:0.9">Hello, my name is Ruth and I write <a href="https://fictionary.mystagingwebsite.com/category/short-stories/">fiction</a>.</h2>
<!-- /wp:heading -->
<!-- wp:pattern {"slug":"fictionary/intro"} /-->

<!-- wp:spacer {"height":"80px"} -->
<div style="height:80px" aria-hidden="true" class="wp-block-spacer"></div>
Expand Down Expand Up @@ -148,4 +146,4 @@ <h2 class="wp-block-heading has-text-align-center" style="padding-right:4vw;padd
<!-- wp:template-part {"slug":"pagination"} /--></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
6 changes: 5 additions & 1 deletion fictionary/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@
<!-- /wp:group -->
<!-- /wp:post-template -->

<!-- wp:query-no-results -->
<!-- wp:pattern {"slug":"fictionary/hidden-no-results-content"} /-->
<!-- /wp:query-no-results -->

<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:template-part {"slug":"pagination"} /--></div>
<!-- /wp:group --></main>
<!-- /wp:query -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
22 changes: 9 additions & 13 deletions fictionary/templates/page.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:post-title /-->
</div>
<div class="wp-block-group"><!-- wp:post-title /--></div>
<!-- /wp:group -->

<!-- wp:group {"tagName":"main","lock":{"move":false,"remove":true}} -->
<main class="wp-block-group">
<!-- wp:post-featured-image {"align":"full"} /-->
<!-- wp:post-content {"layout":{"type":"constrained"},"lock":{"move":false,"remove":true}} /-->
</main>
<main class="wp-block-group"><!-- wp:post-featured-image {"align":"full"} /-->

<!-- wp:post-content {"lock":{"move":false,"remove":true},"layout":{"type":"constrained"}} /--></main>
<!-- /wp:group -->

<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:spacer {"height":60} -->
<div style="height:60px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:pattern {"slug":"fictionary/comments"} /-->
</div>
<div class="wp-block-group"><!-- wp:separator -->
<hr class="wp-block-separator has-alpha-channel-opacity"/>
<!-- /wp:separator -->

<!-- wp:pattern {"slug":"fictionary/comments"} /--></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
6 changes: 2 additions & 4 deletions fictionary/templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@
<!-- /wp:post-template -->

<!-- wp:query-no-results -->
<!-- wp:paragraph -->
<p>Sorry, but nothing matched your search terms. Please try again with some different keywords.</p>
<!-- /wp:paragraph -->
<!-- wp:pattern {"slug":"fictionary/hidden-no-results-content"} /-->
<!-- /wp:query-no-results -->

<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:template-part {"slug":"pagination"} /--></div>
<!-- /wp:group --></main>
<!-- /wp:query -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
Loading

0 comments on commit c9babdd

Please sign in to comment.