Compare commits

...

6 Commits

Author SHA1 Message Date
921dcf483f Remove default page template
All checks were successful
continuous-integration/drone/push Build is passing
I'm removing it because it was causing the front page to look all
squished up in the editor.
2024-06-15 11:38:51 +05:00
c7f6fb461f dfeine full bleed template 2024-06-15 11:36:20 +05:00
a8cda1677b create single page template 2024-06-15 11:15:46 +05:00
ab26fa5c31 create single blog template 2024-06-15 11:13:52 +05:00
f235e9a234 tweak colors 2024-06-15 11:13:42 +05:00
030f7a358d add hover state to navigation menu 2024-06-15 11:07:00 +05:00
4 changed files with 73 additions and 6 deletions

View File

@ -29,6 +29,16 @@ ul.wp-block-navigation.mobile-header-nav li {
margin-block: .5em;
}
@media (min-width: 1080px) {
.main-header-nav .wp-block-navigation-item:hover,
.main-header-nav .wp-block-navigation-item:focus {
background: var(--wp--preset--color--black);
color: var(--wp--preset--color--white);
border-color: var(--wp--preset--color--black);
cursor: pointer;
}
}
/* style footer on mobile */
@media (min-width: 1080px) {
.wp-block-column.footer-gradient-column {

View File

@ -0,0 +1,7 @@
<!-- wp:template-part {"slug":"header"} /-->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"0","bottom":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0"><!-- wp:post-content /--></div>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","area":"footer"} /-->

View File

@ -1,7 +1,51 @@
<!-- wp:template-part {"slug":"header"} /-->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"0","bottom":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0"><!-- wp:post-content /--></div>
<!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"0","left":"0"},"margin":{"top":"0","bottom":"0"}}}} -->
<div class="wp-block-columns" style="margin-top:0;margin-bottom:0"><!-- wp:column {"width":"19.05%"} -->
<div class="wp-block-column" style="flex-basis:19.05%"></div>
<!-- /wp:column -->
<!-- wp:column {"width":"","style":{"border":{"left":{"color":"var:preset|color|black","width":"1px"},"top":[],"right":[],"bottom":[]}}} -->
<div class="wp-block-column" style="border-left-color:var(--wp--preset--color--black);border-left-width:1px"><!-- wp:group {"metadata":{"name":"Header"},"style":{"spacing":{"blockGap":"0","padding":{"bottom":"0"},"margin":{"bottom":"0"}},"border":{"bottom":{"color":"var:preset|color|black","width":"16px"},"top":{"width":"0px","style":"none"},"right":{"color":"var:preset|color|black","width":"1px"},"left":{"color":"var:preset|color|black","width":"1px"}}},"className":"post-header","layout":{"type":"default"}} -->
<div class="wp-block-group post-header" style="border-top-style:none;border-top-width:0px;border-right-color:var(--wp--preset--color--black);border-right-width:1px;border-bottom-color:var(--wp--preset--color--black);border-bottom-width:16px;border-left-color:var(--wp--preset--color--black);border-left-width:1px;margin-bottom:0;padding-bottom:0"><!-- wp:post-featured-image {"width":"","style":{"border":{"radius":"0px","bottom":{"width":"1px"},"top":[],"right":[],"left":[]}}} /-->
<!-- wp:group {"metadata":{"name":"Post Meta"},"style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--50)"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:post-date {"style":{"typography":{"fontStyle":"normal","fontWeight":"500"}}} /-->
<!-- wp:post-author-name {"style":{"typography":{"fontStyle":"normal","fontWeight":"500"}},"fontFamily":"commit-mono"} /--></div>
<!-- /wp:group -->
<!-- wp:post-title /-->
<!-- wp:post-excerpt /-->
<!-- wp:post-terms {"term":"post_tag","separator":"","className":"is-style-hashtags"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"0","right":"0"},"margin":{"top":"0"}},"border":{"bottom":{"width":"16px"},"top":{"width":"0px","style":"none"},"right":{"width":"1px"},"left":{"width":"1px"}}},"className":"post-content-container","layout":{"type":"constrained","justifyContent":"left","contentSize":"640px","wideSize":""},"fontSize":"standard"} -->
<div class="wp-block-group post-content-container has-standard-font-size" style="border-top-style:none;border-top-width:0px;border-right-width:1px;border-bottom-width:16px;border-left-width:1px;margin-top:0;padding-top:var(--wp--preset--spacing--50);padding-right:0;padding-bottom:var(--wp--preset--spacing--50);padding-left:0"><!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|70","left":"var:preset|spacing|70"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-right:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--70)"><!-- wp:post-content /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:group {"metadata":{"name":"post-bio-container"},"style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|70","right":"var:preset|spacing|70"}}},"backgroundColor":"black","textColor":"white","className":"post-bio-container","layout":{"type":"constrained","contentSize":"640px","wideSize":"1480px"}} -->
<div class="wp-block-group post-bio-container has-white-color has-black-background-color has-text-color has-background has-link-color" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--70)"><!-- wp:heading {"textAlign":"center","style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}}},"textColor":"white","fontSize":"x-large"} -->
<h2 class="wp-block-heading has-text-align-center has-white-color has-text-color has-link-color has-x-large-font-size">About the authors</h2>
<!-- /wp:heading -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"29%"} -->
<div class="wp-block-column" style="flex-basis:29%"><!-- wp:post-author-name {"style":{"typography":{"fontStyle":"normal","fontWeight":"700"}},"fontSize":"standard"} /--></div>
<!-- /wp:column -->
<!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:post-author-biography /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:template-part {"slug":"footer","area":"footer"} /-->

View File

@ -67,7 +67,6 @@
"wideSize": "1760px"
},
"typography": {
"defaultFontSizes": false,
"fluid": false,
"fontFamilies": [
{
@ -517,9 +516,6 @@
"useRootPaddingAwareAlignments": true
},
"styles": {
"color": {
"background": "var(--wp--preset--color--white)"
},
"blocks": {
"core/button": {
"border": {
@ -645,6 +641,9 @@
}
}
},
"color": {
"background": "var(--wp--preset--color--white)"
},
"elements": {
"caption": {
"color": {
@ -674,5 +673,12 @@
"name": "footer",
"title": "Footer"
}
],
"customTemplates": [
{
"name": "page-full-bleed",
"postTypes": ["page", "post"],
"title": "Page with full-width content"
}
]
}