import React from 'react'; import Link from './Link'; interface Link { to: string; text: string; } interface BannerProps { title: string; description: string; links: Array; image: string; } /** * @return {jsx} The root component */ export default function Banner( {title, description, links, image}: BannerProps) { let imgUrl; if (image.startsWith('/static/images/')) { imgUrl = image; } else { imgUrl = '/static/images/' + image; } const containerStyle = { backgroundImage: `url('` + imgUrl + `')`, backgroundPosition: '64% 78%', backgroundSize: 'cover', }; const jumbotronStyle = { backgroundColor: 'transparent', }; const colorLayer = { backgroundColor: '#1279be70', }; return (
); }