windhamdavid 1 year ago
parent
commit
7bc19bab1f
4 changed files with 56 additions and 33 deletions
  1. 17 29
      patterns/footer.php
  2. 18 0
      patterns/query-short.php
  3. 10 0
      style-editor.css
  4. 11 4
      theme.json

+ 17 - 29
patterns/footer.php

@@ -16,8 +16,8 @@
 		<!-- /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":"40%"} -->
-			<div class="wp-block-column" style="flex-basis:40%">
+      <!-- wp:column {"width":"50%"} -->
+			<div class="wp-block-column" style="flex-basis:50%">
 				<!-- wp:paragraph -->
 					<p>
 						<i class="bi bi-geo-alt"></i> P.O. Box 49458 Greenwood, SC 29649<br />
@@ -26,7 +26,7 @@
 					</p>
 				<!-- /wp:paragraph -->
 				<!-- wp:paragraph -->
-					<p class="fs-2"> <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"></i></a> <a class="link-light" href="https://www.instagram.com/greenwoodpromise/" target="_blank"><i class="bi bi-instagram"></i></a></p>
+					<p class="fs-2"> <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>
@@ -36,37 +36,25 @@
 				<!-- /wp:paragraph -->
 			</div>
 			<!-- /wp:column -->
-      <!-- wp:column {"width":"10%"} -->
-			<div class="wp-block-column" style="flex-basis:10%">
-				<!-- wp:columns {"isStackedOnMobile":false} -->
-				<div class="wp-block-columns is-not-stacked-on-mobile">
-					<!-- wp:column -->
-					<div class="wp-block-column">
-						<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","orientation":"vertical"}} -->
-						<div class="wp-block-group">
-
-						</div>
-						<!-- /wp:group -->
-					</div>
-					<!-- /wp:column -->
-				</div>
-				<!-- /wp:columns -->
-			</div>
-			<!-- /wp:column -->
-			<!-- wp:column {"width":"40%"} -->
-      <div class="wp-block-column" style="flex-basis:40%">
-				<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","orientation":"vertical"}} -->
+			<!-- 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,"fontSize":"medium","fontFamily":"body"} -->
-					<h3 class="wp-block-heading has-body-font-family has-medium-font-size"><?php esc_html_e( 'The Power of Promise', 'gwp' ); ?></h3>
+					<!-- wp:heading {"level":3} -->
+					<h3 class="wp-block-heading has-large-font-size link-gwp-blue-green amatic"><?php esc_html_e( 'The Power of Promise', 'gwp' ); ?></h3>
 					<!-- /wp:heading -->
-          <!-- wp:image {"width":"120px","height":"auto","sizeSlug":"full","linkDestination":"none"} -->
-          <figure class="wp-block-image is-resized">
-          	<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/_gwp_logo-2.png" alt="" style="width:100px;height:auto" />
+          <!-- wp:image {"alt":"promise","align":"right","width":"80px","linkDestination":"none"} -->
+          <figure class="wp-block-image alignright">
+          	<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/_gwp_logo-2.png"/>
           </figure>
-          <!-- /wp:image -->	
+          <!-- /wp:image -->
 				</div>
 				<!-- /wp:group -->
+				<!-- wp:query -->
+				<div class="wp-block-query">
+					<!-- wp:pattern {"slug":"gwp/query-short"} /-->
+				</div>
+				<!-- /wp:query -->
 			</div>
 			<!-- /wp:column -->
 		</div>

+ 18 - 0
patterns/query-short.php

@@ -0,0 +1,18 @@
+<?php
+/**
+ * Title: Query Short
+ * Slug: gwp/query-short
+ * Categories: posts
+ * Block Types: core/post-conent, core/query, core/post-title
+ *
+ * @package gwp
+ * @since 1.0.0
+ */
+?>
+<!-- wp:query {"query":{"perPage":5,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"layout":{"type":"constrained"}} -->
+<div class="wp-block-query">
+	<!-- wp:post-template -->
+		<!-- wp:post-title {"level":1,"isLink":true,"fontSize":"small"} /-->
+	<!-- /wp:post-template -->
+</div>
+<!-- /wp:query -->

+ 10 - 0
style-editor.css

@@ -83,6 +83,16 @@ body {
   background-color: #006837;
 }
 
+@media (prefers-color-scheme: dark) {
+  .wp-admin a {
+    color: #484c57;
+  }
+  .wp-admin a:hover {
+    color: #006837;
+  }
+
+}
+
 
 /***********************************************************
 ################## Block Editor Styles #####################

+ 11 - 4
theme.json

@@ -14,7 +14,6 @@
 		"color": {
 			"custom": false,
 			"defaultPalette": false,
-			"customGradient": false,
 			"palette": [
 				{
 					"slug": "base",
@@ -36,12 +35,18 @@
 					"color": "#353840",
 					"name": "Secondary"
 				},
+				{
+					"slug": "tirtiary",
+					"color": "#8fff96",
+					"name": "tirtiary"
+				},
 				{
 					"slug": "transparent",
 					"color": "transparent",
 					"name": "Transparent"
 				}
 			],
+			"customGradient": false,
 			"defaultGradients": false,
 			"gradients": [
 				{
@@ -55,14 +60,16 @@
 					"name": "Horizontal white to Primary color"
 				}
 			],
+			"customDuotone": false,
+			"defaultDuotone": false,
 			"duotone": [
 				{
-					"colors": [ "#669c35", "#4f7a28"],
+					"colors": [ "#006837", "#FFFFFF"],
 					"slug": "secondary-primary",
 					"name": "Secondary and primary"
 				},
 				{
-					"colors": ["#4f7a28", "#f0f0f0"],
+					"colors": ["#006837", "#000000"],
 					"slug": "primary-contrast",
 					"name": "Primary and Contrast"
 				}
@@ -108,7 +115,7 @@
 					"fontFace": [
 						{
 							"src": "file:./css/fonts/amatic-sc-v22-latin-700.woff2",
-							"fontFamily": "\"Comic Sans MS\"",
+							"fontFamily": "\"Amatic\"",
 							"fontWeight": "400",
 							"fontStyle": "normal",
 							"fontDisplay": "swap"