Browse Source

Curator: style 404 page (#5983)

* style 404 page

* update search block border color.

Co-authored-by: Jeff Ong <jonger4@gmail.com>

Co-authored-by: Jeff Ong <jonger4@gmail.com>
Madhu Dollu 3 years ago
parent
commit
45ea0188d8
2 changed files with 8 additions and 9 deletions
  1. 6 4
      curator/patterns/404.php
  2. 2 5
      curator/templates/404.html

+ 6 - 4
curator/patterns/404.php

@@ -7,10 +7,12 @@
 
 ?>
 
-<!-- wp:heading {"textAlign":"center","level":1,"fontSize":"medium"} -->
-<h1 class="has-text-align-center has-medium-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Oops! That page can&rsquo;t be found.', 'curator' ); ?></h1>
+<!-- wp:heading {"textAlign":"center","level":1,"style":{"typography":{"fontSize":"5.875rem"}}} -->
+<h1 class="has-text-align-center" id="oops-that-page-can-t-be-found" style="font-size:5.875rem"><?php echo esc_html__( 'Uh-oh.', 'curator' ); ?></h1>
 <!-- /wp:heading -->
 
-<!-- wp:paragraph -->
-<p><?php echo  esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'curator' ); ?></p>
+<!-- wp:paragraph {"align":"center"} -->
+<p class="has-text-align-center"><?php echo esc_html__( 'This page could not be found. Try searching posts using the field below.', 'curator' ); ?></p>
 <!-- /wp:paragraph -->
+
+<!-- wp:search {"label":"","showLabel":false,"placeholder":"<?php echo esc_html__( 'Search', 'curator' ); ?>","buttonUseIcon":true,"borderColor":"foreground"} /-->

+ 2 - 5
curator/templates/404.html

@@ -1,11 +1,8 @@
 <!-- wp:template-part {"slug":"header","tagName":"header"} /-->
 
-<!-- wp:group {"tagName":"main","layout":{"inherit":true}} -->
-<main class="wp-block-group">
-
+<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"48px","bottom":"48px"}}},"layout":{"inherit":true}} -->
+<main class="wp-block-group" style="padding-top:48px;padding-bottom:48px">
 	<!-- wp:pattern {"slug":"curator/404"} /-->
-	<!-- wp:search {"label":""} /-->
-
 </main>
 <!-- /wp:group -->