client/components/pages/about.js

"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactI18next = require("react-i18next");
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
var _reactFontawesome = require("@fortawesome/react-fontawesome");
var _react = _interopRequireDefault(require("react"));
var _freeBrandsSvgIcons = require("@fortawesome/free-brands-svg-icons");
/*
 * Copyright (C) 2015  Ben Ockmore
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

/**
 * Renders the document and displays the 'About' page.
 * @returns {JSX.Element} a React JSX Element
 * page
 */
function AboutPage() {
  var _useTranslation = (0, _reactI18next.useTranslation)(),
    translate = _useTranslation.t;
  var NESLink = 'https://ocharles.org.uk/blog/posts/' + '2012-07-10-nes-does-it-better-1.html';
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
    className: "page-header"
  }, /*#__PURE__*/_react.default.createElement("h1", null, translate('common.about.title'))), /*#__PURE__*/_react.default.createElement("p", {
    className: "lead"
  }, translate('common.about.lead')), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      registerLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "/register"
      })
    },
    i18nKey: "staticPages.about.welcomeMessage"
  })), /*#__PURE__*/_react.default.createElement("p", null, translate('staticPages.about.contributionsNotice')), /*#__PURE__*/_react.default.createElement("h2", null, translate('common.about.accessingData')), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      licensingLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "/licensing"
      })
    },
    i18nKey: "staticPages.about.dataLicense"
  })), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      downloadLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "http://ftp.musicbrainz.org/pub/musicbrainz/bookbrainz/latest.sql.bz2"
      })
    },
    i18nKey: "staticPages.about.dbDumps"
  })), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      documentationLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "https://api.bookbrainz.org/1/docs/"
      })
    },
    i18nKey: "staticPages.about.webservice"
  })), /*#__PURE__*/_react.default.createElement("h2", null, translate('common.about.contactUs')), /*#__PURE__*/_react.default.createElement("div", {
    style: {
      alignItems: 'center',
      display: 'flex',
      justifyContent: 'space-evenly'
    }
  }, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
    className: "margin-sides-1 contact-text",
    icon: _freeSolidSvgIcons.faCircle
  }), /*#__PURE__*/_react.default.createElement("a", {
    className: "contact-text",
    href: "https://musicbrainz.org/doc/Communication/ChatBrainz"
  }, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
    className: "contact-text",
    icon: _freeSolidSvgIcons.faCommentDots,
    size: "2x"
  }), /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      channels: /*#__PURE__*/_react.default.createElement("small", null),
      lineBreak: /*#__PURE__*/_react.default.createElement("br", null)
    },
    i18nKey: "staticPages.about.chatWithUs"
  })), /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
    className: "margin-sides-1 contact-text",
    icon: _freeSolidSvgIcons.faCircle
  }), /*#__PURE__*/_react.default.createElement("a", {
    className: "contact-text",
    href: "//community.metabrainz.org/c/bookbrainz"
  }, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
    className: "contact-text",
    icon: _freeSolidSvgIcons.faComments,
    size: "2x"
  }), translate('common.forums')), /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
    className: "margin-sides-1 contact-text",
    icon: _freeSolidSvgIcons.faCircle
  }), /*#__PURE__*/_react.default.createElement("a", {
    className: "contact-text",
    href: "https://x.com/BookBrainz"
  }, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
    className: "contact-text",
    icon: _freeBrandsSvgIcons.faXTwitter,
    size: "2x"
  }), translate('staticPages.about.x')), /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
    className: "margin-sides-1 contact-text",
    icon: _freeSolidSvgIcons.faCircle
  }), /*#__PURE__*/_react.default.createElement("a", {
    className: "contact-text",
    href: "mailto:bookbrainz@metabrainz.org"
  }, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
    className: "contact-text",
    icon: _freeSolidSvgIcons.faEnvelope,
    size: "2x"
  }), translate('common.anEmail')), /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
    className: "margin-sides-1 contact-text",
    icon: _freeSolidSvgIcons.faCircle
  })), /*#__PURE__*/_react.default.createElement("h2", null, translate('common.about.ourStory')), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      oliverLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "https://github.com/ocharles"
      })
    },
    i18nKey: "staticPages.about.storyPart1"
  })), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      seanLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "https://github.com/Leftmostcat"
      })
    },
    i18nKey: "staticPages.about.storyPart2"
  })), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      benLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "https://github.com/LordSputnik"
      })
    },
    i18nKey: "staticPages.about.storyPart3"
  })), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      monkeyLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "https://github.com/MonkeyDo"
      })
    },
    i18nKey: "staticPages.about.storyPart4"
  })), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      nesLink: /*#__PURE__*/_react.default.createElement("a", {
        href: NESLink
      })
    },
    i18nKey: "staticPages.about.storyPart5"
  })));
}
AboutPage.displayName = 'AboutPage';
var _default = exports.default = AboutPage;
//# sourceMappingURL=about.js.map