mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00
Extract URLs in extra file and change riot link to element-link (#551)
* Update matrix chat link to new element URL * Correct other usages of the element link * Extracted static external links into separate file
This commit is contained in:
parent
ca2bd1d90f
commit
be2428f22c
8 changed files with 43 additions and 22 deletions
|
@ -6,6 +6,7 @@ import { ExternalLink } from '../../common/links/external-link'
|
|||
import { TranslatedExternalLink } from '../../common/links/translated-external-link'
|
||||
import { TranslatedInternalLink } from '../../common/links/translated-internal-link'
|
||||
import { VersionInfo } from './version-info'
|
||||
import links from '../../../links.json'
|
||||
|
||||
export const PoweredByLinks: React.FC = () => {
|
||||
useTranslation()
|
||||
|
@ -15,7 +16,7 @@ export const PoweredByLinks: React.FC = () => {
|
|||
return (
|
||||
<p>
|
||||
<Trans i18nKey="landing.footer.poweredBy">
|
||||
<ExternalLink href="https://codimd.org" text="HedgeDoc"/>
|
||||
<ExternalLink href={links.webpage} text="HedgeDoc"/>
|
||||
</Trans>
|
||||
|
|
||||
<TranslatedInternalLink href='/n/release-notes' i18nKey='landing.footer.releases'/>
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
import React from 'react'
|
||||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { ExternalLink } from '../../common/links/external-link'
|
||||
import links from '../../../links.json'
|
||||
|
||||
const SocialLink: React.FC = () => {
|
||||
useTranslation()
|
||||
return (
|
||||
<p>
|
||||
<Trans i18nKey="landing.footer.followUs" components={[
|
||||
<ExternalLink href="https://github.com/codimd/server" icon='github' text="GitHub"/>,
|
||||
<ExternalLink href="https://community.codimd.org" icon='users' text="Discourse"/>,
|
||||
<ExternalLink href="https://riot.im/app/#/room/#hedgedoc:matrix.org" icon="comment" text="Riot"/>,
|
||||
<ExternalLink href="https://social.codimd.org/mastodon" icon='mastodon' text="Mastodon"/>,
|
||||
<ExternalLink href="https://translate.codimd.org" icon="globe" text="POEditor"/>
|
||||
<ExternalLink href={links.githubOrg} icon='github' text="GitHub"/>,
|
||||
<ExternalLink href={links.community} icon='users' text="Discourse"/>,
|
||||
<ExternalLink href={links.chatElement} icon="comment" text="Element"/>,
|
||||
<ExternalLink href={links.mastodon} icon='mastodon' text="Mastodon"/>,
|
||||
<ExternalLink href={links.translate} icon="globe" text="POEditor"/>
|
||||
]}/>
|
||||
</p>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue