This commit is contained in:
Mihajlo Medjedovic
2024-06-05 15:53:46 +02:00
commit fd510b88c4
270 changed files with 27578 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
import React from 'react'
import styled from 'styled-components'
import { PageProps } from 'gatsby'
import { BottomSectionArrow } from './styledComponents'
import { Container } from './'
type DataProps = {
children?: React.ReactNode
color?: string
bgColor?: string
bottomArrow?: boolean
}
const StyledSection = styled.div`
position: relative;
padding: 50px 0;
color: ${(props) => props.color || 'white'};
background-color: ${(props) => props.bgColor || '#314351'};
`
export const Section: React.FC<PageProps<DataProps>> = ({
children,
bgColor,
color,
bottomArrow = true
}) => {
return (
<StyledSection bgColor={bgColor} color={color}>
<Container>{children}</Container>
{bottomArrow && <BottomSectionArrow />}
</StyledSection>
)
}