From 6ebe25a5f8ebec41c9134e86efaf8e41121dab4d Mon Sep 17 00:00:00 2001 From: Doug Johnson Date: Wed, 22 Apr 2026 20:00:51 -0700 Subject: [PATCH 1/2] Add message to Home Page --- src/components/HomePage.jsx | 34 +++++++++++++++++++++++++++++++++- src/data/svg/globe.svg | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 src/data/svg/globe.svg diff --git a/src/components/HomePage.jsx b/src/components/HomePage.jsx index 1d138230..8944f141 100644 --- a/src/components/HomePage.jsx +++ b/src/components/HomePage.jsx @@ -15,6 +15,7 @@ import { HomePageSubTitle, HomePageTitle, } from '../data/TextContent'; +import { ReactComponent as GlobeSVG } from '../data/svg/globe.svg'; export default function HomePage() { return ( @@ -37,7 +38,7 @@ export default function HomePage() { > + +

+ + {"RUSH is moving to the next stage of our development, come check out the improvements we've made at: "} + whatstherush.earth +

+

This website will soon permenantly redirect to the new website, but don't worry, all your links and QR codes will still work.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 0ef390518fdc099db61c7c05dca0db174e15cf17 Mon Sep 17 00:00:00 2001 From: Doug Johnson Date: Thu, 23 Apr 2026 12:57:03 -0700 Subject: [PATCH 2/2] Add announcement for new website to HomePage and NavBar --- src/components/HomePage.jsx | 9 +++- src/components/NavBar.jsx | 100 ++++++++++++++++++++++++++++++++++-- 2 files changed, 105 insertions(+), 4 deletions(-) diff --git a/src/components/HomePage.jsx b/src/components/HomePage.jsx index 8944f141..a37cf870 100644 --- a/src/components/HomePage.jsx +++ b/src/components/HomePage.jsx @@ -17,6 +17,13 @@ import { } from '../data/TextContent'; import { ReactComponent as GlobeSVG } from '../data/svg/globe.svg'; +const newWebsiteURL = () => { + const url = new URL(window.location.href) + url.hostname = 'whatstherush.earth' + url.port = '' + return url +} + export default function HomePage() { return ( @@ -112,7 +119,7 @@ export default function HomePage() { /> {"RUSH is moving to the next stage of our development, come check out the improvements we've made at: "} ); + const newWebsiteURL = () => { + const oldURL = new URL(getShareURL()) + const path = oldURL.pathname.split('/') + const geo = { + latLng: path.at(-1), + zoom: path.at(-2), + question: path.at(-3), + } + console.log(path) + console.log(geo) + + const url = new URL(oldURL) + url.hostname = 'whatstherush.earth' + url.port = '' + if (geo.question === 'undefined' || geo.question === undefined) { + url.pathname = path.includes('app') ? 'app' : '' + url.search = '' + } else { + url.pathname = `/app/${geo.question}` + url.search = new URLSearchParams({ + zoom: geo.zoom, + lat: geo.latLng.split(',')[0], + lng: geo.latLng.split(',')[1] + }).toString() + } + return url + } + + const NewWebsiteButton = () => { + const { isOpen, onOpen, onClose } = useDisclosure() + const [ newURL, setNewURL ] = useState('https://whatstherush.earth/') + return ( + <> + + + + + New Website + + +

+ + {"RUSH is moving to the next stage of our development, come check out the improvements we've made at: "} +

+ + whatstherush.earth + +

This website will soon permenantly redirect to the new website, but don't worry, all your links and QR codes will still work.

+
+
+
+ + ) + } + const menuBurgerButtons = useBreakpointValue({ base: ( // smallest mobile phones contain all buttons + menu that spans the entire screen. + + + {mapButton} @@ -165,12 +255,16 @@ export default function NavBar(props) { ), sm: ( - {mapButton}{aboutButton}{menuBurger} + {}{mapButton}{aboutButton}{menuBurger} ), lg: ( - {mapButton}{aboutButton}{feedbackButton}{instagramButton}{shareButton} + {}{ + + + + }{mapButton}{aboutButton}{feedbackButton}{instagramButton}{shareButton} ), },{ssr:false});