Skip to content

Commit

Permalink
release: new version
Browse files Browse the repository at this point in the history
### Improvements
- **Dashboard Survey**: Eliminated the feedback survey embedded within the dashboard.
- **Template Refinements**: Incorporated header and footer elements into the 404 template.
- **Template Refinements**: Applied the accent color as the background color to the penultimate section on the homepage.
- **Template Refinements**: Integrated the site background color into the Featured Work section.
- **Style Enhancements**: Introduced the Secondary Accent color in the main theme.json file and specified corresponding colors for each palette individually.

### Bug Fixes
- **Editor Padding**: Rectified the padding issue surrounding the page inside the editor.
- **Editor Styles View**: Resolved the problem of sections expanding in height when previewing in Styles view on the homepage.
  • Loading branch information
cristian-ungureanu authored Oct 30, 2023
2 parents 54e7788 + dedbc4b commit 8e2c885
Show file tree
Hide file tree
Showing 17 changed files with 94 additions and 49 deletions.
12 changes: 0 additions & 12 deletions assets/css/src/common/_generic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,6 @@ footer {
* https://github.com/WordPress/gutenberg/issues/35884
*/

.wp-site-blocks,
body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-block-cover.alignfull,
.is-root-container .wp-block[data-align="full"] > .wp-block-group,
.is-root-container .wp-block[data-align="full"] > .wp-block-cover {
padding-left: var(--wp--custom--spacing--outer);
padding-right: var(--wp--custom--spacing--outer);
}

.wp-site-blocks .alignfull,
.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-cover,
Expand Down
43 changes: 22 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
* Admin class.
*/
class Admin {

/**
* Property to suspend the survey.
* Change it to true to enable it.
*
* @var bool
*/
private $suspend_survey = true;

/**
* Admin constructor.
*/
Expand Down Expand Up @@ -55,6 +64,10 @@ public function setup_otter_notice() {
*/
public function should_show_survey_notice() {

if ( $this->suspend_survey ) {
return false;
}

// Notice was dismissed.
if ( get_option( Constants::CACHE_KEYS['dismissed-survey-notice'], 'no' ) === 'yes' ) {
return false;
Expand Down
10 changes: 5 additions & 5 deletions inc/patterns/layout/columns-testimonials.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
'categories' => array( 'neve-fse' ),
'keywords' => array( 'Columns', 'testimonial', 'client', 'review' ),
'content' => '
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"40px"}},"layout":{"inherit":true,"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-bottom:64px">
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"40px"}},"backgroundColor":"ti-accent","textColor":"ti-fg-alt","layout":{"inherit":true,"type":"constrained"}} -->
<div class="wp-block-group alignfull has-ti-fg-alt-color has-ti-accent-background-color has-text-color has-background" style="margin-top:0px;margin-bottom:0px;padding-top:64px;padding-bottom:64px">
<!-- wp:group {"align":"wide"} -->
<div class="wp-block-group alignwide">
<!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"24px","left":"24px"}}}} -->
Expand All @@ -44,7 +44,7 @@
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size"><strong>JOHN DOE</strong></p>
<p class="has-text-align-left has-small-font-size"><strong>JANE DOE</strong></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand All @@ -66,7 +66,7 @@
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size"><strong>JANE DOE</strong></p>
<p class="has-text-align-left has-small-font-size"><strong>JOHN DOE</strong></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand All @@ -88,7 +88,7 @@
<!-- /wp:paragraph -->
<!-- wp:paragraph {"align":"left","fontSize":"small"} -->
<p class="has-text-align-left has-small-font-size"><strong>GEORGE DOE</strong></p>
<p class="has-text-align-left has-small-font-size"><strong>MARIA DOE</strong></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:group -->
Expand Down
4 changes: 2 additions & 2 deletions inc/patterns/layout/cta-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
'categories' => array( 'neve-fse' ),
'keywords' => array( 'call to action', 'CTA', 'inverted', 'dark', 'centered', 'cover' ),
'content' => '
<!-- wp:cover {"overlayColor":"ti-bg-inv","minHeight":50,"minHeightUnit":"vh","contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"24px","right":"24px","bottom":"24px","left":"24px"},"margin":{"top":"0","bottom":"0"}}}} -->
<div class="wp-block-cover alignfull" style="margin-top:0;margin-bottom:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;min-height:50vh"><span aria-hidden="true" class="wp-block-cover__background has-ti-bg-inv-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"textColor":"ti-fg-alt","layout":{"type":"constrained"}} -->
<!-- wp:cover {"overlayColor":"ti-bg-inv","minHeight":500,"minHeightUnit":"px","contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"24px","right":"24px","bottom":"24px","left":"24px"},"margin":{"top":"0","bottom":"0"}}}} -->
<div class="wp-block-cover alignfull" style="margin-top:0;margin-bottom:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;min-height:500px"><span aria-hidden="true" class="wp-block-cover__background has-ti-bg-inv-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"textColor":"ti-fg-alt","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-ti-fg-alt-color has-text-color"><!-- wp:heading {"textAlign":"center","align":"wide","fontSize":"huge"} -->
<h2 class="wp-block-heading alignwide has-text-align-center has-huge-font-size">Let’s work together on your<br>next project</h2>
<!-- /wp:heading -->
Expand Down
4 changes: 2 additions & 2 deletions inc/patterns/layout/page-cover-bg-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
'categories' => array( 'neve-fse' ),
'keywords' => array( 'call to action', 'page cover', 'inverted', 'dark' ),
'content' => '
<!-- wp:cover {"url":"' . esc_url( $cover_image ) . '","dimRatio":50,"overlayColor":"ti-bg-inv","minHeight":50,"minHeightUnit":"vh","contentPosition":"center center","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"24px","right":"24px","bottom":"24px","left":"24px"},"margin":{"top":"0","bottom":"0"}}}} -->
<div class="wp-block-cover alignfull is-light" style="margin-top:0;margin-bottom:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;min-height:50vh">
<!-- wp:cover {"url":"' . esc_url( $cover_image ) . '","dimRatio":50,"overlayColor":"ti-bg-inv","minHeight":500,"minHeightUnit":"px","contentPosition":"center center","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"24px","right":"24px","bottom":"24px","left":"24px"},"margin":{"top":"0","bottom":"0"}}}} -->
<div class="wp-block-cover alignfull is-light" style="margin-top:0;margin-bottom:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;min-height:500px">
<span aria-hidden="true" class="wp-block-cover__background has-ti-bg-inv-background-color has-background-dim"></span>
<img class="wp-block-cover__image-background" alt="" src="' . esc_url( $cover_image ) . '" data-object-fit="cover"/>
<div class="wp-block-cover__inner-container">
Expand Down
4 changes: 2 additions & 2 deletions inc/patterns/layout/page-cover-with-buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
'categories' => array( 'neve-fse' ),
'keywords' => array( 'Hero', 'Page Hero', 'Cover' ),
'content' => '
<!-- wp:cover {"url":"' . esc_url( $cover_image ) . '","dimRatio":0,"overlayColor":"ti-bg-inv","minHeight":60,"minHeightUnit":"vh","contentPosition":"center center","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"24px","right":"24px","bottom":"24px","left":"24px"}}}} -->
<div class="wp-block-cover alignfull is-light" style="padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;min-height:60vh">
<!-- wp:cover {"url":"' . esc_url( $cover_image ) . '","dimRatio":0,"overlayColor":"ti-bg-inv","minHeight":600,"minHeightUnit":"px","contentPosition":"center center","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"24px","right":"24px","bottom":"24px","left":"24px"}}}} -->
<div class="wp-block-cover alignfull is-light" style="padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;min-height:600px">
<span aria-hidden="true" class="wp-block-cover__background has-ti-bg-inv-background-color has-background-dim-0 has-background-dim"></span>
<img class="wp-block-cover__image-background" alt="" src="' . esc_url( $cover_image ) . '" data-object-fit="cover"/>
<div class="wp-block-cover__inner-container">
Expand Down
4 changes: 2 additions & 2 deletions inc/patterns/layout/portfolio-columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
'categories' => array( 'neve-fse' ),
'keywords' => array( 'Columns', 'portfolio', 'cover' ),
'content' => '
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"margin":{"top":"0","bottom":"0"}}},"backgroundColor":"ti-fg-alt","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull has-ti-fg-alt-background-color has-background" style="margin-top:0;margin-bottom:0;padding-top:64px;padding-bottom:64px">
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"margin":{"top":"0","bottom":"0"}}},"backgroundColor":"ti-bg","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull has-ti-bg-background-color has-background" style="margin-top:0;margin-bottom:0;padding-top:64px;padding-bottom:64px">
<!-- wp:heading {"textAlign":"left","align":"wide"} -->
<h2 class="wp-block-heading alignwide has-text-align-left">Featured Work</h2>
<!-- /wp:heading -->
Expand Down
5 changes: 5 additions & 0 deletions styles/s1-crayola.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"color": "#F5AB1A",
"name": "Accent"
},
{
"slug": "ti-accent-secondary",
"color": "#E1980A",
"name": "Accent Secondary"
},
{
"slug": "ti-bg-inv",
"color": "#14171C",
Expand Down
5 changes: 5 additions & 0 deletions styles/s2-majorelle-blue.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"color": "#5E33D9",
"name": "Accent"
},
{
"slug": "ti-accent-secondary",
"color": "#4F25C6",
"name": "Accent Secondary"
},
{
"slug": "ti-bg-inv",
"color": "#261E3C",
Expand Down
5 changes: 5 additions & 0 deletions styles/s3-zomp.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"color": "#429C91",
"name": "Accent"
},
{
"slug": "ti-accent-secondary",
"color": "#3A8A80",
"name": "Accent Secondary"
},
{
"slug": "ti-bg-inv",
"color": "#1E2827",
Expand Down
5 changes: 5 additions & 0 deletions styles/s4-dark-pastel-red.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"color": "#C6461E",
"name": "Accent"
},
{
"slug": "ti-accent-secondary",
"color": "#A93C19",
"name": "Accent Secondary"
},
{
"slug": "ti-bg-inv",
"color": "#1D1A1A",
Expand Down
5 changes: 5 additions & 0 deletions styles/s5-aztec-gold.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"color": "#BF985C",
"name": "Accent"
},
{
"slug": "ti-accent-secondary",
"color": "#AD8A54",
"name": "Accent Secondary"
},
{
"slug": "ti-bg-alt",
"color": "#1F1F1F",
Expand Down
5 changes: 5 additions & 0 deletions styles/s6-vivid-red-tangelo.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"color": "#DF6018",
"name": "Accent"
},
{
"slug": "ti-accent-secondary",
"color": "#CC5816",
"name": "Accent Secondary"
},
{
"slug": "ti-bg-alt",
"color": "#0E313E",
Expand Down
5 changes: 5 additions & 0 deletions styles/s7-greenlight.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
"color": "#518459",
"name": "Accent"
},
{
"slug": "ti-accent-secondary",
"color": "#46734D",
"name": "Accent Secondary"
},
{
"slug": "ti-bg-inv",
"color": "#14171C",
Expand Down
6 changes: 5 additions & 1 deletion templates/404.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- wp:template-part {"slug":"header","theme":"neve-fse","tagName":"header"} /-->

<!-- wp:group {"tagName":"main","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":"0","margin":{"top":"0","bottom":"0"}}}} -->
<main class="wp-block-group" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:cover {"overlayColor":"ti-bg-inv","minHeight":100,"minHeightUnit":"vh","align":"full"} -->
<div class="wp-block-cover alignfull" style="min-height:100vh"><span aria-hidden="true" class="wp-block-cover__background has-ti-bg-inv-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"style":{"spacing":{"padding":{"top":"64px","bottom":"64px"},"blockGap":"40px"}},"textColor":"ti-bg","layout":{"type":"constrained"}} -->
Expand All @@ -17,4 +19,6 @@ <h2 class="wp-block-heading has-text-align-center has-huge-font-size">404 - Page
<!-- /wp:buttons --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover --></main>
<!-- /wp:group -->
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","theme":"neve-fse","tagName":"footer"} /-->
8 changes: 6 additions & 2 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"horizontal": "clamp( calc( 1.5 * var( --wp--custom--spacing--baseline ) ), 2.222vw, calc( 2 * var( --wp--custom--spacing--baseline ) ) )",
"vertical": "clamp( calc( 1.5 * var( --wp--custom--spacing--baseline ) ), 3.333vw, calc( 3 * var( --wp--custom--spacing--baseline ) ) )"
},
"gutter": "clamp( calc( 1.5 * var( --wp--custom--spacing--baseline ) ), 3.333vw, calc( 3 * var( --wp--custom--spacing--baseline ) ) )",
"outer": "var( --wp--custom--spacing--gutter )"
"gutter": "clamp( calc( 1.5 * var( --wp--custom--spacing--baseline ) ), 3.333vw, calc( 3 * var( --wp--custom--spacing--baseline ) ) )"
},
"typography": {
"fontSmoothing": {
Expand Down Expand Up @@ -53,6 +52,11 @@
"color": "var(--nv-primary-accent, #325ce8)",
"name": "Accent"
},
{
"slug": "ti-accent-secondary",
"color": "var(--nv-secondary-accent, #1B47DA)",
"name": "Accent Secondary"
},
{
"slug": "ti-bg-inv",
"color": "var(--nv-dark-bg, #1A1919)",
Expand Down

0 comments on commit 8e2c885

Please sign in to comment.