client/components/pages/contribute.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 _react = _interopRequireDefault(require("react"));
/*
 * 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 the document and displays the 'Contribute' page.
 * @returns {JSX.Element} a React JSX Element
 */
function ContributePage() {
  var _useTranslation = (0, _reactI18next.useTranslation)(),
    translate = _useTranslation.t;
  var IRCLink = 'https://kiwiirc.com/nextclient/irc.libera.chat/?#bookbrainz';
  var styleLink = 'https://bookbrainz-user-guide.readthedocs.io/';
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
    className: "page-header"
  }, /*#__PURE__*/_react.default.createElement("h1", null, translate('staticPages.contribute.title'))), /*#__PURE__*/_react.default.createElement("p", {
    className: "lead"
  }, translate('staticPages.contribute.lead')), /*#__PURE__*/_react.default.createElement("h2", null, translate('staticPages.contribute.editingTitle')), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      lineBreak: /*#__PURE__*/_react.default.createElement("br", null),
      registerLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "/register"
      })
    },
    i18nKey: "staticPages.contribute.editingP1"
  })), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      guidelinesLink: /*#__PURE__*/_react.default.createElement("a", {
        href: styleLink
      }),
      lineBreak: /*#__PURE__*/_react.default.createElement("br", null),
      musicbrainzStyleLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "http://musicbrainz.org/doc/Style"
      })
    },
    i18nKey: "staticPages.contribute.editingP2"
  })), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      tutorialLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "https://bookbrainz-user-guide.readthedocs.io/en/latest/tutorials/merging.html"
      })
    },
    i18nKey: "staticPages.contribute.editingP3"
  })), /*#__PURE__*/_react.default.createElement("h2", null, translate('staticPages.contribute.programmingTitle')), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      githubLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "https://github.com/metabrainz?q=bookbrainz"
      }),
      roadmapLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "https://wiki.musicbrainz.org/Development/Priorities#BookBrainz"
      })
    },
    i18nKey: "staticPages.contribute.programmingP1"
  })), /*#__PURE__*/_react.default.createElement("h2", null, translate('staticPages.contribute.communityTitle')), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      ircLink: /*#__PURE__*/_react.default.createElement("a", {
        href: IRCLink
      })
    },
    i18nKey: "staticPages.contribute.communityP1"
  })), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_reactI18next.Trans, {
    components: {
      emailLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "mailto:bookbrainz@metabrainz.org"
      }),
      forumsLink: /*#__PURE__*/_react.default.createElement("a", {
        href: "https://community.metabrainz.org/c/bookbrainz"
      })
    },
    i18nKey: "staticPages.contribute.communityP2"
  })));
}
ContributePage.displayName = 'ContributePage';
var _default = exports.default = ContributePage;
//# sourceMappingURL=contribute.js.map