function Home()

in website/src/pages/index.js [16:113]


function Home() {
  const context = useDocusaurusContext();
  const {siteConfig} = context;

  return (
    <Layout
      title={siteConfig.title}
      description="A modern styling framework for content-driven websites">
      <header className={clsx('hero', styles.heroBanner)}>
        <div className="container">
          <img
            className={clsx(styles.heroBannerLogo, 'margin-vert--md')}
            src={useBaseUrl('img/logo.png')}
          />
          <h1 className="hero__title">{siteConfig.title}</h1>
          <p className="hero__subtitle">{siteConfig.tagline}</p>
          <div className={styles.buttons}>
            <Link
              className={clsx(
                'button button--primary button--lg',
                styles.getStarted,
              )}
              to={useBaseUrl('docs/getting-started/introduction')}>
              Get Started&nbsp;&nbsp;→
            </Link>
          </div>
        </div>
      </header>
      <main>
        <div className={styles.sectionDark}>
          <div className="container padding-vert--md">
            <div className="row">
              <div className="col col--8 col--offset-2">
                <div className="margin-vert--lg text--center">
                  <h2 className={styles.sectionDarkTitle}>
                    Infima is not yet ready for production use and is being
                    developed alongside{' '}
                    <a
                      className={styles.sectionDarkLink}
                      href="https://docusaurus.io"
                      rel="noreferrer noopener"
                      target="_blank">
                      Docusaurus 2
                    </a>
                  </h2>
                </div>
              </div>
            </div>
          </div>
        </div>
        <p className="padding-vert--xl">
          <p className="container">
            <p className="row">
              <p className="col col--10 col--offset-1">
                <h2 className="text--center margin-bottom--xl">Why Infima?</h2>
                <div className="row margin-vert--lg">
                  <div className="col">
                    <h3>Theming</h3>
                    <p>
                      Create websites with built-in support for theming and dark
                      mode! Try the toggle at the top!
                    </p>
                  </div>
                  <div className="col">
                    <h3>Modern</h3>
                    <p>
                      Built using modern CSS approaches - CSS variables and
                      Postcss, BEM naming.
                    </p>
                  </div>
                  <div className="col">
                    <h3>Modular</h3>
                    <p>
                      Just import the CSS for the components which you need.
                    </p>
                  </div>
                </div>
                <div className="row margin-vert--lg">
                  <div className="col">
                    <h3>100% Responsive</h3>
                    <p>Works on all devices and viewport widths.</p>
                  </div>
                  <div className="col">
                    <h3>View library-agnostic</h3>
                    <p>
                      It's just CSS, so it works with React, Vue, Angular,
                      anything!
                    </p>
                  </div>
                </div>
              </p>
            </p>
          </p>
        </p>
      </main>
    </Layout>
  );
}