From 24a949c639bd5a83e8e27af034a4eb36af60dde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Thu, 25 Jul 2024 12:52:11 +0200 Subject: [PATCH 1/2] Change the way components are displayed. --- README.md | 48 +++++++++++- components.json | 2 +- src/App.tsx | 189 +++++++++++++++++++++++++++--------------------- src/globals.css | 22 +++--- 4 files changed, 165 insertions(+), 96 deletions(-) diff --git a/README.md b/README.md index b7429c5..81786c1 100644 --- a/README.md +++ b/README.md @@ -1 +1,47 @@ -# Typeberry Toolkit +# typeberry 🫐 tools + +Additional web-based tooling for typeberry. + +- [ ] PVM disassembler + +## Requirements + +```bash +$ node --version +v 22.1.0 +``` + +We recommend [NVM](https://github.com/nvm-sh/nvm) to install and manage different +`node` versions. + +### Installing dependencies + +```bash +$ npm ci +``` + +### Start a development version + +```bash +$ npm run dev +``` + +### Building + +```bash +$ npm run build +``` + +The static files with the website can then be found in `./dist` folder. + +You can display them for instance with `http-server`: + +```bash +$ npx http-server -o +``` + +### Running formatting & linting + +```bash +$ npm run lint +``` diff --git a/components.json b/components.json index 4f859ee..8d62655 100644 --- a/components.json +++ b/components.json @@ -6,7 +6,7 @@ "tailwind": { "config": "tailwind.config.js", "css": "src/globals.css", - "baseColor": "slate", + "baseColor": "sky", "cssVariables": true, "prefix": "" }, diff --git a/src/App.tsx b/src/App.tsx index bc6f291..00add21 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -70,91 +70,114 @@ function App() { return ( <> -
- - { - if (e.target.files?.length) { - handleProgramUpload(e.target.files[0]); - } - }} - /> +
+
+
+ +