Skip to content

Commit

Permalink
Merge pull request #11 from navnorth/NN-424
Browse files Browse the repository at this point in the history
NN-424 - NN Web WP Footer
  • Loading branch information
johnpaulbalagolan authored Feb 7, 2025
2 parents aaa35e3 + 50950f6 commit 3bc6d62
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 1 deletion.
9 changes: 8 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,11 @@ function custom_render_block_core_navigation (string $block_content, array $bloc
return $block_content;
}

add_filter('render_block', 'custom_render_block_core_navigation', null, 2);
add_filter('render_block', 'custom_render_block_core_navigation', null, 2);

function nn_current_year_shortcode () {
$year = date_i18n ('Y');
return $year;
}

add_shortcode ('current_year', 'nn_current_year_shortcode');
1 change: 1 addition & 0 deletions parts/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"navnorth/footer"} /-->
92 changes: 92 additions & 0 deletions patterns/footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?php
/**
* Title: Footer with hero and 3 column
* Slug: navnorth/footer
* Categories: footer
* Block Types: core/template-part/footer
* Description: A footer section with hero section and 3 column
*/
?>
<!-- wp:group {"className":"footer-container","style":{"spacing":{"padding":{"top":"100px"},"blockGap":"26px"},"elements":{"link":{"color":{"text":"var:preset|color|base"}}},"background":{"backgroundImage":{"url":"http://codex.local/wp-content/uploads/2025/01/nn-logo-mark-white.svg","id":502,"source":"file","title":"nn-logo-mark-white"},"backgroundSize":"550px","backgroundAttachment":"scroll","backgroundPosition":"100% 30%","backgroundRepeat":"no-repeat"}},"backgroundColor":"cyan","textColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-group footer-container has-base-color has-cyan-background-color has-text-color has-background has-link-color" style="padding-top:100px"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"0","bottom":"0"},"blockGap":"0"}},"layout":{"type":"default"}} -->
<div class="wp-block-group alignwide" style="padding-top:0;padding-bottom:0"><!-- wp:group {"style":{"spacing":{"padding":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained","justifyContent":"left","contentSize":"875px"}} -->
<div class="wp-block-group" style="padding-top:0;padding-bottom:0"><!-- wp:group {"templateLock":"all","lock":{"move":true,"remove":true},"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:heading {"className":"footer-hero-title","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"textColor":"base"} -->
<h2 class="wp-block-heading footer-hero-title has-base-color has-text-color has-link-color">Invest in the future of education</h2>
<!-- /wp:heading -->

<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"className":"is-style-nn-yellow footer-button-contact-us"} -->
<div class="wp-block-button is-style-nn-yellow footer-button-contact-us"><a class="wp-block-button__link wp-element-button" href="/contact-us">contact us</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:columns {"align":"wide","className":"footer-navigation-section-layout","style":{"spacing":{"margin":{"top":"38px","bottom":"0px"},"blockGap":{"top":"0px","left":"81px"}}}} -->
<div class="wp-block-columns alignwide footer-navigation-section-layout" style="margin-top:38px;margin-bottom:0px"><!-- wp:column {"width":"19%","layout":{"type":"default"}} -->
<div class="wp-block-column" style="flex-basis:19%"><!-- wp:group {"className":"footer-logo-social-container","style":{"dimensions":{"minHeight":""},"layout":{"selfStretch":"fit","flexSize":null},"spacing":{"blockGap":"16px"}},"layout":{"type":"flex","orientation":"vertical","flexWrap":"wrap","justifyContent":"left"}} -->
<div class="wp-block-group footer-logo-social-container"><!-- wp:image {"lightbox":{"enabled":false},"id":480,"width":"232px","height":"auto","sizeSlug":"full","linkDestination":"custom"} -->
<figure class="wp-block-image size-full is-resized"><a href="/" rel="home"><img src="http://codex.local/wp-content/uploads/2025/01/Logo-Horizontal.svg" alt="" class="wp-image-480" style="width:232px;height:auto"/></a></figure>
<!-- /wp:image -->

<!-- wp:group {"className":"footer-social-section","style":{"spacing":{"blockGap":"10px"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group footer-social-section"><!-- wp:social-links {"iconColor":"base","iconColorValue":"#FFFFFF","openInNewTab":true,"size":"has-normal-icon-size","className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-normal-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"https://www.linkedin.com/company/navnorth","service":"linkedin"} /--></ul>
<!-- /wp:social-links -->

<!-- wp:social-links {"iconColor":"base","iconColorValue":"#FFFFFF","openInNewTab":true,"size":"has-normal-icon-size","className":"is-style-logos-only"} -->
<ul class="wp-block-social-links has-normal-icon-size has-icon-color is-style-logos-only"><!-- wp:social-link {"url":"https://twitter.com/navnorth","service":"x","label":""} /--></ul>
<!-- /wp:social-links -->

<!-- wp:social-links {"iconColor":"base","iconColorValue":"#FFFFFF","openInNewTab":true,"size":"has-normal-icon-size","className":"is-style-logos-only","style":{"layout":{"selfStretch":"fit","flexSize":null}},"backgroundColor":"cyan"} -->
<ul class="wp-block-social-links has-normal-icon-size has-icon-color is-style-logos-only has-cyan-background-color has-background"><!-- wp:social-link {"url":"https://www.facebook.com/navnorth","service":"facebook"} /--></ul>
<!-- /wp:social-links --></div>
<!-- /wp:group -->

<!-- wp:image {"lightbox":{"enabled":false},"id":484,"width":"101px","height":"auto","aspectRatio":"4.6","scale":"cover","sizeSlug":"full","linkDestination":"custom","className":"footer-muse-logo"} -->
<figure class="wp-block-image size-full is-resized footer-muse-logo"><a href="https://museable.com/" target="_blank" rel=" noreferrer noopener"><img src="http://codex.local/wp-content/uploads/2025/01/Museable-Logo.svg" alt="" class="wp-image-484" style="aspect-ratio:4.6;object-fit:cover;width:101px;height:auto"/></a></figure>
<!-- /wp:image --></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"width":"60%","className":"footer-navigation-layout-parent"} -->
<div class="wp-block-column footer-navigation-layout-parent" style="flex-basis:60%"><!-- wp:group {"className":"footer-navigation-section-container","style":{"spacing":{"blockGap":"32px"}},"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"left","verticalAlignment":"top"}} -->
<div class="wp-block-group footer-navigation-section-container"><!-- wp:group {"style":{"spacing":{"blockGap":"24px"},"layout":{"selfStretch":"fill","flexSize":null}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group"><!-- wp:heading {"className":"has-medium-font-size","style":{"typography":{"fontStyle":"normal","fontWeight":"700"},"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"textColor":"base","fontFamily":"body"} -->
<h2 class="wp-block-heading has-medium-font-size has-base-color has-text-color has-link-color has-body-font-family" style="font-style:normal;font-weight:700"><a href="/our-work" aria-label="Navigate To Navigation North Our Work Page">OUR WORK</a></h2>
<!-- /wp:heading -->

<!-- wp:group {"style":{"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:navigation {"ref":490,"overlayMenu":"never","className":"footer-navigaion-section-list","style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"spacing":{"blockGap":"18px"}},"fontSize":"small","layout":{"type":"flex","orientation":"vertical"}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"24px"},"layout":{"selfStretch":"fill","flexSize":null}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group"><!-- wp:heading {"className":"has-medium-font-size","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}}},"textColor":"base","fontFamily":"body"} -->
<h2 class="wp-block-heading has-medium-font-size has-base-color has-text-color has-link-color has-body-font-family"><a href="/" aria-label="Navigate To Navigation North Home Page">NAVIGATION NORTH</a></h2>
<!-- /wp:heading -->

<!-- wp:group {"style":{"spacing":{"blockGap":"18px"}},"layout":{"type":"flex","orientation":"vertical"}} -->
<div class="wp-block-group"><!-- wp:navigation {"ref":491,"overlayMenu":"never","className":"footer-navigaion-section-list","style":{"typography":{"fontStyle":"normal","fontWeight":"400"},"spacing":{"blockGap":"var:preset|spacing|10"}},"fontSize":"small","layout":{"type":"flex","orientation":"vertical"}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

<!-- wp:group {"align":"wide","className":"footer-bottom-layout","style":{"spacing":{"margin":{"top":"38px","bottom":"0"},"padding":{"right":"10px","left":"10px","top":"10px","bottom":"10px"}}}} -->
<div class="wp-block-group alignwide footer-bottom-layout" style="margin-top:38px;margin-bottom:0;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px"><!-- wp:group {"className":"footer-bottom-layout-children","style":{"spacing":{"padding":{"top":"32px","bottom":"32px"},"margin":{"bottom":"0"}}},"layout":{"type":"constrained","contentSize":"875px"}} -->
<div class="wp-block-group footer-bottom-layout-children" style="margin-bottom:0;padding-top:32px;padding-bottom:32px"><!-- wp:group {"templateLock":"all","lock":{"move":true,"remove":true},"align":"full","className":"footer-bottom","style":{"spacing":{"padding":{"top":"10px"}},"border":{"top":{"width":"1px"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignfull footer-bottom" style="border-top-width:1px;padding-top:10px"><!-- wp:paragraph -->
<p>© [current_year] Navigation North</p>
<!-- /wp:paragraph -->

<!-- wp:group {"className":"footer-bottom-link","layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group footer-bottom-link"><!-- wp:navigation {"ref":461,"overlayMenu":"never","style":{"spacing":{"blockGap":"24px"}}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
127 changes: 127 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,75 @@
* Template: twentytwentyfour
* Text Domain: navnorth
**/
/** NN Footer styling **/
.footer-container {
background-size: 550px !important;
}
.footer-logo-social-container .wp-block-social-link:hover {
transform: none !important;
}
.footer-logo-social-container a:hover {
color: var(--wp--preset--color--light-gray) !important;
}
.footer-navigation-section-container a:hover {
color: var(--wp--preset--color--primary-light) !important;
text-decoration: none;
}
.footer-hero-title {
color: var(--wp--preset--color--paper);
font-family: var(--wp--preset--font-family--heading);
font-size: var(--wp--preset--font-size--x-large);
font-weight: 700;
line-height: 76.8px;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.block-editor-block-list__layout .block-editor-block-list__block .footer-bottom,
.footer-bottom {
color: var(--wp--preset--color--paper);
border-top: 1px solid var(--wp--preset--color--divider-main);
}
.footer-bottom p {
font-family: var(--wp--preset--font-family--body);
font-size: var(--wp--preset--font-size--body-2);
font-weight: 400;
line-height: 24px;
text-transform: none;
}
.footer-bottom-link a {
font-family: var(--wp--preset--font-family--body);
font-size: var(--wp--preset--font-size--body-1);
font-weight: 400;
line-height: 24px;
text-transform: none;
}
.footer-navigation-section-container .wp-block-heading,
.footer-navigation-section-container .wp-block-heading a {
font-family: var(--wp--preset--font-family--heading) !important;
color: var(--wp--preset--color--paper) !important;
font-size: var(--wp--preset--font-size--h-5);
font-weight: 700;
line-height: 29.9px;
letter-spacing: 0.02em;
text-decoration: none;
}
.footer-navigation-section-container .wp-block-heading a:hover {
color: var(--wp--preset--color--primary-light) !important;
}
.footer-navigation-section-container .footer-navigaion-section-list a {
font-family: var(--wp--preset--font-family--body) !important;
color: var(--wp--preset--color--paper) !important;
font-size: var(--wp--preset--font-size--button);
font-weight: 600;
line-height: 26px;
}
.footer-navigation-section-container .footer-navigaion-section-list a:hover {
color: var(--wp--preset--color--primary-light) !important;
text-decoration-line: underline;
text-decoration-style: solid;
text-underline-position: from-font;
text-decoration-skip-ink: auto;
}
/* NN Blue Button Hover Style */
.wp-block-button
> .wp-block-button__link:not(.has-text-color, .has-background):hover {
Expand Down Expand Up @@ -65,6 +134,9 @@ header .header-navigation ul.wp-block-navigation li.current-menu-item {
.wp-block-navigation__responsive-container {
display: none;
}
.footer-navigation-layout-parent {
flex-basis: 100% !important;
}
}
@media (min-width: 600px) and (max-width: 1199px) {
.wp-block-navigation__responsive-container-open:not(.always-shown) {
Expand All @@ -78,6 +150,9 @@ header .header-navigation ul.wp-block-navigation li.current-menu-item {
) {
display: none;
}
.footer-navigation-section-layout {
gap: 81px !important;
}
}
@media screen and (max-width: 480px) {
.wp-block-site-logo {
Expand All @@ -88,6 +163,58 @@ header .header-navigation ul.wp-block-navigation li.current-menu-item {
padding-left: 15px;
padding-right: 15px;
}
/* NN Footer Hero style*/
.footer-container {
background-size: 400px !important;
background-position: 119px -126px !important;
padding-top: 60px !important;
padding-bottom: 30px !important;
}
.footer-hero {
padding-top: 100px;
padding-bottom: 0px;
}
.footer-hero-title {
font-size: var(--wp--preset--font-size--medium);
font-weight: 700;
line-height: 38.4px;
letter-spacing: 0.06em;
}
.footer-logo-social-container {
gap: 32px !important;
}
.footer-navigation-section-container {
gap: 30px;
}
.footer-navigation-section-layout {
gap: 81px !important;
}
.footer-navigation-section-container a {
white-space: nowrap;
}
.footer-bottom-layout {
padding: 0px !important;
}
.footer-bottom-layout-children {
padding: 0px !important;
}
.footer-hero .footer-contact-button {
margin-block-start: 28px;
}
/* NN Footer Bottom*/
.footer-bottom {
flex-flow: wrap-reverse;
}
.footer-bottom .footer-bottom-title {
font-size: 18px;
font-weight: 500;
line-height: 24px;
}
.footer-bottom .footer-bottom-link a {
font-size: 18px;
font-weight: 500;
line-height: 26px;
}
h1 {
font-size: var(--wp--preset--font-size--x-large);
}
Expand Down

0 comments on commit 3bc6d62

Please sign in to comment.