diff --git a/components/ContentWrapper/ContentWrapper.module.scss b/components/ContentWrapper/ContentWrapper.module.scss index caf0d2b5..a365eab9 100644 --- a/components/ContentWrapper/ContentWrapper.module.scss +++ b/components/ContentWrapper/ContentWrapper.module.scss @@ -6,17 +6,6 @@ // Scope WordPress block styles within ContentWrapper. @import 'styles/blocks'; - // custom class set in blocks properties in Gutenberg sidebar - .inner-blueprint-content, - .outer-blueprint-block .wp-block-columns { - width: 60% !important; - margin: 0 auto !important; - } - - .has-white-color { - color: white !important; - } - * { max-width: 100%; } @@ -25,16 +14,7 @@ margin-left: 0; margin-right: 0; } - - h1, - h2, - h3, - h4, - h5, - h6 { - margin: 4.8rem 0; - } - + strong { font-weight: 700; } diff --git a/styles/_blocks.scss b/styles/_blocks.scss index afc75805..daf6cd8e 100644 --- a/styles/_blocks.scss +++ b/styles/_blocks.scss @@ -10,3 +10,43 @@ @import '@wordpress/base-styles/variables'; @import '@wordpress/base-styles/breakpoints'; @import '@wordpress/block-library/src/style'; + +// custom class set in blocks properties in Gutenberg sidebar +.inner-blueprint-content, +.outer-blueprint-block .wp-block-columns { + width: 985px; + margin: 0 auto !important; +} + +.outer-blueprint-hero .wp-block-columns { + .inner-hero { + padding: 2em; + } +} + +.has-white-color { + color: var(--wpe--color--white); +} + +.has-white-background-color { + background: var(--wpe--color--white); +} + +.wp-block-cover__inner-container { + z-index: 999 !important; +} + +.wp-block-button { + background-color: var(--wpe--color--black); + color: var(--wpe--color--white); + + a { + color: var(--wpe--color--white); + text-decoration: none; + + &:hover { + text-decoration: none; + color: var(--wpe--color--white); + } + } +} diff --git a/wp-templates/front-page.js b/wp-templates/front-page.js index 73848f48..81960709 100644 --- a/wp-templates/front-page.js +++ b/wp-templates/front-page.js @@ -9,17 +9,15 @@ import { NavigationMenu, Hero, SEO, + ContentWrapper, } from '../components'; -export default function Component() { - const { data } = useQuery(Component.query, { - variables: Component.variables(), - }); - +export default function Component(props) { const { title: siteTitle, description: siteDescription } = - data?.generalSettings; - const primaryMenu = data?.headerMenuItems?.nodes ?? []; - const footerMenu = data?.footerMenuItems?.nodes ?? []; + props?.data?.generalSettings; + const primaryMenu = props?.data?.headerMenuItems?.nodes ?? []; + const footerMenu = props?.data?.footerMenuItems?.nodes ?? []; + const { title, content } = props?.data?.page ?? { title: '' }; return ( <> @@ -30,26 +28,35 @@ export default function Component() { menuItems={primaryMenu} />
- - -
-

This page is utilizing the "front-page" WordPress template.

- wp-templates/front-page.js -
-
+