Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Dec 20, 2023
1 parent aed3e5a commit 8d1ff31
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Binary file added build/1.11.8/images/image.3c656cfe.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ import { forwardRef, useEffect, useContext } from '@wordpress/element';
import { __unstableUseNavigateRegions as useNavigateRegions } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { useMergeRefs } from '@wordpress/compose';
import AIImg from '../../static/images/sitegen/ai_bg.png';
import { ThemeContext } from '../ThemeContextProvider';
import { THEME_DARK } from '../../../constants';
import { ThemeContext } from '../ThemeContextProvider';
/* For this to be dynamically added to build
* and to be rendered in bg with React JS

Check failure on line 20 in src/OnboardingSPA/components/NewfoldInterfaceSkeleton/index.js

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Insert `·`

Check failure on line 20 in src/OnboardingSPA/components/NewfoldInterfaceSkeleton/index.js

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Insert `·`
*/

Check failure on line 21 in src/OnboardingSPA/components/NewfoldInterfaceSkeleton/index.js

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Insert `·`

Check failure on line 21 in src/OnboardingSPA/components/NewfoldInterfaceSkeleton/index.js

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Insert `·`
import AIImg from '../../static/images/sitegen/ai_bg.png';

function useHTMLClass( className, isDarkMode ) {
useEffect( () => {
Expand All @@ -26,7 +29,7 @@ function useHTMLClass( className, isDarkMode ) {
mainImage.onload = () => {
document.querySelector(
'.nfd-onboarding-skeleton--sitegen'
).style.background = isDarkMode ? `url('${ AIImg }')` : '#ededed';
).style.background = isDarkMode ? `url('${ AIImg }')` : 'var(--sitegen-background)';

Check failure on line 32 in src/OnboardingSPA/components/NewfoldInterfaceSkeleton/index.js

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Replace `·?·`url('${·AIImg·}')`·` with `⏎↹↹↹↹?·`url('${·AIImg·}')`⏎↹↹↹↹`

Check failure on line 32 in src/OnboardingSPA/components/NewfoldInterfaceSkeleton/index.js

View workflow job for this annotation

GitHub Actions / Run Lint Checks

Replace `·?·`url('${·AIImg·}')`·` with `⏎↹↹↹↹?·`url('${·AIImg·}')`⏎↹↹↹↹`
};

const element =
Expand Down
1 change: 1 addition & 0 deletions src/OnboardingSPA/styles/_branding.scss
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ body {

.nfd-onboarding-sitegen-light {

--sitegen-background: #ededed;
--sitegen-background-low: #ededed;
--nfd-onboarding-primary: #000;
--nfd-onboarding-primary-rgb: 0, 0, 0;
Expand Down

0 comments on commit 8d1ff31

Please sign in to comment.