Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New landing page #47

Merged
merged 35 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
820c4ec
new line
ordinalspractice Jan 14, 2025
c5a6e3b
add react
ordinalspractice Jan 14, 2025
a3e3e0a
ignore node modules
ordinalspractice Jan 14, 2025
84bfd1f
ignore node moduless
ordinalspractice Jan 14, 2025
bb5bbc0
Move Rust wasm to seperate dir
raphjaph Jan 14, 2025
94637ac
Merge branch 'new-website' of github.com:ordinalspractice/bip322 into…
raphjaph Jan 14, 2025
ccfc0fa
Clean up
raphjaph Jan 14, 2025
773a1f5
ignore all node modules
ordinalspractice Jan 14, 2025
c22e6bd
Merge branch 'new-website' of github.com:ordinalspractice/bip322 into…
ordinalspractice Jan 14, 2025
432a38d
Add justfile
raphjaph Jan 14, 2025
4a0d607
Delete unused filed
raphjaph Jan 14, 2025
466b200
Amend
raphjaph Jan 14, 2025
dfcf196
Amend
raphjaph Jan 14, 2025
e937b6f
add connect and sign with unisat only
ordinalspractice Jan 14, 2025
4d48512
Some things
raphjaph Jan 14, 2025
0860a0d
Move into src
raphjaph Jan 14, 2025
703461c
Move favicon
raphjaph Jan 14, 2025
ebcb16a
Rename to verify
raphjaph Jan 14, 2025
6263684
Build static site
raphjaph Jan 14, 2025
c4d6086
Setup static site deployment
raphjaph Jan 14, 2025
6efd8cf
Tweak justfile
raphjaph Jan 14, 2025
9820f55
new layout with verification form
ordinalspractice Jan 14, 2025
989e14d
Merge branch 'new-website' of github.com:ordinalspractice/bip322 into…
ordinalspractice Jan 14, 2025
56ef85e
Fix Wasm CI test
raphjaph Jan 14, 2025
b6cc014
sign message logic
ordinalspractice Jan 15, 2025
f2e148e
add reseting sign message form
ordinalspractice Jan 15, 2025
2397eef
add ui components library
ordinalspractice Jan 15, 2025
d00c0fe
reset and return flow in forms
ordinalspractice Jan 16, 2025
182cb47
add expanding animation for main buttons
ordinalspractice Jan 16, 2025
fce982a
Sign with ordinal address
raphjaph Jan 16, 2025
7cc3dc5
Small fixes
raphjaph Jan 16, 2025
765d55a
change some text
raphjaph Jan 16, 2025
687c9c6
fixed main layout
ordinalspractice Jan 16, 2025
c379c7d
add fuzziness to ui
ordinalspractice Jan 16, 2025
c121468
Amend
raphjaph Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 11 additions & 15 deletions .github/workflows/static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,26 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rs/toolchain@v1
- name: Setup Node
uses: actions/setup-node@v4

- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
working-directory: www

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Build WASM
run: |
wasm-pack build \
--target web \
--out-name bip322 \
www
cp www/pkg/bip322.js www/pkg/bip322_bg.wasm www
- name: Build project
with:
working-directory: www
run: npm run build

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './www'
path: './www/dist'

- name: Deploy to GitHub Pages
id: deployment
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
**/target
www/bip322*
**/node_modules
**/dist
2 changes: 1 addition & 1 deletion contrib/wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ set -euox pipefail
clang --version
CARGO_TARGET_DIR=wasm cargo install --force wasm-pack
printf '\n[lib]\ncrate-type = ["cdylib", "rlib"]\n' >> Cargo.toml
CC=clang wasm-pack build www
CC=clang wasm-pack build www/verify
# CC=clang wasm-pack test --node
12 changes: 0 additions & 12 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ unused:
coverage:
cargo llvm-cov

wasm:
AR=/opt/homebrew/opt/llvm/bin/llvm-ar \
CC=/opt/homebrew/opt/llvm/bin/clang \
wasm-pack build \
--target web \
--out-name bip322 \
www
cp www/pkg/bip322.js www/pkg/bip322_bg.wasm www

serve: wasm
python3 -m http.server -b 127.0.0.1 -d www 8080

locks:
#!/usr/bin/env bash
set -euo pipefail
Expand Down
21 changes: 21 additions & 0 deletions www/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "zinc",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
28 changes: 28 additions & 0 deletions www/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
111 changes: 0 additions & 111 deletions www/index.css

This file was deleted.

30 changes: 0 additions & 30 deletions www/index.html

This file was deleted.

56 changes: 0 additions & 56 deletions www/index.js

This file was deleted.

23 changes: 23 additions & 0 deletions www/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
install:
npm install

wasm:
AR=/opt/homebrew/opt/llvm/bin/llvm-ar \
CC=/opt/homebrew/opt/llvm/bin/clang \
wasm-pack build \
--target web \
--out-name bip322 \
verify
cp verify/pkg/bip322.js verify/pkg/bip322.d.ts verify/pkg/bip322_bg.wasm src

build: install wasm
npm run build

run: install wasm
npm run dev

lint: install
npm run lint

serve: build
python3 -m http.server -b 127.0.0.1 -d dist 8888
Loading
Loading