Files
old-v2-frontend/src/components/SectionIntro.js

42 lines
929 B
JavaScript
Raw Normal View History

2018-06-30 14:56:04 +02:00
import React from 'react'
import Link from 'gatsby-link'
let headlineDark = 'text-white'
2018-07-10 11:47:58 +02:00
let headlineLight = 'text-indigo-darker'
const IntroDefault = ({ ...props }) => (
<div className={`${props.classes}`}>
2018-07-06 23:32:12 +02:00
{props.intro && (
<h3
className={`
${
props.light ? headlineDark : headlineLight
} opacity-50 text-sm font-light text-black uppercase pt-2 pb-1`}
2018-07-06 23:32:12 +02:00
>
{props.intro}
</h3>
)}
{props.headline && (
<h2
2018-07-06 23:32:12 +02:00
className={`${props.light ? headlineDark : ''}
text-black pt-1 pb-2`}
2018-07-06 23:32:12 +02:00
>
{props.headline}
</h2>
2018-07-06 23:32:12 +02:00
)}
{props.text && (
<p
className={`${props.light ? headlineDark : ''} ${
props.header ? 'saburly-text-intro' : 'text-black-light'
}
font-light text-lg leading-normal`}
2018-07-06 23:32:12 +02:00
>
{props.text}
</p>
)}
2018-08-08 01:12:04 +02:00
{props.children}
</div>
2018-06-30 14:56:04 +02:00
)
export default IntroDefault