From e6d86b137a1480ff24af947e3b746ca6074f827f Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Wed, 15 May 2024 15:11:00 -0400 Subject: [PATCH 1/4] feat: update design --- app.vue | 2 +- layouts/tutorials.vue | 21 ------------------- nuxt.config.ts | 5 +++++ pages/tutorials/index.vue | 43 +++++++++++++++++++++++---------------- 4 files changed, 32 insertions(+), 39 deletions(-) diff --git a/app.vue b/app.vue index 6a1cbbd..96ac5aa 100644 --- a/app.vue +++ b/app.vue @@ -49,7 +49,7 @@ provide('navigation', navigation);
- + diff --git a/layouts/tutorials.vue b/layouts/tutorials.vue index 6b07fb2..b28db03 100644 --- a/layouts/tutorials.vue +++ b/layouts/tutorials.vue @@ -4,10 +4,8 @@ const route = useRoute(); if (!route.path) { throw new Error('Route path is not defined'); } -console.log('PATH', route); const { data: info } = await useAsyncData(`${route.path}-info`, () => { - console.log('ROUTE', route.fullPath); return queryContent(`${route.fullPath}/_info`).findOne(); }); @@ -21,25 +19,6 @@ const { data: navigation } = await useAsyncData(`${route.path}-sidenav`, () => { return fetchContentNavigation(query); }); -// const links = computed(() => { -// const pageLinks = navigation.value; -// return [ -// { -// label: 'Tutorials', -// icon: 'i-heroicons-arrow-left-circle', -// to: '/tutorials', -// }, -// { -// label: info.value?.title || 'Guide', -// collapsible: false, -// children: pageLinks[0].children[0].children.map((item) => ({ -// label: item.title, -// to: item._path, -// })), -// }, -// ]; -// }); -console.log('WHY INFO', info.value); const links = [ { label: 'Tutorials', diff --git a/nuxt.config.ts b/nuxt.config.ts index f122318..b7fd030 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -2,4 +2,9 @@ export default defineNuxtConfig({ extends: [['github:matter-labs/docs-nuxt-template', { install: true }]], modules: ['@nuxt/content', '@nuxt/ui', '@nuxt/eslint'], + runtimeConfig: { + public: { + app: 'code', + }, + }, }); diff --git a/pages/tutorials/index.vue b/pages/tutorials/index.vue index d605f50..4579aa2 100644 --- a/pages/tutorials/index.vue +++ b/pages/tutorials/index.vue @@ -13,27 +13,36 @@ const { data: guides } = await useAsyncData('tutorials', () => description="Explore all the community contributed guides for zkSync" icon="i-zksync-logo" /> - -
- {{ guide.title }} -
-
- -
-
+ + From b03a6f02fd3f6aa33f40d7c012fbdc915ef8bb01 Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Wed, 15 May 2024 15:11:20 -0400 Subject: [PATCH 2/4] chore: add env for staging build --- .github/workflows/deploy-preview.yml | 3 +++ .github/workflows/deploy-staging.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index aed033f..7c88838 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -3,6 +3,9 @@ on: pull_request: workflow_dispatch: +env: + NUXT_SITE_ENV: staging # used for NuxtSEO to disable things like indexing on staging + permissions: checks: write contents: read diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 19ef57f..9303be1 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -3,6 +3,9 @@ on: push: branches: [staging] +env: + NUXT_SITE_ENV: staging # used for NuxtSEO to disable things like indexing on staging + jobs: build_and_deploy: env: From cd1111d611871242eac96819e78e6888b096e4bf Mon Sep 17 00:00:00 2001 From: Sabrina Ferguson Date: Wed, 15 May 2024 15:11:28 -0400 Subject: [PATCH 3/4] feat: add cool landing page --- components/IconOrbit.vue | 321 +++++++++++++++++++++++++++++++++ pages/index.vue | 23 ++- public/logos/Solidity_logo.svg | 1 + public/logos/Vyper.svg | 10 + public/logos/alchemy.svg | 1 + public/logos/atlas_zk_logo.svg | 10 + public/logos/ethereum.svg | 13 ++ public/logos/hardhat.svg | 19 ++ public/logos/remix_logo.svg | 10 + public/logos/viem-icon.png | Bin 0 -> 8364 bytes public/logos/viem.png | Bin 0 -> 7681 bytes public/logos/web3js-icon.png | Bin 0 -> 7175 bytes public/logos/web3js.svg | 9 + public/logos/zksync-icon.svg | 1 + 14 files changed, 416 insertions(+), 2 deletions(-) create mode 100644 components/IconOrbit.vue create mode 100644 public/logos/Solidity_logo.svg create mode 100644 public/logos/Vyper.svg create mode 100644 public/logos/alchemy.svg create mode 100644 public/logos/atlas_zk_logo.svg create mode 100644 public/logos/ethereum.svg create mode 100644 public/logos/hardhat.svg create mode 100644 public/logos/remix_logo.svg create mode 100644 public/logos/viem-icon.png create mode 100644 public/logos/viem.png create mode 100644 public/logos/web3js-icon.png create mode 100644 public/logos/web3js.svg create mode 100644 public/logos/zksync-icon.svg diff --git a/components/IconOrbit.vue b/components/IconOrbit.vue new file mode 100644 index 0000000..b27d17b --- /dev/null +++ b/components/IconOrbit.vue @@ -0,0 +1,321 @@ + + + + + diff --git a/pages/index.vue b/pages/index.vue index 148af5f..0734a5c 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -16,10 +16,29 @@ useSeoMeta({