Replace links to /features with /n/features (#297)

* Replaced links to /features with /n/features

It was discussed and agreed on that all notes should reside under the /n/ namespace in the future. Even if we want to redirect all pre-2.0-notes from the root namespace to the /n/ namespace, it might be better to set the internal links for the features page properly instead on relying on the redirect.

* Improved note placeholder text
This commit is contained in:
Erik Michelson 2020-06-28 21:25:22 +02:00 committed by GitHub
parent d13adcc9c3
commit 8ab7776a82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -133,7 +133,7 @@
} }
}, },
"editor": { "editor": {
"placeholder": "← Start by entering a title here\n===\nVisit /features if you don't know what to do.\nHappy hacking :)", "placeholder": "← Start by entering a title here\n===\nVisit the features page if you don't know what to do.\nHappy hacking :)",
"help": { "help": {
"contacts": { "contacts": {
"title": "Contacts", "title": "Contacts",

View file

@ -23,7 +23,7 @@ export const UserDropdown: React.FC = () => {
</Dropdown.Toggle> </Dropdown.Toggle>
<Dropdown.Menu className='text-start'> <Dropdown.Menu className='text-start'>
<LinkContainer to={'/features'}> <LinkContainer to={'/n/features'}>
<Dropdown.Item dir='auto'> <Dropdown.Item dir='auto'>
<ForkAwesomeIcon icon="bolt" fixedWidth={true} className="mx-2"/> <ForkAwesomeIcon icon="bolt" fixedWidth={true} className="mx-2"/>
<Trans i18nKey="editor.help.documents.features"/> <Trans i18nKey="editor.help.documents.features"/>

View file

@ -29,7 +29,7 @@ export const CoverButtons: React.FC = () => {
<Trans i18nKey="common.or"/> <Trans i18nKey="common.or"/>
</span> </span>
</ShowIf> </ShowIf>
<Link to="/features"> <Link to="/n/features">
<Button <Button
className="cover-button" className="cover-button"
variant="primary" variant="primary"

View file

@ -9,7 +9,7 @@ export const FeatureLinks: React.FC = () => {
return ( return (
<Row className="mb-5"> <Row className="mb-5">
<Col md={4}> <Col md={4}>
<Link to={'/features#Share-Notes'} className="text-light"> <Link to={'/n/features#Share-Notes'} className="text-light">
<ForkAwesomeIcon icon="bolt" size="3x"/> <ForkAwesomeIcon icon="bolt" size="3x"/>
<h5> <h5>
<Trans i18nKey="landing.intro.features.collaboration"/> <Trans i18nKey="landing.intro.features.collaboration"/>
@ -17,7 +17,7 @@ export const FeatureLinks: React.FC = () => {
</Link> </Link>
</Col> </Col>
<Col md={4}> <Col md={4}>
<Link to={'/features#MathJax'} className="text-light"> <Link to={'/n/features#MathJax'} className="text-light">
<ForkAwesomeIcon icon="bar-chart" size="3x"/> <ForkAwesomeIcon icon="bar-chart" size="3x"/>
<h5> <h5>
<Trans i18nKey="landing.intro.features.mathJax"/> <Trans i18nKey="landing.intro.features.mathJax"/>
@ -25,7 +25,7 @@ export const FeatureLinks: React.FC = () => {
</Link> </Link>
</Col> </Col>
<Col md={4}> <Col md={4}>
<Link to={'/features#Slide-Mode'} className="text-light"> <Link to={'/n/features#Slide-Mode'} className="text-light">
<ForkAwesomeIcon icon="television" size="3x"/> <ForkAwesomeIcon icon="television" size="3x"/>
<h5> <h5>
<Trans i18nKey="landing.intro.features.slides"/> <Trans i18nKey="landing.intro.features.slides"/>