diff --git a/src/components/PosterOverlay/index.tsx b/src/components/PosterOverlay/index.tsx new file mode 100644 index 0000000..7fc380e --- /dev/null +++ b/src/components/PosterOverlay/index.tsx @@ -0,0 +1,15 @@ +import * as S from './styles'; +import { P16 } from '@/components/Text'; + +interface PosterOverlayProps { + text: string; + width?: string; +} + +export const PosterOverlay = ({ text, width = '100%' }: PosterOverlayProps) => { + return ( + + {text} + + ); +}; diff --git a/src/components/PosterOverlay/styles.ts b/src/components/PosterOverlay/styles.ts new file mode 100644 index 0000000..b64a502 --- /dev/null +++ b/src/components/PosterOverlay/styles.ts @@ -0,0 +1,8 @@ +import { styled } from 'styled-components'; + +export const PosterOverlay = styled.div<{ width: string }>` + padding: 2rem 0; + width: ${({ width }) => width}; + text-align: center; + background-color: rgba(0, 0, 0, 0.3); +`;