|
| 1 | +import React, { Component } from 'react'; |
| 2 | +import { Card } from 'react-bootstrap'; |
| 3 | +import { Code, CodeSlash, Envelope, InfoCircle, People, QuestionCircle } from 'react-bootstrap-icons'; |
| 4 | +import { FormattedMessage } from 'react-intl'; |
| 5 | +import { HelmetBase } from '../../HelmetBase'; |
| 6 | +import { MixedLayout } from '../MixedLayout'; |
| 7 | +import { name } from '../../../../package.json'; |
| 8 | + |
| 9 | +export class PageAbout extends Component { |
| 10 | + renderContactEmail = () => { |
| 11 | + // Stupid method that prevents scrapers from accessing the address |
| 12 | + const email = [...window.atob('cHBhLmVyYnJhQHRjYXRub2M=')].reverse().join(''); |
| 13 | + return <strong><a href={`mailto:${email}`} target="_blank" rel="noreferrer">{email}</a></strong>; |
| 14 | + }; |
| 15 | + |
| 16 | + render() { |
| 17 | + return ( |
| 18 | + <MixedLayout> |
| 19 | + <FormattedMessage id="page.about.head.title"> |
| 20 | + {title => <HelmetBase title={title} />} |
| 21 | + </FormattedMessage> |
| 22 | + <Card> |
| 23 | + <Card.Body> |
| 24 | + <Card.Title> |
| 25 | + <InfoCircle className="icon mr-2"/> |
| 26 | + <FormattedMessage id="page.about.about.title"/> |
| 27 | + </Card.Title> |
| 28 | + <p> |
| 29 | + <FormattedMessage id="page.about.about.description" values={{ name: <strong><a href="https://florian.cassayre.me" target="_blank" rel="noreferrer">Florian Cassayre</a></strong> }}/> |
| 30 | + </p> |
| 31 | + |
| 32 | + <Card.Title> |
| 33 | + <Envelope className="icon mr-2"/> |
| 34 | + <FormattedMessage id="page.about.contact.title"/> |
| 35 | + </Card.Title> |
| 36 | + <p> |
| 37 | + <FormattedMessage id="page.about.contact.description" values={{ email: this.renderContactEmail() }}/> |
| 38 | + </p> |
| 39 | + <Card.Title> |
| 40 | + <People className="icon mr-2"/> |
| 41 | + <FormattedMessage id="page.about.contribute.title"/> |
| 42 | + </Card.Title> |
| 43 | + <p> |
| 44 | + <FormattedMessage id="page.about.contribute.thank_you"/> |
| 45 | + </p> |
| 46 | + <ul> |
| 47 | + <li> |
| 48 | + <FormattedMessage id="page.about.contribute.suggestions_bugs"/> |
| 49 | + </li> |
| 50 | + <li> |
| 51 | + <FormattedMessage id="page.about.contribute.translations"/> |
| 52 | + </li> |
| 53 | + <li> |
| 54 | + <FormattedMessage id="page.about.contribute.development"/> |
| 55 | + </li> |
| 56 | + </ul> |
| 57 | + <p> |
| 58 | + <FormattedMessage id="page.about.contribute.contact"/> |
| 59 | + </p> |
| 60 | + |
| 61 | + <Card.Title> |
| 62 | + <CodeSlash className="icon mr-2" /> |
| 63 | + <FormattedMessage id="page.about.developers.title"/> |
| 64 | + </Card.Title> |
| 65 | + <p> |
| 66 | + <FormattedMessage id="page.about.developers.description"/> |
| 67 | + </p> |
| 68 | + <ul> |
| 69 | + <li> |
| 70 | + <FormattedMessage id="page.about.developers.read_gedcom" values={{ name: <a href="https://github.com/arbre-app/read-gedcom" target="_blank" rel="noreferrer">read-gedcom</a> }}/> |
| 71 | + </li> |
| 72 | + <li> |
| 73 | + <FormattedMessage id="page.about.developers.genealogy_visualizations" values={{ name: <a href="https://github.com/arbre-app/genealogy-visualizations" target="_blank" rel="noreferrer">genealogy-visualizations</a> }}/> |
| 74 | + </li> |
| 75 | + <li> |
| 76 | + <FormattedMessage id="page.about.developers.public_gedcoms" values={{ name: <a href="https://github.com/arbre-app/public-gedcoms" target="_blank" rel="noreferrer">public-gedcoms</a> }}/> |
| 77 | + </li> |
| 78 | + <li> |
| 79 | + <FormattedMessage id="page.about.developers.browse_gedcom" values={{ name: <a href="https://github.com/arbre-app/browse-gedcom" target="_blank" rel="noreferrer">{name}</a> }}/> |
| 80 | + </li> |
| 81 | + </ul> |
| 82 | + </Card.Body> |
| 83 | + </Card> |
| 84 | + </MixedLayout> |
| 85 | + ); |
| 86 | + } |
| 87 | +} |
0 commit comments