Compare commits

...

2 Commits

Author SHA1 Message Date
desmukh
513576851e nav-menu: make typography lowercase
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-26 12:58:32 +05:00
desmukh
82a0000db8 feat: add custom template for about 2023-01-26 12:56:08 +05:00
3 changed files with 56 additions and 7 deletions

View File

@ -1 +1 @@
<!-- wp:navigation {"ref":104,"layout":{"type":"flex","orientation":"vertical","justifyContent":"right"},"style":{"typography":{"textDecoration":"underline"}}} /--> <!-- wp:navigation {"ref":104,"layout":{"type":"flex","orientation":"vertical","justifyContent":"right"},"style":{"typography":{"textDecoration":"underline","textTransform":"lowercase"}}} /-->

35
templates/about.html Normal file
View File

@ -0,0 +1,35 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"96px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:96px"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"20%"} -->
<div class="wp-block-column" style="flex-basis:20%"><!-- wp:group {"style":{"spacing":{"padding":{"top":"188px","right":"64px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:188px;padding-right:64px"><!-- wp:template-part {"slug":"nav-menu","theme":"autonomic-block-theme","area":"uncategorized"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:column -->
<!-- wp:column {"width":"64%"} -->
<div class="wp-block-column" style="flex-basis:64%"><!-- wp:post-title {"level":1,"textColor":"secondary"} /-->
<!-- wp:post-content /--></div>
<!-- /wp:column -->
<!-- wp:column {"width":"16%"} -->
<div class="wp-block-column" style="flex-basis:16%"><!-- wp:group {"style":{"border":{"width":"1px"},"spacing":{"padding":{"top":"var:preset|spacing|30","right":"var:preset|spacing|30","bottom":"var:preset|spacing|30","left":"var:preset|spacing|30"},"blockGap":"var:preset|spacing|20"}},"layout":{"type":"constrained"},"fontSize":"small"} -->
<div class="wp-block-group has-small-font-size" style="border-width:1px;padding-top:var(--wp--preset--spacing--30);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30)"><!-- wp:heading {"textAlign":"center","level":3,"style":{"typography":{"textTransform":"uppercase"}}} -->
<h3 class="has-text-align-center" style="text-transform:uppercase">Business info</h3>
<!-- /wp:heading -->
<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">Autonomic Co-operative</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->
<!-- wp:group {"style":{"border":{"width":"1px"},"spacing":{"padding":{"top":"var:preset|spacing|40","right":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|40"}},"elements":{"link":{"color":{"text":"var:preset|color|contrast-text"}}}},"borderColor":"primary","backgroundColor":"primary-light","textColor":"contrast-text","layout":{"type":"constrained","justifyContent":"center"},"fontSize":"small"} -->
<div class="wp-block-group has-border-color has-primary-border-color has-contrast-text-color has-primary-light-background-color has-text-color has-background has-link-color has-small-font-size" style="border-width:1px;padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)"><!-- wp:paragraph -->
<p>We are a Co-operative Society, registered in the “United” “Kingdom” under the Co-operative and Community Benefit Societies Act 2014 you can find our registration information <a href="https://mutuals.fca.org.uk/Search/Society/30380" target="_blank" rel="noreferrer noopener">on the Financial Conduct Authority website</a>.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","theme":"autonomic-block-theme"} /-->

View File

@ -1,6 +1,15 @@
{ {
"version": 2, "version": 2,
"$schema": "https://schemas.wp.org/wp/6.0/theme.json", "$schema": "https://schemas.wp.org/wp/6.0/theme.json",
"customTemplates": [
{
"name": "about",
"postTypes": [
"page"
],
"title": "About page"
}
],
"settings": { "settings": {
"appearanceTools": true, "appearanceTools": true,
"color": { "color": {
@ -13,11 +22,6 @@
"color": "#F5FBF8", "color": "#F5FBF8",
"name": "Background" "name": "Background"
}, },
{
"slug": "foreground",
"color": "#dc3e9d",
"name": "Foreground"
},
{ {
"slug": "primary", "slug": "primary",
"color": "#dc3e9d", "color": "#dc3e9d",
@ -32,6 +36,16 @@
"slug": "button", "slug": "button",
"color": "#FF7613", "color": "#FF7613",
"name": "Button color" "name": "Button color"
},
{
"slug": "primary-light",
"color": "#e89cca",
"name": "Primary light"
},
{
"slug": "contrast-text",
"color": "#FFF",
"name": "Contrast text"
} }
] ]
}, },
@ -98,7 +112,7 @@
}, },
"color": { "color": {
"background": "var(--wp--preset--color--background)", "background": "var(--wp--preset--color--background)",
"text": "var(--wp--preset--color--foreground)" "text": "var(--wp--preset--color--primary)"
}, },
"blocks": { "blocks": {
"core/button": { "core/button": {