import { Image, Link, Repeater, RichText, types } from 'react-bricks/rsc' import { LayoutProps, neutralBackgroundSideGroup, paddingBordersSideGroup, sectionDefaults, } from '../LayoutSideProps' import blockNames from '../blockNames' import { bgColors, textColors } from '../colors' import Container from '../shared/components/Container' import Section from '../shared/components/Section' import { logos } from '../shared/defaultImages' interface FooterProps extends LayoutProps { siteUrl: string logo: types.IImageSource copyright: types.TextValue columns: types.RepeaterItems } const Footer: types.Brick = ({ backgroundColor, borderTop, borderBottom, paddingTop, paddingBottom, siteUrl, logo, copyright, columns, }) => { return ( ) } Footer.schema = { name: blockNames.Footer, label: 'Footer', category: 'layout', tags: ['footer'], previewImageUrl: `/bricks-preview-images/${blockNames.Footer}.png`, playgroundLinkLabel: 'View source code on Github', playgroundLinkUrl: 'https://github.com/ReactBricks/reactbricks-starters/blob/main/packages/reactbricks-ui/nextjs-app/src/layout/Footer.tsx', repeaterItems: [ { name: 'columns', itemType: blockNames.FooterColumn, max: 4, }, ], // Defaults when a new brick is added getDefaultProps: () => ({ ...sectionDefaults, backgroundColor: bgColors.LIGHT_GRAY.value, borderTop: 'full', logo: logos.REACT_BRICKS, siteUrl: '', copyright: [ { type: 'paragraph', children: [ { text: 'Visual editing CMS for React.', }, ], }, { type: 'paragraph', children: [ { text: 'Proudly made in Italy', }, ], }, ], columns: [ { title: 'Company', links: [ { linkText: 'About us', linkPath: '/', }, { linkText: 'Why React Bricks?', linkPath: '/', }, { linkText: 'Terms of service', linkPath: '/', }, { linkText: 'Privacy', linkPath: '/', }, ], }, { title: 'Features', links: [ { linkText: 'Visual editing', linkPath: '/', }, { linkText: 'React components', linkPath: '/', }, { linkText: 'Enterprise-ready', linkPath: '/', }, { linkText: 'Roadmap', linkPath: '/', }, ], }, { title: 'Use cases', links: [ { linkText: 'Content editors', linkPath: '/', }, { linkText: 'Developers', linkPath: '/', }, { linkText: 'Enterprises', linkPath: '/', }, ], }, { title: 'Learn', links: [ { linkText: 'Tutorial', linkPath: '/', }, { linkText: 'Documentation', linkPath: '/', }, { linkText: 'Videos', linkPath: '/', }, { linkText: 'Blog', linkPath: '/', }, ], }, ], }), // Sidebar Edit controls for props sideEditProps: [neutralBackgroundSideGroup, paddingBordersSideGroup], } export default Footer