From 22dd46a8f421f20324ec77b9dbaef2f26c96334e Mon Sep 17 00:00:00 2001 From: Alain Nicolas Date: Tue, 16 Jan 2024 14:19:44 +0100 Subject: [PATCH] feat: As a developer, I want to see an end-to-end hello-world tutorial (#521) --- pnpm-lock.yaml | 6 + website/package.json | 2 + website/src/App.css | 10 ++ website/src/App.tsx | 30 +++-- website/src/components/AttestationPreview.css | 5 + website/src/components/AttestationPreview.tsx | 46 +++++++ website/src/components/CreatePortal.tsx | 46 +++++++ website/src/components/CreateSchema.tsx | 65 ++++++++++ website/src/components/Footer.css | 6 - website/src/components/IssueAttestation.tsx | 53 ++++++++ website/src/components/Navbar.tsx | 5 + website/src/main.tsx | 4 +- website/src/pages/Home.css | 0 website/src/pages/Home.tsx | 1 - website/src/pages/SDKDemo.css | 0 website/src/pages/SDKDemo.tsx | 115 ----------------- website/src/pages/Tutorials.tsx | 120 ++++++++++++++++++ 17 files changed, 377 insertions(+), 137 deletions(-) create mode 100644 website/src/components/AttestationPreview.css create mode 100644 website/src/components/AttestationPreview.tsx create mode 100644 website/src/components/CreatePortal.tsx create mode 100644 website/src/components/CreateSchema.tsx create mode 100644 website/src/components/IssueAttestation.tsx delete mode 100644 website/src/pages/Home.css delete mode 100644 website/src/pages/SDKDemo.css delete mode 100644 website/src/pages/SDKDemo.tsx create mode 100644 website/src/pages/Tutorials.tsx diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1e903bf3..8a1039c6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -514,6 +514,9 @@ importers: '@verax-attestation-registry/verax-sdk': specifier: 1.1.0 version: 1.1.0(@babel/core@7.23.3)(@envelop/core@4.0.3)(@graphql-mesh/types@0.93.2)(@graphql-tools/delegate@10.0.3)(@graphql-tools/merge@9.0.0)(@graphql-tools/utils@9.2.1)(@graphql-tools/wrap@10.0.1)(@types/node@20.10.3)(graphql-tag@2.12.6)(react-dom@18.2.0)(react-native@0.72.6)(react@18.2.0)(tslib@2.6.2)(typescript@5.2.2)(zod@3.22.4) + '@wagmi/core': + specifier: ^1.4.7 + version: 1.4.7(@types/react@18.2.37)(react@18.2.0)(typescript@5.2.2)(viem@1.18.9)(zod@3.22.4) '@web3modal/wagmi': specifier: ^3.5.0 version: 3.5.4(@types/react@18.2.37)(@wagmi/core@1.4.7)(typescript@5.2.2)(viem@1.18.9) @@ -526,6 +529,9 @@ importers: react-dom: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) + react-json-view: + specifier: ^1.21.3 + version: 1.21.3(@types/react@18.2.37)(react-dom@18.2.0)(react@18.2.0) react-router-dom: specifier: ^6.19.0 version: 6.19.0(react-dom@18.2.0)(react@18.2.0) diff --git a/website/package.json b/website/package.json index 3b38b277..e3c3c8bf 100644 --- a/website/package.json +++ b/website/package.json @@ -28,10 +28,12 @@ "@fortawesome/react-fontawesome": "^0.2.0", "@lens-protocol/widgets-react": "^2.1.0", "@verax-attestation-registry/verax-sdk": "1.1.0", + "@wagmi/core": "^1.4.7", "@web3modal/wagmi": "^3.5.0", "axios": "^1.6.1", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-json-view": "^1.21.3", "react-router-dom": "^6.19.0", "viem": "^1.18.9", "wagmi": "^1.4.6" diff --git a/website/src/App.css b/website/src/App.css index c7637078..166e77b1 100644 --- a/website/src/App.css +++ b/website/src/App.css @@ -4,6 +4,16 @@ text-align: center; } +.global-container { + display: flex; + flex-direction: column; + min-height: 100vh; +} + +.global-body { + flex: 1; +} + .logo { height: 6em; padding: 1.5em; diff --git a/website/src/App.tsx b/website/src/App.tsx index a402fc27..f256a6c4 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -1,24 +1,28 @@ import "./App.css"; import { HashRouter, Route, Routes } from "react-router-dom"; import Home from "./pages/Home.tsx"; -import SDKDemo from "./pages/SDKDemo.tsx"; import Navbar from "./components/Navbar.tsx"; import Footer from "./components/Footer.tsx"; +import Tutorials from "./pages/Tutorials.tsx"; function App() { return ( - -
- -
- - } /> - } /> - -