From 87ac833da51ae83d9b86b3fd69bfa02f2fd7aea1 Mon Sep 17 00:00:00 2001 From: Inian Parameshwaran Date: Thu, 3 Dec 2020 18:25:25 +0800 Subject: [PATCH] fix statuspage video link --- www/pages/beta.tsx | 135 +++++++++++++++++++++++---------------------- 1 file changed, 70 insertions(+), 65 deletions(-) diff --git a/www/pages/beta.tsx b/www/pages/beta.tsx index 867d9efd56d..0b3f4a0980c 100644 --- a/www/pages/beta.tsx +++ b/www/pages/beta.tsx @@ -9,6 +9,7 @@ import { AlphaNumbers, IntroductionSegments, PerformanceComparisonData } from 'd import { render } from 'react-dom' import { useRouter } from 'next/router' import Link from 'next/link' +import { addBasePath } from 'next/dist/next-server/lib/router/router' const site_title = `${APP_NAME} | We are now in Beta` @@ -94,16 +95,16 @@ const SectionHeader = (props: any) => { const Hero = () => (
-
+
-

- Supabase is an opensource Firebase alternative. -

+

Supabase is an opensource Firebase alternative.

Today, we're moving to Beta

@@ -157,7 +158,9 @@ const Introduction = () => {

- {stat.value} + + {stat.value} + {stat.unit && {stat.unit}}

@@ -179,7 +182,8 @@ const TableOfContents = (props: any) => {

- Supabase Beta is starting now. + Supabase Beta is starting + now.

@@ -212,7 +216,6 @@ const TableOfContents = (props: any) => { } const Performance = () => { - const Bar = (props: any) => { const { color, finalPercentage, duration = 2000 } = props const countTo = parseInt(finalPercentage, 10) @@ -227,7 +230,7 @@ const Performance = () => { const totalFrames = Math.round(duration / frameDuration) async function handleScroll() { - const reference = document.getElementById("performanceCharts") + const reference = document.getElementById('performanceCharts') if (reference && !animTriggered) { const yOffset = reference.getBoundingClientRect().top - window.innerHeight + 20 if (yOffset <= 0) { @@ -237,7 +240,7 @@ const Performance = () => { frame++ const progress = easeOutQuad(frame / totalFrames) setCount(countTo * progress) - + if (frame === totalFrames) clearInterval(counter) }, frameDuration) } @@ -248,12 +251,7 @@ const Performance = () => { return () => window.removeEventListener('scroll', handleScroll) }, [animTriggered]) - return ( -
- ) + return
} const ComparisonChart = () => { @@ -269,13 +267,18 @@ const Performance = () => {
{metric.stats.map((stat: any, idx: number) => (
-

{stat.name}

+

+ {stat.name} +

{/* Default bar without anim below if something goes wrong */} {/*
*/} - +

{stat.value}/s

))} @@ -432,53 +435,56 @@ const Security = () => { ) } -const Reliability = () => ( -
-
- +const Reliability = () => { + const { basePath } = useRouter() + return ( +
+
+ -
-
-

- During Alpha we experienced 2 minor incidents related to availability, neither of which - affected customer access to their data. These were: -

-
    -
  • - A third-party CDN API outage. As a result, subdomains were not created for new - projects. -
  • -
  • - Cloud resource limits. During peak periods we maxed out the number of Virtual Machines - we could initiate in a couple of popular regions, these limitations are artificial and - our Cloud providers quickly lifted them. We also hit the maximum number of subdomains - that could be issued temporarily -
  • -
-

- Availability is one of our High Priority goals. We're making efforts to maximize uptime - and ensuring user data is backed up in a secure and encrypted location. -

-

- We're launching{' '} - - https://status.supabase.io - {' '} - to keep track of uptime across all of our services and critical infrastructure. -

-
- +
+
+

+ During Alpha we experienced 2 minor incidents related to availability, neither of + which affected customer access to their data. These were: +

+
    +
  • + A third-party CDN API outage. As a result, subdomains were not created for new + projects. +
  • +
  • + Cloud resource limits. During peak periods we maxed out the number of Virtual + Machines we could initiate in a couple of popular regions, these limitations are + artificial and our Cloud providers quickly lifted them. We also hit the maximum + number of subdomains that could be issued temporarily +
  • +
+

+ Availability is one of our High Priority goals. We're making efforts to maximize + uptime and ensuring user data is backed up in a secure and encrypted location. +

+

+ We're launching{' '} + + https://status.supabase.io + {' '} + to keep track of uptime across all of our services and critical infrastructure. +

+
+ +
+

+ For our Alpha & Beta Users we take daily backups of your Database free of charge up to + 20GB and store them in an encrypted format. They are available to download at any time + via the dashboard. +

-

- For our Alpha & Beta Users we take daily backups of your Database free of charge up to - 20GB and store them in an encrypted format. They are available to download at any time - via the dashboard. -

-
-) + ) +} const NewFeaturesAndIntegrations = () => (
@@ -817,8 +823,7 @@ const WhatsNext = () => ( ) const Beta = () => { - - const [ menuOpen, setMenuOpen ] = useState(false) + const [menuOpen, setMenuOpen] = useState(false) const { basePath } = useRouter() const references: any = { @@ -863,7 +868,7 @@ const Beta = () => { - setMenuOpen(!menuOpen)}/> + setMenuOpen(!menuOpen)} /> setMenuOpen(false)}