Skip to content

Commit 097b526

Browse files
authored
fix: efb and installer links (#532)
* fix: efb and installer links * fix: update cdn link to cf
1 parent 97f82d6 commit 097b526

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/components/Navigation/Footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ const Footer = () => (
3939

4040
<div className="grid grid-cols-3 items-start gap-x-32 gap-y-5">
4141
<NavWrapper label="Projects">
42-
<NavItem label="Installer" href="/" />
42+
<NavItem label="Installer" href={links.installer} />
4343
<NavItem label="A32NX" href="/projects/downloadLinks" />
4444
<NavItem label="A380X" href="/projects/a380x" />
45-
<NavItem label="EFB" href="/" />
45+
<NavItem label="EFB" href={links.efb} />
4646
</NavWrapper>
4747

4848
<NavWrapper label="Menu">

src/constants/links.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ export const links: {[name: string]: string} = {
77
facebook: 'https://www.facebook.com/FlyByWireSimulations/',
88
opencollective: 'https://opencollective.com/flybywire',
99
docsfaq: 'https://docs.flybywiresim.com/faq',
10+
installer: 'https://flybywirecdn.com/installer/release/FlyByWire_Installer_Setup.exe',
11+
efb: 'https://docs.flybywiresim.com/aircraft/common/flypados3',
1012
pressKit: 'https://github.com/flybywiresim/branding',
1113
};

src/pages/downloads/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Section from '../../components/Utils/Section';
44
import Container from '../../components/Utils/Container';
55
import Button from '../../components/Button/Button';
66
import DownloadLinks from '../../components/Downloads/DownloadLinks';
7+
import { links } from '../../constants/links';
78

89
const Downloads: NextPage = () => (
910
<>
@@ -25,7 +26,7 @@ const Downloads: NextPage = () => (
2526
Our easy-to-use installer is the easiest way to get started with our addons. Simply launch and
2627
install any addon you want, with only two clicks.
2728
</p>
28-
<Link href="https://cdn.flybywiresim.com/installer/release/FlyByWire_Installer_Setup.exe">
29+
<Link href={links.installer}>
2930
<Button label="Download" theme="primary" className="mt-auto" />
3031
</Link>
3132
</div>

src/pages/projects/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { NextPage } from 'next';
33
import Section from '../../components/Utils/Section';
44
import Container from '../../components/Utils/Container';
55
import Card from '../../components/Projects/Card';
6-
7-
// const A32NX_DOWNLOAD_URL = 'https://github.com/flybywiresim/a32nx/releases/download/assets/master/A32NX-master.zip';
6+
import { links } from '../../constants/links';
87

98
const index: NextPage = () => (
109
<>
@@ -49,7 +48,7 @@ const index: NextPage = () => (
4948
title="EFB"
5049
category="Software"
5150
description="The Electronic Flight Bag is an integrated tablet with a wide array of tools, settings and more."
52-
href="https://docs.flybywiresim.com/fbw-a32nx/feature-guides/flypados3/"
51+
href={links.efb}
5352
direction="horizontal"
5453
/>
5554
</div>

0 commit comments

Comments
 (0)