windhamdavid 8 months ago
parent
commit
e242a204d7
8 changed files with 163 additions and 9 deletions
  1. 1 0
      parts/footer.html
  2. 20 0
      parts/header.html
  3. 95 0
      patterns/footer.php
  4. BIN
      screenshot.png
  5. 12 0
      templates/index.html
  6. 9 0
      templates/page-no-title.html
  7. 17 0
      templates/page.html
  8. 9 9
      theme.json

+ 1 - 0
parts/footer.html

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

+ 20 - 0
parts/header.html

@@ -0,0 +1,20 @@
+<!-- wp:group {"style":{"spacing":{"padding":{"top":"25px","bottom":"25px"}}},"className":"has-base-color has-secondary-background-color has-background","layout":{"type":"constrained"}} -->
+<div class="wp-block-group has-base-color has-secondary-background-color has-background" style="padding-top:20px;padding-bottom:20px">
+	<!-- wp:group {"className":"alignwide container","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
+	<div class="wp-block-group alignwide container">
+		<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex"}} -->
+		<!--
+    <div class="wp-block-group"><!-- wp:site-logo {"width":50} /-->
+		<!-- wp:group {"style":{"spacing":{"blockGap":"30"}}} -->
+			<div class="wp-block-group">
+				<!-- wp:site-title {"level":0} /-->
+			</div>
+		<!-- /wp:group -->
+		</div>
+	<!-- /wp:group -->
+	<!-- wp:navigation {"ref":5,"layout":{"type":"flex","justifyContent":"left","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|40"},"layout":{"selfStretch":"fit","flexSize":null}}} /-->
+  -->
+</div>
+	<!-- /wp:group -->
+</div>
+<!-- /wp:group -->

+ 95 - 0
patterns/footer.php

@@ -0,0 +1,95 @@
+<?php
+
+/**
+ * Title: Footer
+ * Slug: uhp/footer
+ * Categories: footer
+ * Block Types: core/template-part/footer
+ */
+?>
+
+<!-- wp:group {"align":"full","textColor":"base","backgroundColor":"primary","layout":{"type":"constrained"}} -->
+<div class="wp-block-group alignfull has-text-color-base has-base-color has-primary-background-color has-text-color has-background">
+
+	<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|50"}}}} -->
+	<div class="wp-block-group alignwide container" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--50)">
+		
+		<!-- wp:spacer {"height":"var:preset|spacing|50"} -->
+		<div style="height:var(--wp--preset--spacing--50)" aria-hidden="true" class="wp-block-spacer"></div>
+		<!-- /wp:spacer -->
+		
+		<!-- wp:columns {"style":{"spacing":{"padding":{"top":"var:preset|spacing|10"}}}} -->
+		<div class="wp-block-columns" style="padding-top:var(--wp--preset--spacing--10)">
+			
+			<!-- wp:column {"width":"50%"} -->
+			<div class="wp-block-column" style="flex-basis:50%">
+				<!-- wp:paragraph -->
+				<p>
+				</p>
+				<!-- /wp:paragraph -->
+				<!-- wp:paragraph -->
+				<p class="fs-3"> <a class="link-light" href="https://www.linkedin.com/company/the-greenwood-promise?trk=public_post_follow-view-profile" target="_blank"><i class="bi bi-linkedin"></i></a> <a class="link-light" href="https://www.facebook.com/TheGreenwoodPromise/" target="_blank"><i class="bi bi-facebook"></i></a> <a class="link-light" href="https://twitter.com/thegwdpromise" target="_blank"><i class="bi bi-twitter-x"></i></a> <a class="link-light" href="https://www.instagram.com/greenwoodpromise/" target="_blank"><i class="bi bi-instagram"></i></a></p>
+				<!-- /wp:paragraph -->
+				<!-- wp:spacer {"height":"var:preset|spacing|50"} -->
+				<div style="height:var(--wp--preset--spacing--50)" aria-hidden="true" class="wp-block-spacer"></div>
+				<!-- /wp:spacer -->
+			</div>
+			<!-- /wp:column -->
+			
+			<!-- wp:column {"width":"50%"} -->
+			<div class="wp-block-column" style="flex-basis:50%">
+				
+				<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","orientation":"horizontal"}} -->
+				<div class="wp-block-group">
+
+					<!-- wp:heading {"level":3,"style":{"typography":{"fontStyle":"normal","fontSize":"large","fontWeight":"100"}}} -->
+					<h3 class="wp-block-heading has-large-font-size has-text-color-base has-font-weight-100"></h3>
+					<!-- /wp:heading -->
+
+				</div>
+				<!-- /wp:group -->
+
+				<!-- wp:query -->
+				<div class="wp-block-query">
+					<!-- wp:pattern {"slug":"gwp/query-short"} /-->
+				</div>
+				<!-- /wp:query -->
+
+			</div>
+			<!-- /wp:column -->
+
+		</div>
+		<!-- /wp:columns -->
+
+		<!-- wp:spacer {"height":"var:preset|spacing|50"} -->
+		<div style="height:var(--wp--preset--spacing--50)" aria-hidden="true" class="wp-block-spacer"></div>
+		<!-- /wp:spacer -->
+
+		<!-- wp:group {"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between","horizontalAlignment":"top"}} -->
+		<div class="wp-block-group">
+
+			<!-- wp:group {"style":{"spacing":{"blockGap":"6px"}},"layout":{"type":"flex","flexWrap":"wrap"}} -->
+			<div class="wp-block-group">
+				<!-- wp:paragraph {"fontSize":"small"} -->
+				<p class="has-small-font-size"><?php esc_html_e('&copy;', 'gwp'); ?></p>
+				<!-- /wp:paragraph -->
+				<!-- wp:site-title {"level":0,"style":{"typography":{"fontStyle":"normal","fontWeight":"400"}},"fontSize":"small"} /-->
+			</div>
+			<!-- /wp:group -->
+
+			<!-- wp:paragraph -->
+			<p class="float-end mb-1"><a href="#"><i class="bi bi-arrow-up-circle-fill text-light fs-2"></i></a></p>
+			<!-- /wp:paragraph -->
+
+		</div>
+		<!-- /wp:group -->
+
+	</div>
+	<!-- /wp:group -->
+
+	<!-- wp:spacer {"height":"10px"} -->
+	<div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>
+	<!-- /wp:spacer -->
+
+</div>
+<!-- /wp:group -->

