From 8bdabac16f5386c8f8e63d211b00fa9ad6297356 Mon Sep 17 00:00:00 2001 From: ionous Date: Mon, 28 Apr 2025 20:11:24 -0700 Subject: [PATCH 1/4] create a beta landing page --- cal/src/CalBeta.vue | 42 ++++++++++++++++++++++++++++++++++ cal/src/CalMain.vue | 2 +- cal/src/calMain.js | 6 +++++ site/config/_default/hugo.toml | 2 +- 4 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 cal/src/CalBeta.vue diff --git a/cal/src/CalBeta.vue b/cal/src/CalBeta.vue new file mode 100644 index 00000000..17da24ac --- /dev/null +++ b/cal/src/CalBeta.vue @@ -0,0 +1,42 @@ + + + + \ No newline at end of file diff --git a/cal/src/CalMain.vue b/cal/src/CalMain.vue index f56b07dd..ca7de27a 100644 --- a/cal/src/CalMain.vue +++ b/cal/src/CalMain.vue @@ -107,7 +107,7 @@ export default { // ( the only problem would be how to parameterize the page with the error string // ( could pass it as a query string? or is that too messy? ) this.error = error; - } else { + } else if (context) { this.page = context.page; // matches the format of siteConfig.defaultPageInfo this.shortcuts = context.shortcuts; scrollPos.restorePos(this.$route); diff --git a/cal/src/calMain.js b/cal/src/calMain.js index 3789d248..162ae004 100644 --- a/cal/src/calMain.js +++ b/cal/src/calMain.js @@ -13,6 +13,7 @@ import CalList from './CalList.vue' import CalSearch from './CalSearch.vue' import CalFavorites from './CalFavorites.vue' import EventDetails from './EventDetails.vue' +import CalBeta from './CalBeta.vue' // import Empty from './Empty.vue' // the router reads and writes the user's address bar @@ -45,6 +46,11 @@ const router = createRouter({ path: '/events/:series_id(\\d+)/:caldaily_id(\\d+)/:slug?', component: EventDetails }, + { + name: "beta", + path: "/events/beta", + component: CalBeta, + }, ], }) diff --git a/site/config/_default/hugo.toml b/site/config/_default/hugo.toml index 255e2125..05d85a8e 100644 --- a/site/config/_default/hugo.toml +++ b/site/config/_default/hugo.toml @@ -34,7 +34,7 @@ disableKinds = ["taxonomy", "term"] # Child of Calendar [[menu.main]] name = "Events (Beta)" - url = "/events/" + url = "/events/beta/" weight = 1 identifier = "" parent = "Calendar" From a311046c993aff414bc640e985a5d55cc0dfa36b Mon Sep 17 00:00:00 2001 From: ionous Date: Mon, 28 Apr 2025 20:14:20 -0700 Subject: [PATCH 2/4] update comments --- cal/src/CalBeta.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cal/src/CalBeta.vue b/cal/src/CalBeta.vue index 17da24ac..9b4c52dc 100644 --- a/cal/src/CalBeta.vue +++ b/cal/src/CalBeta.vue @@ -1,13 +1,10 @@ - + From 558c67ab742f902b6743d58a830e98b5afc1ea10 Mon Sep 17 00:00:00 2001 From: ionous Date: Mon, 28 Apr 2025 20:19:00 -0700 Subject: [PATCH 3/4] fix paragraph a bit --- cal/src/CalBeta.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cal/src/CalBeta.vue b/cal/src/CalBeta.vue index 9b4c52dc..0ac3d916 100644 --- a/cal/src/CalBeta.vue +++ b/cal/src/CalBeta.vue @@ -12,7 +12,7 @@ export default {
Welcome to the new Shift Calendar!

We're trying out a new version of the Shift Calendar optimized for phones. It shows one week at a time, letting you navigate week to week. You can search rides, and even save your favorite rides.

-

We consider it a beta -- where "beta" is a classy software term for "might have bugs".

+

We consider it a beta -- where "beta" is a classy software term for "might have bugs". Try it out, and let us know what you think: the good, the bad, and the "hey, it sort of works!"

Yes! Try it out! No, get me out of here! From 860d9b805e79433abcdc685c95591d89a7c3534b Mon Sep 17 00:00:00 2001 From: ionous Date: Mon, 28 Apr 2025 21:48:50 -0700 Subject: [PATCH 4/4] fix side scrolling by removing percentage width/auto. --- cal/src/CalBeta.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cal/src/CalBeta.vue b/cal/src/CalBeta.vue index 0ac3d916..ab7ae98d 100644 --- a/cal/src/CalBeta.vue +++ b/cal/src/CalBeta.vue @@ -10,7 +10,7 @@ export default {