zucchetti-sa5/themes/onepirate/modules/views/ProductHero.js

51 lines
1.5 KiB
JavaScript
Raw Normal View History

2022-10-28 11:41:58 +02:00
import * as React from 'react';
import Button from '../components/Button';
import Typography from '../components/Typography';
import ProductHeroLayout from './ProductHeroLayout';
const backgroundImage =
'https://images.unsplash.com/photo-1534854638093-bada1813ca19?auto=format&fit=crop&w=1400';
export default function ProductHero() {
return (
<ProductHeroLayout
sxBackground={{
backgroundImage: `url(${backgroundImage})`,
backgroundColor: '#7fc7d9', // Average color of the background image.
backgroundPosition: 'center',
}}
>
{/* Increase the network loading priority of the background image. */}
<img
style={{ display: 'none' }}
src={backgroundImage}
alt="increase priority"
/>
<Typography color="inherit" align="center" variant="h2" marked="center">
Upgrade your Sundays
</Typography>
<Typography
color="inherit"
align="center"
variant="h5"
sx={{ mb: 4, mt: { sx: 4, sm: 10 } }}
>
Enjoy secret offers up to -70% off the best luxury hotels every Sunday.
</Typography>
<Button
color="secondary"
variant="contained"
size="large"
component="a"
href="/premium-themes/onepirate/sign-up/"
sx={{ minWidth: 200 }}
>
Register
</Button>
<Typography variant="body2" color="inherit" sx={{ mt: 2 }}>
Discover the experience
</Typography>
</ProductHeroLayout>
);
}