-
Notifications
You must be signed in to change notification settings - Fork 0
chore: move the site editor and code snippet state into the theme #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
YvesCesar
wants to merge
9
commits into
main
Choose a base branch
from
chore/theme-state-in-files
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2684533
chore: move the global styles saved in the site editor into theme.json
YvesCesar 59c1d36
chore: move the templates edited in the site editor into the theme
YvesCesar 8cba3cc
chore: load the header and footer assets from the theme instead of co…
YvesCesar 7d9ceda
fix: link the policy to the privacy page set in wordpress
YvesCesar 809e137
fix: drop the references to the heading font the theme no longer decl…
YvesCesar 97724d7
fix: drop the translatepress language switcher from the header
YvesCesar b3839a2
fix: point the coming soon social links to the libresign profiles
YvesCesar b26ba70
fix: link the policy consent to the policy the footer links to
YvesCesar 0c2beaa
fix: keep the catalog and related products texts translatable
YvesCesar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.jsoninstead?This would make the frontend dependencies versioned and reproducible, without relying on external CDNs at runtime.