Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 204 additions & 0 deletions assets/css/header-footer.css
Original file line number Diff line number Diff line change
@@ -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;
}
}
16 changes: 16 additions & 0 deletions inc/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Comment on lines +26 to +27

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove the CDN dependency here and manage these packages through package.json instead?

This would make the frontend dependencies versioned and reproducible, without relying on external CDNs at runtime.

} );

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 );
9 changes: 1 addition & 8 deletions inc/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

/**
Expand Down
90 changes: 89 additions & 1 deletion parts/footer.html
Original file line number Diff line number Diff line change
@@ -1 +1,89 @@
<!-- wp:pattern {"slug":"libresign/footer"} /-->
<div class="ud-footer mt-5">
<div class="shape shape-1">
<img decoding="async" src="https://libresign.coop/assets/images/footer/shape-1.svg" alt="shape">
</div>
<div class="shape shape-2">
<img decoding="async" src="https://libresign.coop/assets/images/footer/shape-2.svg" alt="shape">
</div>
<div class="shape shape-3">
<img decoding="async" src="https://libresign.coop/assets/images/footer/shape-3.svg" alt="shape">
</div>
<div class="ud-footer-widgets">
<div class="container">
<div class="row">
<div class="col-xl-3 col-lg-4 col-md-6">
<div class="ud-widget">
<a href="https://libresign.coop/#home" class="ud-footer-logo">
<img decoding="async" src="https://libresign.coop/assets/images/logo/logo.svg" alt="logo">
</a>
<p class="ud-widget-desc">We create digital experiences for brands and companies by using technology.</p>
<ul class="ud-widget-socials">
<li>
<a target="_blank" href="https://github.com/LibreSign/libresign" title="LibreSign GitHub repository" rel="noopener">
<i class="lni lni-github-original"></i>
</a>
</li>
<li>
<a target="_blank" href="https://www.linkedin.com/company/libresign/" title="LibreSign LinkedIn page" rel="noopener">
<i class="lni lni-linkedin-original"></i>
</a>
</li>
<li>
<a target="_blank" href="https://t.me/LibreSign" title="LibreSign Telegram group" rel="noopener">
<i class="lni lni-telegram-original"></i>
</a>
</li>
<li>
<a target="_blank" href="https://www.instagram.com/libresign/" title="LibreSign Instagram profile" rel="noopener">
<i class="lni lni-instagram-original"></i>
</a>
</li>
</ul>
</div>
<div class="ud-widget col-lg-5">
<a target="_blank" href="https://www.somos.coop.br/" title="Page to national movement that valozie cooperative initiatives." rel="noopener">
<img decoding="async" src="https://libresign.coop/assets/images/icon/somoscoop.png" alt="icon_somos_coop">
</a>
</div>
</div>
<div class="col-xl-2 col-lg-2 col-md-6 col-sm-6">
<div class="ud-widget">
<h5 class="ud-widget-title">About Us</h5>
<ul class="ud-widget-links">
<li><a href="https://libresign.coop/">Home</a></li>
<li><a href="https://libresign.coop/#features">Features</a></li>
<li><a href="https://libresign.coop/#about">About</a></li>
</ul>
</div>
</div>
<div class="col-xl-2 col-lg-3 col-md-6 col-sm-6">
<div class="ud-widget">
<h5 class="ud-widget-title">Features</h5>
<ul class="ud-widget-links">
<li><a href="https://libresign.coop/posts/advanced-security">Advanced security</a></li>
<li><a href="https://libresign.coop/posts/hybrid-signatures">Hybrid signatures</a></li>
<li><a href="https://libresign.coop/posts/document-validation-by-qr-code">Document validation by QR Code</a></li>
<li><a href="https://libresign.coop/posts/real-time-monitoring">Real-time monitoring</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="ud-footer-bottom">
<div class="container">
<div class="row">
<div class="col-md-8">
<ul class="ud-footer-bottom-left">
<li>
<a href="https://libresign.coop/privacy-policy">Privacy policy</a>
</li>
</ul>
</div>
<div class="col-md-4">
<p class="ud-footer-bottom-right">Developed by <a href="https://librecode.coop" rel="nofollow">LibreCode</a></p>
</div>
</div>
</div>
</div>
</div>
47 changes: 23 additions & 24 deletions parts/header.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"20px","bottom":"20px"}}},"backgroundColor":"base","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide has-base-background-color has-background"
style="padding-top:20px;padding-bottom:20px">
<!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide">
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex"}} -->
<div class="wp-block-group">
<!-- wp:site-logo {"width":60} /-->
<!-- wp:group {"align":"full","className":"wc-blocks-pattern-header-minimal wc-blocks-header-pattern","style":{"spacing":{"padding":{"right":"0","left":"0","top":"1rem","bottom":"1rem"},"margin":{"top":"0px","bottom":"0px"}},"position":{"type":""}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
<div class="wp-block-group alignfull wc-blocks-pattern-header-minimal wc-blocks-header-pattern" id="header" style="margin-top:0px;margin-bottom:0px;padding-top:1rem;padding-right:0;padding-bottom:1rem;padding-left:0"><!-- wp:group {"className":"container","style":{"layout":{"selfStretch":"fill","flexSize":null}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group container"><!-- wp:group {"style":{"spacing":{"blockGap":"20px"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:site-logo {"shouldSyncIcon":false,"className":"is-style-default","style":{"layout":{"selfStretch":"fixed","flexSize":"100px"}}} /--></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}}} -->
<div class="wp-block-group">
<!-- wp:site-title {"level":0} /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"blockGap":"8px"},"layout":{"selfStretch":"fill","flexSize":null}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"}} -->
<div class="wp-block-group"><!-- wp:navigation {"icon":"menu","metadata":{"ignoredHookedBlocks":["woocommerce/mini-cart"]},"style":{"layout":{"selfStretch":"fit","flexSize":null},"spacing":{"blockGap":"var:preset|spacing|10"}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"nowrap"}} -->
<!-- wp:navigation-link {"label":"Home","rel":"noopener noreferrer","url":"https://libresign.coop/","kind":"custom"} /-->

<!-- wp:group {"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"left"}} -->
<div class="wp-block-group">
<!-- wp:navigation {"layout":{"type":"flex","justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|20"},"layout":{"selfStretch":"fit","flexSize":null}},"metadata":{"ignoredHookedBlocks":["woocommerce/customer-account","woocommerce/mini-cart"]}} /--><!-- wp:woocommerce/customer-account {"displayStyle":"icon_only","iconStyle":"line","style":{"spacing":{"margin":{"left":"0.5em"}}}} /--><!-- wp:woocommerce/mini-cart /-->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:navigation-link {"label":"Features","rel":"noopener noreferrer","url":"https://libresign.coop/#features","kind":"custom"} /-->

<!-- wp:navigation-link {"label":"About","rel":"noopener noreferrer","url":"https://libresign.coop/#about","kind":"custom"} /-->

<!-- wp:navigation-link {"label":"Pricing","rel":"noopener noreferrer","url":"https://libresign.coop/pricing/","kind":"custom"} /-->

<!-- wp:navigation-link {"label":"Contact","rel":"noopener noreferrer","url":"https://libresign.coop/#contact","kind":"custom"} /-->

<!-- wp:navigation-link {"label":"Posts","rel":"noopener noreferrer","url":"https://libresign.coop/posts/","kind":"custom"} /-->
<!-- /wp:navigation -->

<!-- wp:woocommerce/customer-account {"displayStyle":"text_only","iconStyle":"line","iconClass":"wc-block-customer-account__account-icon","style":{"spacing":{"padding":{"right":"0","left":"0"}}}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
4 changes: 2 additions & 2 deletions patterns/banner-project-description.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<!-- wp:column {"width":"60%"} -->
<div class="wp-block-column" style="flex-basis:60%">

<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.2"}},"fontSize":"x-large","fontFamily":"heading"} -->
<p class="has-heading-font-family has-x-large-font-size" style="line-height:1.2"><?php echo esc_html_x( 'This transformative project seeks to enhance the gallery\'s infrastructure, accessibility, and exhibition spaces while preserving its rich cultural heritage.', 'Sample descriptive text for a project or post.', 'libresign' ); ?></p>
<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.2"}},"fontSize":"x-large"} -->
<p class="has-x-large-font-size" style="line-height:1.2"><?php echo esc_html_x( 'This transformative project seeks to enhance the gallery\'s infrastructure, accessibility, and exhibition spaces while preserving its rich cultural heritage.', 'Sample descriptive text for a project or post.', 'libresign' ); ?></p>
<!-- /wp:paragraph -->

</div>
Expand Down
Loading
Loading