05e43c70b7
* Minimal Viable Navigation Menu Translation with new namespace I18Next configuration leaning on default separator and namespace Broom: i18n + debug:false * Minimal Viable Navigation Menu Test entry for Toolbar.test.jsx * Translation.json : Changes in translation for new namespace About : broom About lines 17-26 Nav component : changes in keys KeyboardShortcutModal.jsx: Key now in Common * Voice Over Labels in Preferences:index Labels included in translations.json * Voice Over Labels in Preferences:index Labels included in translations.json * Voice Over Labels in Preferences:index Labels included in translations.json * Voice Over Labels in Preferences:index Labels included in translations.json Snapshot updated npm run test -- -u * translations.json ARIA labels adjacent to respective label Updated names to call the labels Common namespace without currently used entries * Update Nav.jsx Missing Common.p5logoARIA key * Update Toolbar.test.jsx Deleting commented line 78 * Update in keys Co-authored-by: Andrew Nicolaou <me@andrewnicolaou.co.uk>
104 lines
3.5 KiB
JavaScript
104 lines
3.5 KiB
JavaScript
import React from 'react';
|
|
import { Helmet } from 'react-helmet';
|
|
import { useTranslation } from 'react-i18next';
|
|
import SquareLogoIcon from '../../../images/p5js-square-logo.svg';
|
|
// import PlayIcon from '../../../images/play.svg';
|
|
import AsteriskIcon from '../../../images/p5-asterisk.svg';
|
|
|
|
function About(props) {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<div className="about__content">
|
|
<Helmet>
|
|
<title> {t('About.TitleHelmet')} </title>
|
|
</Helmet>
|
|
<div className="about__content-column">
|
|
<SquareLogoIcon className="about__logo" role="img" aria-label={t('Common.p5logoARIA')} focusable="false" />
|
|
</div>
|
|
<div className="about__content-column">
|
|
<h3 className="about__content-column-title">{t('About.NewP5')}</h3>
|
|
<p className="about__content-column-list">
|
|
<a
|
|
href="https://p5js.org/examples/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<AsteriskIcon className="about__content-column-asterisk" aria-hidden="true" focusable="false" />
|
|
{t('About.Examples')}
|
|
</a>
|
|
</p>
|
|
<p className="about__content-column-list">
|
|
<a
|
|
href="https://p5js.org/learn/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<AsteriskIcon className="about__content-column-asterisk" aria-hidden="true" focusable="false" />
|
|
{t('About.Learn')}
|
|
</a>
|
|
</p>
|
|
</div>
|
|
<div className="about__content-column">
|
|
<h3 className="about__content-column-title">{t('About.Resources')}</h3>
|
|
<p className="about__content-column-list">
|
|
<a
|
|
href="https://p5js.org/libraries/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<AsteriskIcon className="about__content-column-asterisk" aria-hidden="true" focusable="false" />
|
|
{t('About.Libraries')}
|
|
</a>
|
|
</p>
|
|
<p className="about__content-column-list">
|
|
<a
|
|
href="https://p5js.org/reference/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<AsteriskIcon className="about__content-column-asterisk" aria-hidden="true" focusable="false" />
|
|
{t('Nav.Help.Reference')}
|
|
</a>
|
|
</p>
|
|
<p className="about__content-column-list">
|
|
<a
|
|
href="https://discourse.processing.org/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<AsteriskIcon className="about__content-column-asterisk" aria-hidden="true" focusable="false" />
|
|
{t('About.Forum')}
|
|
</a>
|
|
</p>
|
|
</div>
|
|
<div className="about__footer">
|
|
<p className="about__footer-list">
|
|
<a
|
|
href="https://github.com/processing/p5.js-web-editor"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>{t('About.Contribute')}
|
|
</a>
|
|
</p>
|
|
<p className="about__footer-list">
|
|
<a
|
|
href="https://github.com/processing/p5.js-web-editor/issues/new"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>{t('About.Report')}
|
|
</a>
|
|
</p>
|
|
<p className="about__footer-list">
|
|
<a
|
|
href="https://twitter.com/p5xjs?lang=en"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>Twitter
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default About;
|