From 542171621efda0967ce2bf39539b52357808c5c6 Mon Sep 17 00:00:00 2001 From: ctzsnooze Date: Sun, 31 Dec 2023 16:10:08 -0800 Subject: [PATCH] Styling and text update for downloads page (#311) * styling and text update for downloads and stats pages * commends from reviews, remove spaces and group code into blocks * subtle react changes for smaller screens --- src/components/AboutCard/index.tsx | 6 +- src/components/HomepageFeature/index.tsx | 4 +- src/pages/download.tsx | 161 ++++++++++++++--------- src/pages/stats.tsx | 12 +- 4 files changed, 106 insertions(+), 77 deletions(-) diff --git a/src/components/AboutCard/index.tsx b/src/components/AboutCard/index.tsx index a43ad722aa..ec0a8d9be9 100644 --- a/src/components/AboutCard/index.tsx +++ b/src/components/AboutCard/index.tsx @@ -20,13 +20,13 @@ export default function AboutCard({
- + {title} - +
{children}
diff --git a/src/components/HomepageFeature/index.tsx b/src/components/HomepageFeature/index.tsx index a146e697c8..9c3362c3ef 100644 --- a/src/components/HomepageFeature/index.tsx +++ b/src/components/HomepageFeature/index.tsx @@ -17,9 +17,9 @@ export default function HomepageFeature({ title = '', compact = false, cl // // make background blur depend on blur prop
-

{title}

+

{title}

{/* eslint-disable-next-line no-restricted-globals */} -
{children}
+
{children}
); } diff --git a/src/pages/download.tsx b/src/pages/download.tsx index dcdacd5ad0..b4cecbbf4f 100644 --- a/src/pages/download.tsx +++ b/src/pages/download.tsx @@ -38,7 +38,7 @@ function IconElementFeature({ Icon, title, description, link, children }: IconEl } export default function Media() { - const isXl = useMediaQuery({ query: '(min-width: 1280px)' }); + const isXl = useMediaQuery({ query: '(min-width: 1024px)' }); const videoSize = useMemo(() => { if (isXl) { @@ -56,75 +56,84 @@ export default function Media() { return ( -
-
-
-

Download

-

Downloads & Videos

-
-
-
-
+
+ {/* Start Downloads block */} +
- - - - + +
+
+ + Betaflight Configurator is a Windows/OSX/Linux application for building, flashing and configuring Betaflight. Download the{' '} + + {' '} + latest release + + . + +
+
+
+ +
-
- Viewer Releases are: - - Latest viewer releases - +
+ + For Betaflight 4.4 and higher, Configurator builds a custom firmware file 'in the cloud' and flashes it to your flight controller. For 4.3 and earlier, download the correct{' '} + + {' '} + 'hex' file for your flight controller + {' '} + and flash it manually. +
-
- The Latest Viewer source is: - - Latest viewer source - +
+ + + +
+
+ + Adjust Betaflight's settings with your radio transmitter with Betaflight's{' '} + + {' '} + Lua Tx scripts. + + . + +
+
+
+ + +
+
+ + Review flight data logs, map the flight and check debug values with{' '} + + {' '} + Betaflight Blackbox Log Viewer + + . +
-
See BB Logging and Usage Wiki page on using the BlackBox logger.
+ + {/* End left column, start right column */} +
-
- - Nightly builds - + {' '} Betaflight Configurator Nightly builds @@ -133,28 +142,54 @@ export default function Media() { Blackbox Viewer Nightly builds -
- You can find release planning here: - - Release planning - +
+ + + +
+
+ + Review and download the source code on the{' '} + + Betaflight GitHub Repository + + . + +
+
+
+ + +
+
+ + Wiki, Development and other documentation may be found in the{' '} + + betaflight.com docs directory + + . +
+ + {/* Start Videos block */} +
- +
+
- +
@@ -162,6 +197,8 @@ export default function Media() {
+ + {/* End Videos block */}
); diff --git a/src/pages/stats.tsx b/src/pages/stats.tsx index 21ff1cac01..e2dff27e4c 100644 --- a/src/pages/stats.tsx +++ b/src/pages/stats.tsx @@ -274,16 +274,8 @@ const MinorChartWrapper = ({ type }) => { export default function Stats() { return ( -
-
-
-

Stats

-

Cloud Build Statistics

-
-
-
-
- +
+

Total Builds