From b9b005bcb99eca5dad1199e7fad3c998d757a450 Mon Sep 17 00:00:00 2001 From: Igal Steklov Date: Sun, 11 Feb 2024 17:43:07 +0200 Subject: [PATCH 1/4] Update webstie-alt-env.yml --- .github/workflows/webstie-alt-env.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/webstie-alt-env.yml b/.github/workflows/webstie-alt-env.yml index 378be1a248..adee6acf20 100644 --- a/.github/workflows/webstie-alt-env.yml +++ b/.github/workflows/webstie-alt-env.yml @@ -1,4 +1,4 @@ -name: Build and Deploy Starknet Website (Altternative environment) +name: Build and Deploy Starknet Website (Alternative environment) on: workflow_dispatch: @@ -8,7 +8,7 @@ jobs: name: Build and Deploy environment: name: Starknet Website ${{ github.ref_name }} - url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev + url: https://${{ env.GITHUB_REF_SLUG_URL }}.alt-starknet-website.pages.dev runs-on: ubuntu-22.04 steps: - name: Checkout @@ -61,7 +61,7 @@ jobs: if [ "${{ env.GITHUB_REF_SLUG_URL }}" = "production" ]; then echo "VITE_SITE_URL=https://www.starknet.io" >> $GITHUB_ENV else - echo "VITE_SITE_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev" >> $GITHUB_ENV + echo "VITE_SITE_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.alt-starknet-website.pages.dev" >> $GITHUB_ENV fi - name: Build project From 61a1a69817cf22e1b69a44c5fe1a51f1dcc090c6 Mon Sep 17 00:00:00 2001 From: Igal Steklov Date: Sun, 11 Feb 2024 17:48:57 +0200 Subject: [PATCH 2/4] Update webstie-alt-env.yml --- .github/workflows/webstie-alt-env.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/webstie-alt-env.yml b/.github/workflows/webstie-alt-env.yml index adee6acf20..fac5d10734 100644 --- a/.github/workflows/webstie-alt-env.yml +++ b/.github/workflows/webstie-alt-env.yml @@ -82,7 +82,7 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN_ALT }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID_ALT }} - projectName: starknet-websites + projectName: alt-starknet-website directory: dist/client workingDirectory: workspaces/website wranglerVersion: '3' From ed06b411e4306a35f30a2940d0b9f5eb7b916da9 Mon Sep 17 00:00:00 2001 From: Igal Steklov Date: Mon, 12 Feb 2024 14:58:44 +0200 Subject: [PATCH 3/4] Update homepage text "Learn the basics" -> "Explore Starknet" --- workspaces/website/src/blocks/HomepageHero.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspaces/website/src/blocks/HomepageHero.tsx b/workspaces/website/src/blocks/HomepageHero.tsx index a513ae9eea..341d7c4c47 100644 --- a/workspaces/website/src/blocks/HomepageHero.tsx +++ b/workspaces/website/src/blocks/HomepageHero.tsx @@ -129,7 +129,7 @@ export const HomepageHero = ({ seo }: Props) => { variant="secondaryHero" onClick={() => navigate("/en/what-is-starknet")} > - Learn the basics + Explore Starknet From 448fa85fb71fe523bfa65a85d1b4b6dc7baa3007 Mon Sep 17 00:00:00 2001 From: Igal Steklov Date: Mon, 12 Feb 2024 14:58:51 +0200 Subject: [PATCH 4/4] Homepage: switch js navigation to href links --- workspaces/website/src/blocks/HomepageHero.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/workspaces/website/src/blocks/HomepageHero.tsx b/workspaces/website/src/blocks/HomepageHero.tsx index 341d7c4c47..661f8355b8 100644 --- a/workspaces/website/src/blocks/HomepageHero.tsx +++ b/workspaces/website/src/blocks/HomepageHero.tsx @@ -9,7 +9,6 @@ type Props = { }; }; import { Intro } from "./Intro"; -import { navigate } from "vite-plugin-ssr/client/router"; export const HomepageHero = ({ seo }: Props) => { return ( @@ -117,7 +116,7 @@ export const HomepageHero = ({ seo }: Props) => { zIndex={4} >