Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: efb and installer links #532

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Navigation/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ const Footer = () => (

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

<NavWrapper label="Menu">
Expand Down
2 changes: 2 additions & 0 deletions src/constants/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ export const links: {[name: string]: string} = {
facebook: 'https://www.facebook.com/FlyByWireSimulations/',
opencollective: 'https://opencollective.com/flybywire',
docsfaq: 'https://docs.flybywiresim.com/faq',
installer: 'https://flybywirecdn.com/installer/release/FlyByWire_Installer_Setup.exe',
efb: 'https://docs.flybywiresim.com/aircraft/common/flypados3',
};
3 changes: 2 additions & 1 deletion src/pages/downloads/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Section from '../../components/Utils/Section';
import Container from '../../components/Utils/Container';
import Button from '../../components/Button/Button';
import DownloadLinks from '../../components/Downloads/DownloadLinks';
import { links } from '../../constants/links';

const Downloads: NextPage = () => (
<>
Expand All @@ -25,7 +26,7 @@ const Downloads: NextPage = () => (
Our easy-to-use installer is the easiest way to get started with our addons. Simply launch and
install any addon you want, with only two clicks.
</p>
<Link href="https://cdn.flybywiresim.com/installer/release/FlyByWire_Installer_Setup.exe">
<Link href={links.installer}>
<Button label="Download" theme="primary" className="mt-auto" />
</Link>
</div>
Expand Down
5 changes: 2 additions & 3 deletions src/pages/projects/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { NextPage } from 'next';
import Section from '../../components/Utils/Section';
import Container from '../../components/Utils/Container';
import Card from '../../components/Projects/Card';

// const A32NX_DOWNLOAD_URL = 'https://github.com/flybywiresim/a32nx/releases/download/assets/master/A32NX-master.zip';
import { links } from '../../constants/links';

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