Skip to content

Commit

Permalink
+ + Fix i18 links to relevant content
Browse files Browse the repository at this point in the history
  • Loading branch information
m0zgen committed Dec 10, 2024
1 parent 84ab031 commit d31b7c7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
4 changes: 3 additions & 1 deletion src/components/ComponentAccordeon/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

// Accordion.js

import Link from "@docusaurus/Link";

export default function Accordion(props) {
return (

Expand All @@ -12,7 +14,7 @@ export default function Accordion(props) {
{props.isOpen && (
<div className="p-4 m-4">
{props.data}
<a href={props.setupUrl}>{props.setupLink}</a>
<Link href={props.setupUrl}>{props.setupLink}</Link>
</div>
)}
</div>
Expand Down
33 changes: 18 additions & 15 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,22 @@ function HomepageHeader() {
</Translate>
<br/>

<a href="/docs/donation" className="mt-5 font-medium text-blue-200 dark:text-blue-500 hover:underline">
<Link
href="/docs/donation" className="mt-5 font-medium text-blue-200 dark:text-blue-500 hover:underline">
<Translate
id="homepage.Header.BriefLink1">
Donations
</Translate>
</a>
</Link>
<Translate
id="homepage.Header.BriefOr"> or
</Translate>

<a href="/docs/sponsorship" className="mt-5 font-medium text-blue-200 dark:text-blue-500 hover:underline">
<Link href="/docs/sponsorship" className="mt-5 font-medium text-blue-200 dark:text-blue-500 hover:underline">
<Translate
id="homepage.Header.BriefLink2"> Sponsorship
</Translate>
</a>.
</Link>.

</p>
{/*<p>*/}
Expand Down Expand Up @@ -168,6 +169,7 @@ function FeaturesListHeading() {
setAccordion(updatedAccordions);
};

// Better way work online
return (
<section className="py-10 overflow-hidden dark:bg-[#070a11]">

Expand Down Expand Up @@ -268,13 +270,13 @@ function FeaturesListHeading() {
clip-rule="evenodd" fill-rule="evenodd"></path>
</svg>
<p>
<a className="text-blue-600 dark:text-blue-500"
<Link className="text-blue-600 dark:text-blue-500"
href="/docs/overwiew/openbld-plus">
<Translate
id="homepage.FeatureList.Item6">
Get benefits from Donations / Sponsorship
</Translate>
</a>
</Link>
</p>
</li>
</ul>
Expand Down Expand Up @@ -343,23 +345,24 @@ function FeaturesListHeading() {
id="homepage.FeatureList.GetStartedFor">
Get Started for:
</Translate>
<a href="/docs/category/setup-browsers"
<Link href="/docs/category/setup-browsers"
className="mt-5 font-medium text-blue-600 dark:text-blue-500 hover:underline">
<Translate
id="homepage.FeatureList.GetStartedForBrowsers"> Browsers
</Translate>
</a>, <a href="/docs/category/setup-mobile-devices"
</Link>,
<Link href="/docs/category/setup-mobile-devices"
className="mt-5 font-medium text-blue-600 dark:text-blue-500 hover:underline">
<Translate
id="homepage.FeatureList.GetStartedForMobile"> Mobile
</Translate>
</a>,
<a href="/docs/get-started/where-to-start"
</Link>,
<Link href="/docs/get-started/where-to-start"
className="mt-5 font-medium text-blue-600 dark:text-blue-500 hover:underline">
<Translate
id="homepage.FeatureList.GetStartedForMore"> more...
</Translate>
</a>
</Link>
</p>

</div>
Expand Down Expand Up @@ -501,19 +504,19 @@ function FeaturesListHeading() {
id="homepage.ThreeColums.Column3Body">
Android, iOS, iPad devices.
</Translate>
<a href="/docs/get-started/setup-mobile-devices/android/">
<Link href="/docs/get-started/setup-mobile-devices/android/">
<Translate
id="homepage.ThreeColums.Column3BodyLink1"> Setup
</Translate>
</a>
</Link>
<Translate
id="homepage.ThreeColums.Column3Body2"> "Private DNS" on Android or
</Translate>
<a href="/docs/get-started/setup-mobile-devices/apple/">
<Link href="/docs/get-started/setup-mobile-devices/apple/">
<Translate
id="homepage.ThreeColums.Column3BodyLink2"> download
</Translate>
</a>
</Link>
<Translate
id="homepage.ThreeColums.Column3Body3"> profile for Apple devices.
</Translate>
Expand Down

0 comments on commit d31b7c7

Please sign in to comment.