Skip to content

Commit

Permalink
refactor: load bkg png for public pages from assets (#2994)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko authored Mar 13, 2023
1 parent e42f8d9 commit da89fae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .changeset/lucky-emus-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@commercetools-frontend/application-components': patch
'@commercetools-frontend/assets': patch
---

Load background png for public pages from assets

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ import { FC, ReactNode } from 'react';
import { css } from '@emotion/react';
import styled from '@emotion/styled';
import CommercetoolsLogoSvg from '@commercetools-frontend/assets/logos/commercetools_primary-logo_horizontal_white-text_RGB.svg';
import publicBackgroundUrl from '@commercetools-frontend/assets/images/public-background.png';
import { customProperties, useTheme } from '@commercetools-uikit/design-system';
import Spacings from '@commercetools-uikit/spacings';
import Text from '@commercetools-uikit/text';
import { designTokens as appKitDesingTokens } from '../../theming';
// https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros
import base64Background from /* preval */ './public-background';

const year = new Date().getUTCFullYear();

Expand Down Expand Up @@ -42,7 +41,7 @@ const Container = styled.div`
padding: ${customProperties.spacingXl} 0;
justify-content: center;
background-size: cover;
background-image: url(data:image/png;base64,${base64Background});
background-image: url(${publicBackgroundUrl});
background-position: center;
`;
const ContainerColumn = styled.div`
Expand Down

1 comment on commit da89fae

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for merchant-center-application-kit ready!

✅ Preview
https://merchant-center-application-nltfdpnmy-commercetools.vercel.app

Built with commit da89fae.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.