From 6b728eeecda8a15490f1f6a24f79558859930819 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 4 Aug 2023 08:48:37 -0400 Subject: [PATCH] support plans and jambonz.cloud (#75) * support plans and jambonz.cloud * update tests * further test fix * minor * change font-size of markdown text from 0.875 rem to 1rem --- cypress/integration/navi.spec.js | 4 +- data/home.yml | 25 +-- data/pricing.yml | 2 +- data/regions.yml | 21 -- data/site.yml | 12 +- data/support.yml | 17 ++ data/why.yml | 11 +- markdown/support/index.md | 9 + markdown/support/tiers/support-level-1.md | 12 ++ markdown/support/tiers/support-level-2.md | 12 ++ markdown/support/tiers/support-level-3.md | 15 ++ package-lock.json | 243 +++++++++++++++++++++- pages/regions.js | 68 ------ pages/support/[[...slug]].js | 39 ++++ src/styles/_layout.scss | 1 + src/styles/_text-layout.scss | 6 +- src/styles/global.scss | 1 - 17 files changed, 366 insertions(+), 132 deletions(-) delete mode 100644 data/regions.yml create mode 100644 data/support.yml create mode 100644 markdown/support/index.md create mode 100644 markdown/support/tiers/support-level-1.md create mode 100644 markdown/support/tiers/support-level-2.md create mode 100644 markdown/support/tiers/support-level-3.md delete mode 100644 pages/regions.js create mode 100644 pages/support/[[...slug]].js diff --git a/cypress/integration/navi.spec.js b/cypress/integration/navi.spec.js index 4a4e598..33eac51 100644 --- a/cypress/integration/navi.spec.js +++ b/cypress/integration/navi.spec.js @@ -30,9 +30,7 @@ describe('Navigation', () => { cy.get('.navi__login .btn') .contains(site.navi.login.label) - .should('have.attr', 'href', - `${site.navi.login.link.pathname}?redirect=${site.navi.login.link.query.redirect}` - ) + .should('have.attr', 'href', `${site.navi.login.link}`) }); }); diff --git a/data/home.yml b/data/home.yml index e5baf53..8ec4ec7 100644 --- a/data/home.yml +++ b/data/home.yml @@ -3,11 +3,9 @@ hero: subtext: - jambonz is the open source voice platform - for conversational AI providers and CSPs. - cta: Sign up for free - url: - pathname: /regions/ - query: - redirect: register + cta: Create a free account on jambonz.cloud + url: https://jambonz.cloud/register + tech: image: src: /images/Jambonz_app_screenshot.webp @@ -17,14 +15,14 @@ tech: height: 842 notes: - - title: Adapts to your needs - text: Designed to plug-and-play with your chosen carriers and tech stack. - - - title: Privacy comes first - text: Our innovative design means that your customers' most sensitive personal information is never stored on our systems. + title: Self-hosted or cloud + text: Run your traffic on our cloud service or deploy on your own infrastructure. - title: Open source - text: We work in the open, so that you can see all that we do and can gain the greatest value from our products. + text: Drive your own innovations into the software to outdistance your competition. + - + title: Data privacy + text: Our innovative design protects your customers' most sensitive data. - title: Reliable text: Built by a team that has been delivering five 9’s products to telcos since VoIP was a thing. @@ -99,7 +97,4 @@ byo: - Cloud comment: Why pay someone to upcharge you for all of that when it’s basically a one-click experience to provision all of those yourself in today's world. You know how to click, right? cta: Get started for free - url: - pathname: /regions/ - query: - redirect: register \ No newline at end of file + url: https://jambonz.cloud/register diff --git a/data/pricing.yml b/data/pricing.yml index 2fb95f6..fd55a34 100644 --- a/data/pricing.yml +++ b/data/pricing.yml @@ -1,6 +1,6 @@ hero: headline: Simple, capacity based pricing. - subtext: Choose the number of concurrent calls you need to support, and pay $12/call session on our hosted platform (MRC). + subtext: Choose the number of concurrent calls you need to support, and pay $8/call session on our hosted platform (MRC). structure: text: - Oh, and with that you can register 5 x the number of devices - so if you purchased 100 sessions you can also register up to 500 devices. diff --git a/data/regions.yml b/data/regions.yml deleted file mode 100644 index b989c77..0000000 --- a/data/regions.yml +++ /dev/null @@ -1,21 +0,0 @@ -hero: - headline: Choose your location - subtext: jambonz currently operates in the following regions - -regions: - - - name: us - title: United States - text: jambonz.us - url: https://jambonz.us/sign-in - altUrl: https://jambonz.us/register - icon: MapPin - color: blue - - - name: eu - title: Europe - text: jambonz.xyz - url: https://jambonz.xyz/sign-in - altUrl: https://jambonz.xyz/register - icon: MapPin - color: teal \ No newline at end of file diff --git a/data/site.yml b/data/site.yml index 45a314b..d0a3023 100644 --- a/data/site.yml +++ b/data/site.yml @@ -1,6 +1,6 @@ banner: active: true - text: Click here to launch a jambonz CPaaS on AWS. + text: Click to launch a jambonz instance on AWS. link: https://blog.jambonz.org/installing-jambonz-using-aws-marketplace latest: - @@ -15,10 +15,7 @@ navi: label: Home login: label: Log In - link: - pathname: /regions/ - query: - redirect: login + link: https://jambonz.cloud links: - label: Why jambonz @@ -27,7 +24,10 @@ navi: label: Docs link: /docs/ - - label: Pricing + label: Support + link: /support/ + - + label: Cloud Pricing link: /pricing/ - label: Open Source diff --git a/data/support.yml b/data/support.yml new file mode 100644 index 0000000..4129e94 --- /dev/null +++ b/data/support.yml @@ -0,0 +1,17 @@ +root: + link: /support/ + label: +navi: + - + path: tiers + title: Support Options + pages: + - + path: support-level-1 + title: Single system + - + path: support-level-2 + title: Cluster + - + path: support-level-3 + title: Premium support diff --git a/data/why.yml b/data/why.yml index 303e729..87ab5ff 100644 --- a/data/why.yml +++ b/data/why.yml @@ -2,10 +2,8 @@ hero: headline: Why choose jambonz? subtext: jambonz is the communications platform that brings your ideas to life. So you can bring your best to your customers every day. cta: Get started for free - url: - pathname: /regions/ - query: - redirect: register + url: https://jambonz.cloud/register + facts: - icon: Layers @@ -37,7 +35,4 @@ os: url: https://github.com/drachtio logo: /svg/drachtio.svg cta: Get started for free - url: - pathname: /regions/ - query: - redirect: register \ No newline at end of file + url: https://jambonz.cloud/register diff --git a/markdown/support/index.md b/markdown/support/index.md new file mode 100644 index 0000000..0ddd1a0 --- /dev/null +++ b/markdown/support/index.md @@ -0,0 +1,9 @@ +# Commercial Support + +If you are hosting your own jambonz platform, please consider purchasing one of our commercial support plans. We provide on-call support, assistance in initial setup and tuning, and prioritization of your bug fixes and feature requests. + +- If jambonz is a mission-critical element of your business strategy, then having a support contract in place with the team that built it and knows it best is a must-have. +- If you chose jambonz because the open source format enables you to drive more innovation into your voice products, then working directly with the jambonz team will make you go faster and further than your competition. +- And frankly, support revenue is **the** key means of funding the project so if you want jambonz to be a sustainable, long-term solution, then purchasing a support plan is the best way to ensure that happens. + +We offer a variety of support options: [single system](/support/tiers/support-level-1), [cluster](/support/tiers/support-level-2), and [premium support](/support/tiers/support-level-3). Please review the options to see what suits you best. If you have special needs or want to engage us for a consulting project, please email us at support@jambonz.org. \ No newline at end of file diff --git a/markdown/support/tiers/support-level-1.md b/markdown/support/tiers/support-level-1.md new file mode 100644 index 0000000..77d336e --- /dev/null +++ b/markdown/support/tiers/support-level-1.md @@ -0,0 +1,12 @@ +# Single system + +Under this support plan we help you set up and then support a single jambonz instance running on your infrastructure. + +This support plan includes: +- Assistance with initial system provisioning, including development of devops to make your deployment repeatable in your infrastructure. +- Level-3 support of production issues. +- Dedicated Slack channel to interact directly with the jambonz team. +- Priority assignment of your bug fixes. + +### Pricing +- $1,000/month. \ No newline at end of file diff --git a/markdown/support/tiers/support-level-2.md b/markdown/support/tiers/support-level-2.md new file mode 100644 index 0000000..11a19a3 --- /dev/null +++ b/markdown/support/tiers/support-level-2.md @@ -0,0 +1,12 @@ +# Cluster + +Under this support plan we help you design, launch, and maintain a scalable jambonz cluster capable of handling large call volumes. + +The support plan includes: +- Assistance with initial system provisioning, including development of devops to make your deployment repeatable in your infrastructure +- Level-3 support of production issues. +- Dedicated Slack channel to interact directly with the jambonz team. +- Priority assignment of your bug fixes. + +### Pricing +- $2,500/month. \ No newline at end of file diff --git a/markdown/support/tiers/support-level-3.md b/markdown/support/tiers/support-level-3.md new file mode 100644 index 0000000..d904dd8 --- /dev/null +++ b/markdown/support/tiers/support-level-3.md @@ -0,0 +1,15 @@ +# Premium Support + +This support plan is designed for customers that want to work very closely with the jambonz team to maximize the value of their offerings. We spend a lot of time with premium support customers to make sure their needs are met, and they have significant influence into the product roadmap as well. + +This support plan includes: +- Support for an unlimited number of jambonz instances and clusters. +- Assistance with initial system provisioning, including development of devops to make your deployment repeatable in your infrastructure. +- Level-2/3 support of production issues, with SLAs. +- Ability to work directly with your carriers and partners to address interop and other system integration issues. +- Dedicated Slack channel to interact directly with the jambonz team. +- A Zendesk account to provide detailed and private tracking of your issues. +- Priority assignment of your bug fixes **as well as feature requests**. + +### Pricing +- Contact us at support@jambonz.org \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5d62a47..5e55e7e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -506,6 +506,51 @@ "node": "*" } }, + "node_modules/@next/swc-android-arm-eabi": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.1.5.tgz", + "integrity": "sha512-SKnGTdYcoN04Y2DvE0/Y7/MjkA+ltsmbuH/y/hR7Ob7tsj+8ZdOYuk+YvW1B8dY20nDPHP58XgDTSm2nA8BzzA==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-android-arm64": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-12.1.5.tgz", + "integrity": "sha512-YXiqgQ/9Rxg1dXp6brXbeQM1JDx9SwUY/36JiE+36FXqYEmDYbxld9qkX6GEzkc5rbwJ+RCitargnzEtwGW0mw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-darwin-arm64": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.1.5.tgz", + "integrity": "sha512-y8mhldb/WFZ6lFeowkGfi0cO/lBdiBqDk4T4LZLvCpoQp4Or/NzUN6P5NzBQZ5/b4oUHM/wQICEM+1wKA4qIVw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, "node_modules/@next/swc-darwin-x64": { "version": "12.1.5", "cpu": [ @@ -520,6 +565,126 @@ "node": ">= 10" } }, + "node_modules/@next/swc-linux-arm-gnueabihf": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.1.5.tgz", + "integrity": "sha512-WnhdM5duONMvt2CncAl+9pim0wBxDS2lHoo7ub/o/i1bRbs11UTzosKzEXVaTDCUkCX2c32lIDi1WcN2ZPkcdw==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.1.5.tgz", + "integrity": "sha512-Jq2H68yQ4bLUhR/XQnbw3LDW0GMQn355qx6rU36BthDLeGue7YV7MqNPa8GKvrpPocEMW77nWx/1yI6w6J07gw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.1.5.tgz", + "integrity": "sha512-KgPjwdbhDqXI7ghNN8V/WAiLquc9Ebe8KBrNNEL0NQr+yd9CyKJ6KqjayVkmX+hbHzbyvbui/5wh/p3CZQ9xcQ==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.1.5.tgz", + "integrity": "sha512-O2ErUTvCJ6DkNTSr9pbu1n3tcqykqE/ebty1rwClzIYdOgpB3T2MfEPP+K7GhUR87wmN/hlihO9ch7qpVFDGKw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.1.5.tgz", + "integrity": "sha512-1eIlZmlO/VRjxxzUBcVosf54AFU3ltAzHi+BJA+9U/lPxCYIsT+R4uO3QksRzRjKWhVQMRjEnlXyyq5SKJm7BA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.1.5.tgz", + "integrity": "sha512-oromsfokbEuVb0CBLLE7R9qX3KGXucZpsojLpzUh1QJjuy1QkrPJncwr8xmWQnwgtQ6ecMWXgXPB+qtvizT9Tw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-ia32-msvc": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.1.5.tgz", + "integrity": "sha512-a/51L5KzBpeZSW9LbekMo3I3Cwul+V+QKwbEIMA+Qwb2qrlcn1L9h3lt8cHqNTFt2y72ce6aTwDTw1lyi5oIRA==", + "cpu": [ + "ia32" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.1.5.tgz", + "integrity": "sha512-/SoXW1Ntpmpw3AXAzfDRaQidnd8kbZ2oSni8u5z0yw6t4RwJvmdZy1eOaAADRThWKV+2oU90++LSnXJIwBRWYQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "dev": true, @@ -1513,9 +1678,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001486", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001486.tgz", - "integrity": "sha512-uv7/gXuHi10Whlj0pp5q/tsK/32J2QSqVRKQhs2j8VsDCjgyruAh/eEXHF822VqO9yT6iZKw3nRwZRSPBE9OQg==", + "version": "1.0.30001519", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001519.tgz", + "integrity": "sha512-0QHgqR+Jv4bxHMp8kZ1Kn8CH55OikjKJ6JmKkZYP1F3D7w+lnFXF70nG5eNfsZS89jadi5Ywy5UCSKLAglIRkg==", "funding": [ { "type": "opencollective", @@ -7419,10 +7584,76 @@ } } }, + "@next/swc-android-arm-eabi": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.1.5.tgz", + "integrity": "sha512-SKnGTdYcoN04Y2DvE0/Y7/MjkA+ltsmbuH/y/hR7Ob7tsj+8ZdOYuk+YvW1B8dY20nDPHP58XgDTSm2nA8BzzA==", + "optional": true + }, + "@next/swc-android-arm64": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-android-arm64/-/swc-android-arm64-12.1.5.tgz", + "integrity": "sha512-YXiqgQ/9Rxg1dXp6brXbeQM1JDx9SwUY/36JiE+36FXqYEmDYbxld9qkX6GEzkc5rbwJ+RCitargnzEtwGW0mw==", + "optional": true + }, + "@next/swc-darwin-arm64": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-12.1.5.tgz", + "integrity": "sha512-y8mhldb/WFZ6lFeowkGfi0cO/lBdiBqDk4T4LZLvCpoQp4Or/NzUN6P5NzBQZ5/b4oUHM/wQICEM+1wKA4qIVw==", + "optional": true + }, "@next/swc-darwin-x64": { "version": "12.1.5", "optional": true }, + "@next/swc-linux-arm-gnueabihf": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-12.1.5.tgz", + "integrity": "sha512-WnhdM5duONMvt2CncAl+9pim0wBxDS2lHoo7ub/o/i1bRbs11UTzosKzEXVaTDCUkCX2c32lIDi1WcN2ZPkcdw==", + "optional": true + }, + "@next/swc-linux-arm64-gnu": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-12.1.5.tgz", + "integrity": "sha512-Jq2H68yQ4bLUhR/XQnbw3LDW0GMQn355qx6rU36BthDLeGue7YV7MqNPa8GKvrpPocEMW77nWx/1yI6w6J07gw==", + "optional": true + }, + "@next/swc-linux-arm64-musl": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-12.1.5.tgz", + "integrity": "sha512-KgPjwdbhDqXI7ghNN8V/WAiLquc9Ebe8KBrNNEL0NQr+yd9CyKJ6KqjayVkmX+hbHzbyvbui/5wh/p3CZQ9xcQ==", + "optional": true + }, + "@next/swc-linux-x64-gnu": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-12.1.5.tgz", + "integrity": "sha512-O2ErUTvCJ6DkNTSr9pbu1n3tcqykqE/ebty1rwClzIYdOgpB3T2MfEPP+K7GhUR87wmN/hlihO9ch7qpVFDGKw==", + "optional": true + }, + "@next/swc-linux-x64-musl": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-12.1.5.tgz", + "integrity": "sha512-1eIlZmlO/VRjxxzUBcVosf54AFU3ltAzHi+BJA+9U/lPxCYIsT+R4uO3QksRzRjKWhVQMRjEnlXyyq5SKJm7BA==", + "optional": true + }, + "@next/swc-win32-arm64-msvc": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-12.1.5.tgz", + "integrity": "sha512-oromsfokbEuVb0CBLLE7R9qX3KGXucZpsojLpzUh1QJjuy1QkrPJncwr8xmWQnwgtQ6ecMWXgXPB+qtvizT9Tw==", + "optional": true + }, + "@next/swc-win32-ia32-msvc": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.1.5.tgz", + "integrity": "sha512-a/51L5KzBpeZSW9LbekMo3I3Cwul+V+QKwbEIMA+Qwb2qrlcn1L9h3lt8cHqNTFt2y72ce6aTwDTw1lyi5oIRA==", + "optional": true + }, + "@next/swc-win32-x64-msvc": { + "version": "12.1.5", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.1.5.tgz", + "integrity": "sha512-/SoXW1Ntpmpw3AXAzfDRaQidnd8kbZ2oSni8u5z0yw6t4RwJvmdZy1eOaAADRThWKV+2oU90++LSnXJIwBRWYQ==", + "optional": true + }, "@nodelib/fs.scandir": { "version": "2.1.5", "dev": true, @@ -8098,9 +8329,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001486", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001486.tgz", - "integrity": "sha512-uv7/gXuHi10Whlj0pp5q/tsK/32J2QSqVRKQhs2j8VsDCjgyruAh/eEXHF822VqO9yT6iZKw3nRwZRSPBE9OQg==" + "version": "1.0.30001519", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001519.tgz", + "integrity": "sha512-0QHgqR+Jv4bxHMp8kZ1Kn8CH55OikjKJ6JmKkZYP1F3D7w+lnFXF70nG5eNfsZS89jadi5Ywy5UCSKLAglIRkg==" }, "caseless": { "version": "0.12.0", diff --git a/pages/regions.js b/pages/regions.js deleted file mode 100644 index 9a6af73..0000000 --- a/pages/regions.js +++ /dev/null @@ -1,68 +0,0 @@ -import Link from 'next/link'; -import { useRouter } from 'next/router'; - -import { nanoid } from 'nanoid'; -import { Icon, P } from '@jambonz/ui-kit'; - -import { getData } from '../src/lib/data'; -import { Icons } from '../src/components/icons'; -import Layout, { Hero } from '../src/components/layout'; - -function Regions({ data }) { - const router = useRouter(); - const redirect = router.query.redirect; - - return ( -
- {data.regions.map((region) => { - const href = (redirect === 'login') ? region.url : region.altUrl; - const SvgIcon = Icons[region.icon]; - - return ( -
-
- - - -
-
-

- {region.title} -

-
-
-

- - - {region.text} - - - -

-
-
- ); - })} -
- ); -} - -export default function RegionsPage({ data }) { - return ( - - - - - - ); -} - -export async function getStaticProps() { - const data = getData('regions'); - - return { - props: { - data, - }, - }; -} \ No newline at end of file diff --git a/pages/support/[[...slug]].js b/pages/support/[[...slug]].js new file mode 100644 index 0000000..130db8e --- /dev/null +++ b/pages/support/[[...slug]].js @@ -0,0 +1,39 @@ +import Prism from 'prismjs'; +import { useEffect } from 'react'; + +import Layout from '../../src/components/layout'; +import Markdown from '../../src/components/markdown'; +import { getData, getMarkdown, getMarkdownPaths } from '../../src/lib/data'; + +export default function Support({ data, docs }) { + useEffect(() => { + setTimeout(() => Prism.highlightAll(), 0); + }); + + return ( + + + + ); +} + +export async function getStaticPaths() { + const paths = getMarkdownPaths('support'); + + return { + paths, + fallback: false, + }; +} + +export async function getStaticProps({ params }) { + const data = getData('support'); + const docs = await getMarkdown('support', params.slug); + + return { + props: { + data, + docs, + }, + }; +} diff --git a/src/styles/_layout.scss b/src/styles/_layout.scss index f55dced..ed5b0cb 100644 --- a/src/styles/_layout.scss +++ b/src/styles/_layout.scss @@ -106,6 +106,7 @@ &--home { padding-bottom: 64px; + padding-top: 32px; } &--why { diff --git a/src/styles/_text-layout.scss b/src/styles/_text-layout.scss index 05c3957..a356aef 100644 --- a/src/styles/_text-layout.scss +++ b/src/styles/_text-layout.scss @@ -26,7 +26,7 @@ } p { - @include ui-mixins.ms(); + @include ui-mixins.m(); } blockquote { @@ -60,12 +60,12 @@ li { list-style-type: disc; - @include ui-mixins.ms(); + @include ui-mixins.m(); } } table { - @include ui-mixins.ms(); + @include ui-mixins.m(); width: 100%; td, th { diff --git a/src/styles/global.scss b/src/styles/global.scss index 740e0ec..fdc3155 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -8,4 +8,3 @@ @use 'pages/home'; @use 'pages/why'; @use 'pages/pricing'; -@use 'pages/regions'; \ No newline at end of file