BIN
screenshot.png


+ 12 - 0
templates/index.html

@@ -0,0 +1,12 @@
+<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /-->
+
+<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
+<main class="wp-block-group has-base-background-color has-background" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--50);">
+	<!-- wp:heading {"level": 1} -->
+	<h1 class="wp-block-heading">News</h1>
+	<!-- /wp:heading -->
+	<!-- wp:pattern {"slug":"gwp/query"} /-->
+</main>
+<!-- /wp:group -->
+
+<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /-->

+ 9 - 0
templates/page-no-title.html

@@ -0,0 +1,9 @@
+<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /-->
+
+<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
+<main class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--50);">
+	<!-- wp:post-content {"align":"full","layout":{"type":"constrained"}} /-->
+</main>
+<!-- /wp:group -->
+
+<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /-->

+ 17 - 0
templates/page.html

@@ -0,0 +1,17 @@
+<!-- wp:template-part {"slug":"header","tagName":"header","className":"site-header"} /-->
+
+<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"var:preset|spacing|80","bottom":"var:preset|spacing|80"}}},"layout":{"type":"default"}} -->
+<main class="wp-block-group" style="padding-top:var(--wp--preset--spacing--80);padding-bottom:var(--wp--preset--spacing--80)">
+	<!-- wp:group {"align":"full","layout":{"type":"constrained"}} -->
+	<div class="wp-block-group alignfull">
+		<!-- wp:post-title {"level":1} /-->
+	</div>
+	<!-- /wp:group -->
+	<!-- wp:post-content {"layout":{"type":"constrained"}} /-->
+	<!-- wp:spacer {"height":"1rem"} -->
+	<div style="height:1rem" aria-hidden="true" class="wp-block-spacer"></div>
+	<!-- /wp:spacer -->
+</main>
+<!-- /wp:group -->
+
+<!-- wp:template-part {"slug":"footer","tagName":"footer","className":"site-footer"} /-->

+ 9 - 9
theme.json

@@ -20,6 +20,11 @@
 					"color": "#FFFFFF",
 					"name": "Base"
 				},
+        {
+					"slug": "black",
+					"color": "#000000",
+					"name": "Base"
+				},
 				{
 					"slug": "contrast",
 					"color": "#808285",
@@ -44,15 +49,10 @@
 			"customGradient": false,
 			"defaultGradients": false,
 			"gradients": [
-				{
-					"slug": "primary-white",
-					"gradient": "linear-gradient(#D2D2D2 49.9%,#fff 50%)",
-					"name": "Primary color to white"
-				},
-				{
-					"slug": "white-primary",
-					"gradient": "linear-gradient(#fff 49.9%,#CBCBCB 50%)",
-					"name": "Horizontal white to color"
+        {
+					"slug": "primary-secondary",
+					"gradient": "linear-gradient(to right, #009C9F 0%, #19458C 100%)",
+					"name": "Primary Secondary"
 				}
 			],
 			"customDuotone": false,