import React from 'react' import { Avatar, Box, IconButton, Stack, Typography } from '@mui/material' import ExpandMore from '@mui/icons-material/ExpandMore' import { EmailIconLink, InstagramIconLink, FacebookIconLink } from 'components/atoms/IconLinks/index.js' const Hero = (props: { scrollTarget?: React.ForwardedRef }) => { return ( ({ position: 'relative', minHeight: '100vh', boxShadow: '0 0.25em 0.5em 0 rgba(0, 0, 0, 0.25)', backgroundImage: 'url("images/banner2.webp")', backgroundPosition: 'center center', backgroundAttachment: { xs: 'scroll !important', md: 'fixed' }, backgroundSize: 'cover', display: 'flex', justifyContent: 'center', alignItems: 'center', wrap: 'wrap', ...(theme.palette.mode === 'dark' && { backgroundImage: 'url("images/banner2.png")', }), ...(theme.palette.mode === 'light' && { backgroundImage: 'url("images/banner2.png")', '&::before': { content: '""', position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', zIndex: 0, backgroundImage: 'inherit', backgroundPosition: 'center center', backgroundAttachment: 'inherit', backgroundSize: 'cover', filter: 'blur(5px)', }, }), })}> ({ display: 'flex', justifyContent: 'center', alignItems: 'center', gap: '3em', zIndex: 1, [theme.breakpoints.down('md')]: { flexDirection: 'column', textAlign: 'center', padding: '2em', }, [theme.breakpoints.up('md')]: { flexDirection: 'row', textAlign: 'right', padding: '6em', }, })}> Compagnia d'Arme{' '} del {' '} Santo Luca Ferrara (t.palette.mode === 'light' ? 'inherit' : 'text.secondary')}> {props.scrollTarget && ( (props.scrollTarget as React.RefObject).current?.scrollIntoView()} sx={{ position: 'absolute', p: 1, bottom: 2, left: '50%', transform: 'translate(-50%, 0)', color: t => (t.palette.mode === 'light' ? 'white' : 'text.primary'), }}> )} ) } export default Hero