windhamdavid 5 months ago
parent
commit
0c4817cb30
6 changed files with 47 additions and 19 deletions
  1. 1 1
      parts/footer.html
  2. 1 0
      parts/sidebar.html
  3. 8 18
      patterns/footer.php
  4. 14 0
      patterns/sidebar.php
  5. 6 0
      style.css
  6. 17 0
      templates/page-sidebar.html

+ 1 - 1
parts/footer.html

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

+ 1 - 0
parts/sidebar.html

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

+ 8 - 18
patterns/footer.php

@@ -2,7 +2,7 @@
 
 /**
  * Title: Footer
- * Slug: uhp/footer
+ * Slug: lnr/footer
  * Categories: footer
  * Block Types: core/template-part/footer
  */
@@ -34,18 +34,6 @@
 				<!-- wp:paragraph {"style":{"typography":{"lineHeight":"0","font-size":"1.2rem"}}} -->
 				<p style="font-size:1.2rem;line-height:0">(864) 366-5122</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 -->
-
-				<!-- wp:buttons -->
-				<div class="wp-block-buttons">
-				<!-- wp:button -->
-				<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://lps.ovid/contact/">Contact Us</a></div>
-				<!-- /wp:button -->
-				</div>
-				<!-- /wp:buttons -->
 			</div>
 			<!-- /wp:column -->
 		
@@ -64,12 +52,14 @@
 			<!-- wp:column {"width":"33%"} -->
 			<div class="wp-block-column" style="flex-basis:33%">
 				<!-- wp:image {"sizeSlug":"full","linkDestination":"none"} -->
-				<figure class="wp-block-image"><img src="<?php echo get_template_directory_uri(); ?>/img/SRH_Logo.png" alt="" class="wp-image"/></figure>
+				<figure class="wp-block-image"><img src="<?php echo get_template_directory_uri(); ?>/img/SRH_Logo.png" alt="Self Regional Healthcare"/></figure>
 				<!-- /wp:image -->
-				<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
-				<div class="wp-block-buttons">
-				<!-- wp:button {"backgroundColor":"contrast","textColor":"base","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}}}} -->
-				<div class="wp-block-button"><a class="wp-block-button__link wp-element-button has-base-color has-contrast-background-color has-text-color has-background has-link-color" href="https://selfregional.org">www.selfregional.org</a></div>
+				<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"},"style":{"spacing":{"blockGap":"0","margin":{"top":"0","bottom":"0"}}}} -->
+				<div class="wp-block-buttons" style="margin-top:0;margin-bottom:0">
+				<!-- wp:button {"textAlign":"center","backgroundColor":"contrast","textColor":"base","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}},"spacing":{"padding":{"left":"var:preset|spacing|40","right":"var:preset|spacing|40"}}}} -->
+				<div class="wp-block-button">
+					<a class="wp-block-button__link has-base-color has-contrast-background-color has-text-color has-background has-link-color has-text-align-center wp-element-button" href="https://selfregional.org" style="padding-right:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)">www.selfregional.org</a>
+				</div>
 				<!-- /wp:button -->
 				</div>
 				<!-- /wp:buttons -->

+ 14 - 0
patterns/sidebar.php

@@ -0,0 +1,14 @@
+<?php
+
+/**
+ * Title: Sidebar
+ * Slug: lnr/sidebar
+ * Categories: sidebar
+ * 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-contrast-light-color has-primary-background-color has-text-color has-background">
+</div>
+<!-- /wp:group -->

+ 6 - 0
style.css

@@ -18,4 +18,10 @@ Thanks:
 
 .no-padding {
   margin-block-start: 0;
+}
+
+@media (max-width: 768px) {
+  .entry-content {
+      padding: 0 10px 0;   
+  }
 }

+ 17 - 0
templates/page-sidebar.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"} /-->