UNPKG

@taylorwhite/copacetic-frontity-theme

Version:
24 lines (21 loc) 639 B
import { Heading, Text } from "@chakra-ui/core"; import React from "react"; import { decode } from "frontity"; import { PatternBox, PatternBoxInner } from "../styles/pattern-box"; const ArchiveHeader = ({ taxonomy, title, ...props }) => ( <PatternBox pb="80px" mb="-80px" {...props}> <PatternBoxInner> <Text textTransform="uppercase" color="#fff" fontWeight="bold"> {taxonomy} </Text> <Heading mt="8px" fontSize={{ base: "5xl", md: "6xl" }} color="accent.400" > {decode(title)} </Heading> </PatternBoxInner> </PatternBox> ); export default ArchiveHeader;