diff --git a/assets/css/header-footer.css b/assets/css/header-footer.css new file mode 100644 index 0000000..6cf4862 --- /dev/null +++ b/assets/css/header-footer.css @@ -0,0 +1,204 @@ +header.wp-block-template-part { + position: sticky; + z-index: 10; + top: -1px; +} + +#header { + color: var(--wp--preset--color--base); + background-color: var(--wp--preset--color--custom-brand-1); + transition: all .3s ease-out 0s; +} + +#header.is-floating { + -webkit-backdrop-filter: blur(5px); + backdrop-filter: blur(5px); + background-color: hsla(0,0%,100%,.8); + box-shadow: inset 0 -1px 0 0 rgb(0 0 0 / 10%); + color: var(--wp--preset--color--contrast); +} + +#header.is-floating a img { + filter: brightness(0.5); +} + +#header .wc-block-mini-cart__badge { + color: var(--wp--preset--color--base); +} + +.ud-footer { + background: var(--wp--preset--color--custom-brand-3); + padding-top: 100px; + position: relative; + z-index: 1; + overflow: hidden; +} + +.ud-footer ul { + list-style: none; + padding: 0; +} + +.ud-footer .shape { + position: absolute; + z-index: -1; +} + +.ud-footer .shape.shape-1 { + top: 0; + left: 0; +} + +.ud-footer .shape.shape-2 { + top: 0; + right: 0; +} + +.ud-footer .shape.shape-3 { + bottom: 0; + right: 0; +} + +.ud-widget { + margin-bottom: 50px; +} + +.ud-widget .ud-footer-logo { + max-width: 160px; + display: block; + margin-bottom: 10px; +} + +.ud-widget .ud-footer-logo img { + width: 100%; +} + +.ud-widget .ud-widget-desc { + font-size: 15px; + line-height: 24px; + color: #f3f4fe; + margin-bottom: 30px; + max-width: 260px; +} + +.ud-widget .ud-widget-socials { + display: flex; + align-items: center; +} + +.ud-widget .ud-widget-socials a { + font-size: 16px; + color: #dddddd; + margin-right: 20px; + text-decoration: none; + transition: color .3s ease-out 0s; +} + +.ud-widget .ud-widget-socials a:hover { + color: var(--wp--preset--color--custom-brand-1); +} + +.ud-widget .ud-widget-title { + font-weight: 600; + font-size: 18px; + margin-bottom: 35px; + color: var(--wp--preset--color--base-2); +} + +.ud-widget .ud-widget-links { + list-style: none !important; + padding-left: 0 !important; +} + +.ud-widget .ud-widget-links a { + display: inline-block; + margin-bottom: 12px; + font-size: 15px; + line-height: 30px; + color: #f3f4fe; + text-decoration: none !important; + transition: all .3s ease-out 0s; +} + +.ud-widget .ud-widget-links a:hover { + color: var(--wp--preset--color--custom-brand-1); + padding-left: 10px; +} + +.ud-widget .ud-widget-brands { + display: flex; + flex-wrap: wrap; + justify-content: space-between; +} + +.ud-widget .ud-widget-brands a { + display: block; + max-width: 120px; + margin-bottom: 20px; + margin-right: 20px; +} + +@media only screen and (min-width: 1200px) and (max-width: 1399px) { + .ud-widget .ud-widget-brands a { + max-width: 100px; + } +} + +.ud-footer-bottom { + padding: 35px 0; + border-top: 1px solid rgba(136, 144, 164, 0.43); +} + +.ud-footer-bottom .ud-footer-bottom-left { + display: flex; + align-items: center; +} + +@media (max-width: 767px) { + .ud-footer-bottom .ud-footer-bottom-left { + justify-content: center; + } +} + +.ud-footer-bottom .ud-footer-bottom-left a { + font-weight: normal; + font-size: 15px; + color: #f3f4fe; + margin-right: 30px; + display: inline-block; + text-decoration: none; + transition: color .3s ease-out 0s; +} + +@media (max-width: 767px) { + .ud-footer-bottom .ud-footer-bottom-left a { + margin: 0px 8px 8px; + } +} + +.ud-footer-bottom .ud-footer-bottom-left a:hover { + color: var(--wp--preset--color--custom-brand-1); +} + +.ud-footer-bottom .ud-footer-bottom-right { + text-align: right; + font-weight: normal; + font-size: 15px; + color: #f3f4fe; +} + +.ud-footer-bottom .ud-footer-bottom-right a { + color: var(--wp--preset--color--custom-brand-1); + text-decoration: none; +} + +.ud-footer-bottom .ud-footer-bottom-right a:hover { + text-decoration: underline; +} + +@media (max-width: 767px) { + .ud-footer-bottom .ud-footer-bottom-right { + text-align: center; + margin-top: 10px; + } +} diff --git a/inc/assets.php b/inc/assets.php index 2bce94f..d0a73d1 100644 --- a/inc/assets.php +++ b/inc/assets.php @@ -21,3 +21,19 @@ file_exists( $absolute_path ) ? (string) filemtime( $absolute_path ) : null ); }, 20 ); + +add_action( 'wp_enqueue_scripts', function () { + wp_enqueue_style( 'bootstrap-css', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap-grid.min.css', array(), '5.3.0' ); + wp_enqueue_style( 'lineicons', 'https://cdn.lineicons.com/4.0/lineicons.css', array(), null ); +} ); + +add_action( 'wp_enqueue_scripts', function () { + $relative_path = 'assets/css/header-footer.css'; + + wp_enqueue_style( + 'libresign-header-footer', + get_theme_file_uri( $relative_path ), + array(), + (string) filemtime( get_theme_file_path( $relative_path ) ) + ); +}, 40 ); diff --git a/inc/registration.php b/inc/registration.php index ca3c794..a8c7a33 100644 --- a/inc/registration.php +++ b/inc/registration.php @@ -13,14 +13,7 @@ * Return the site policy / privacy page URL. */ function libresign_theme_get_policy_url() { - $policy_page_id = 3; - $policy_url = get_permalink( $policy_page_id ); - - if ( ! empty( $policy_url ) ) { - return $policy_url; - } - - return home_url( '/privacy-police/' ); + return 'https://libresign.coop/privacy-policy'; } /** diff --git a/parts/footer.html b/parts/footer.html index 08e22f7..d98618a 100644 --- a/parts/footer.html +++ b/parts/footer.html @@ -1 +1,89 @@ - +
diff --git a/parts/header.html b/parts/header.html index b8b37f1..2fbc7de 100644 --- a/parts/header.html +++ b/parts/header.html @@ -1,26 +1,25 @@ - -+ +
diff --git a/patterns/text-centered-statement.php b/patterns/text-centered-statement.php index 7b020f9..f906a86 100644 --- a/patterns/text-centered-statement.php +++ b/patterns/text-centered-statement.php @@ -17,8 +17,8 @@ - -
Études is not confined to the past—we are passionate about the cutting edge designs shaping our world today.', 'libresign' ) ); ?>
+ +Études is not confined to the past—we are passionate about the cutting edge designs shaping our world today.', 'libresign' ) ); ?>
diff --git a/patterns/text-project-details.php b/patterns/text-project-details.php index e717717..b362ff4 100644 --- a/patterns/text-project-details.php +++ b/patterns/text-project-details.php @@ -23,8 +23,8 @@