-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: changed branding colors of the storefront
- Loading branch information
1 parent
ecc71bb
commit fdf4d22
Showing
6 changed files
with
35,149 additions
and
35,909 deletions.
There are no files selected for viewing
91 changes: 91 additions & 0 deletions
91
packages/adyen-retail-react-app/overrides/app/components/hero/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* | ||
* Copyright (c) 2021, salesforce.com, inc. | ||
* All rights reserved. | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
*/ | ||
|
||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { | ||
Box, | ||
Flex, | ||
Heading, | ||
Stack, | ||
Image | ||
} from '@salesforce/retail-react-app/app/components/shared/ui' | ||
|
||
const Hero = ({title, img, actions, ...props}) => { | ||
const {src, alt} = img | ||
|
||
return ( | ||
<Box | ||
marginBottom={{base: 0, md: 10}} | ||
height={{lg: 'xl'}} | ||
position={{lg: 'relative'}} | ||
{...props} | ||
> | ||
<Stack | ||
align={'center'} | ||
spacing={{base: 8, md: 10}} | ||
paddingTop={{base: 12, md: 10}} | ||
paddingBottom={{base: 6, md: 10}} | ||
direction={{base: 'column', lg: 'row'}} | ||
> | ||
<Stack flex={1} spacing={{base: 5, md: 8}}> | ||
<Heading | ||
as="h1" | ||
color="#0abf53" | ||
fontSize={{base: '4xl', md: '5xl', lg: '6xl'}} | ||
maxWidth={{base: '75%', md: '50%', lg: 'md'}} | ||
> | ||
{title} | ||
</Heading> | ||
|
||
{actions && <Box width={{base: 'full', lg: 'inherit'}}>{actions}</Box>} | ||
</Stack> | ||
<Flex | ||
flex={1} | ||
justify={'center'} | ||
align={'center'} | ||
position={'relative'} | ||
width={'full'} | ||
paddingTop={{base: 4, lg: 0}} | ||
> | ||
<Box position={'relative'} width={{base: 'full', md: '80%', lg: 'full'}}> | ||
<Image | ||
fit={'cover'} | ||
align={'center'} | ||
width={'100%'} | ||
height={'100%'} | ||
src={src} | ||
alt={alt} | ||
/> | ||
</Box> | ||
</Flex> | ||
</Stack> | ||
</Box> | ||
) | ||
} | ||
|
||
Hero.displayName = 'Hero' | ||
|
||
Hero.propTypes = { | ||
/** | ||
* Hero component image | ||
*/ | ||
img: PropTypes.shape({ | ||
src: PropTypes.string, | ||
alt: PropTypes.string | ||
}), | ||
/** | ||
* Hero component main title | ||
*/ | ||
title: PropTypes.string, | ||
/** | ||
* Call to action component(s) | ||
*/ | ||
actions: PropTypes.element | ||
} | ||
|
||
export default Hero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.4 MB
...ges/adyen-retail-react-app/overrides/app/static/img/sample_checkout_plugins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.