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

39 lines
813 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'
let headlineLight = 'text-indigo'
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 uppercase pt-2 pb-1`}
2018-07-06 23:32:12 +02:00
>
{props.intro}
</h3>
)}
{props.headline && (
<h1
className={`${props.light ? headlineDark : ''}
font-light pt-1 pb-2`}
2018-07-06 23:32:12 +02:00
>
{props.headline}
</h1>
)}
{props.text && (
<p
className={`${props.light ? headlineDark : ''}
font-light leading-normal opacity-70`}
2018-07-06 23:32:12 +02:00
>
{props.text}
</p>
)}
</div>
2018-06-30 14:56:04 +02:00
)
export default IntroDefault