All files / src Hero.js

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38                  3x 4x                                                      
// @flow strict
import React from 'react';
 
import Theme from './material-toolbox/theme';
import LayoutGrid from './material-toolbox/layout-grid/Grid';
import LayoutInner from './material-toolbox/layout-grid/Inner';
import LayoutCell from './material-toolbox/layout-grid/Cell';
import Text from './material-toolbox/typography/Text';
 
const Hero = () => (
  <Theme background="primary" color="on-primary">
    <header>
      <LayoutGrid fixed>
        <LayoutInner>
          <LayoutCell align="bottom" span={12}>
            <Text text="headline3" as="h1">
              React Material Components for the Web
            </Text>
            <Text text="headline5" as="span">
              Create beautiful apps with modular and customizable UI components
              using React wrapper of Google&#39;s Material Components for the
              Web.
            </Text>
            <Text text="body2" as="p">
              Note.- This library is as simple as Material Web Components is,
              Tries to follow the guide lines as much as possible. The library
              do not do any assumptions on components or tags to be used unless
              the Material Components guide does.
            </Text>
          </LayoutCell>
        </LayoutInner>
      </LayoutGrid>
    </header>
  </Theme>
);
 
export default Hero;