chore: base website
This commit is contained in:
parent
41edf8a86d
commit
61816265ac
21
.eslintrc.cjs
Normal file
21
.eslintrc.cjs
Normal file
@ -0,0 +1,21 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: { browser: true, es2020: true },
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:react/recommended',
|
||||
'plugin:react/jsx-runtime',
|
||||
'plugin:react-hooks/recommended',
|
||||
],
|
||||
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
||||
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
||||
settings: { react: { version: '18.2' } },
|
||||
plugins: ['react-refresh'],
|
||||
rules: {
|
||||
'react/jsx-no-target-blank': 'off',
|
||||
'react-refresh/only-export-components': [
|
||||
'warn',
|
||||
{ allowConstantExport: true },
|
||||
],
|
||||
},
|
||||
}
|
24
.gitignore
vendored
Normal file
24
.gitignore
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
8
README.md
Normal file
8
README.md
Normal file
@ -0,0 +1,8 @@
|
||||
# React + Vite
|
||||
|
||||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
||||
|
||||
Currently, two official plugins are available:
|
||||
|
||||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
|
||||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
13
index.html
Normal file
13
index.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>WALLET.ID</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.jsx"></script>
|
||||
</body>
|
||||
</html>
|
29
package.json
Normal file
29
package.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "wallet.id",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build --outDir docs",
|
||||
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^18.2.66",
|
||||
"@types/react-dom": "^18.2.22",
|
||||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-plugin-react": "^7.34.1",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.6",
|
||||
"postcss": "^8.4.38",
|
||||
"tailwindcss": "^3.4.3",
|
||||
"vite": "^5.2.0"
|
||||
}
|
||||
}
|
6
postcss.config.js
Normal file
6
postcss.config.js
Normal file
@ -0,0 +1,6 @@
|
||||
export default {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
3
public/favicon.svg
Normal file
3
public/favicon.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 6.0 KiB |
81
src/App.jsx
Normal file
81
src/App.jsx
Normal file
@ -0,0 +1,81 @@
|
||||
import walletLogo from './assets/wallet.id.png';
|
||||
import searchIcon from './assets/search.png';
|
||||
import hnsLogo from './assets/hns.id.png';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="bg-neutral-50 h-screen flex">
|
||||
<div className="flex-col justify-between items-center flex max-w-7xl mx-auto flex-1">
|
||||
<div className="flex-col justify-center items-center gap-10 flex w-full">
|
||||
<div className="h-20 p-4 justify-between items-center inline-flex w-full ">
|
||||
<img className="w-36" src={walletLogo} />
|
||||
<div className="justify-start items-center gap-6 flex ">
|
||||
<div className="px-4 py-2 bg-blue-600 rounded-2xl justify-center items-center gap-2 flex">
|
||||
<div className="text-white text-sm font-medium leading-normal">
|
||||
Connect Wallet
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex-col justify-start items-center gap-16 flex px-4 lg:px-0">
|
||||
<div className="flex-col justify-start items-center gap-4 fle">
|
||||
<div className="self-stretch flex-col justify-start items-center gap-4 flex">
|
||||
<div className="self-stretch text-center text-neutral-950 text-5xl font-bold leading-relaxed">
|
||||
Own your .wallet
|
||||
</div>
|
||||
<div className="self-stretch h-10 text-center text-neutral-500 text-2xl font-bold leading-normal">
|
||||
Decentralized domains for websites, wallets and web3
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="w-full bg-white rounded-2xl shadow border border-zinc-300 justify-between items-center inline-flex relative">
|
||||
<input
|
||||
className="grow shrink basis-0 text-neutral-400 text-base font-medium leading-tight tracking-tight p-5 rounded-2xl "
|
||||
placeholder="Find your .wallet"
|
||||
/>
|
||||
<div className="w-5 h-5 absolute right-3">
|
||||
<img src={searchIcon} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="px-4 py-6 border-t border-gray-200 flex-col justify-start items-center gap-6 flex w-full">
|
||||
<div className="self-stretch justify-between items-left lg:items-center inline-flex flex-col lg:flex-row gap-4">
|
||||
<div className="justify-start items-center gap-6 flex">
|
||||
<a
|
||||
className="text-neutral-700 text-sm font-medium uppercase"
|
||||
href="https://twitter.com/walletdomain"
|
||||
>
|
||||
Twitter
|
||||
</a>
|
||||
<a
|
||||
className="text-neutral-700 text-sm font-medium uppercase"
|
||||
href="https://github.com/namebasehq/wallet-id"
|
||||
>
|
||||
GitHub
|
||||
</a>
|
||||
<a
|
||||
className="text-neutral-700 text-sm font-medium uppercase"
|
||||
href="https://opensea.io/collection/handshake-slds?search[stringTraits][0][name]=TLD&search[stringTraits][0][values][0]=wallet"
|
||||
>
|
||||
Opensea
|
||||
</a>
|
||||
</div>
|
||||
<div className="justify-start items-center gap-4 flex">
|
||||
<div className="justify-start items-center gap-4 flex">
|
||||
<div className="text-neutral-400 text-xs font-normal uppercase">
|
||||
powered by
|
||||
</div>
|
||||
<a href="https://hns.id">
|
||||
<img src={hnsLogo} className="w-24" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
BIN
src/assets/hns.id.png
Normal file
BIN
src/assets/hns.id.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
src/assets/search.png
Normal file
BIN
src/assets/search.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 792 B |
BIN
src/assets/wallet.id.png
Normal file
BIN
src/assets/wallet.id.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
3
src/index.css
Normal file
3
src/index.css
Normal file
@ -0,0 +1,3 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
10
src/main.jsx
Normal file
10
src/main.jsx
Normal file
@ -0,0 +1,10 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import App from './App.jsx'
|
||||
import './index.css'
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
)
|
8
tailwind.config.js
Normal file
8
tailwind.config.js
Normal file
@ -0,0 +1,8 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
7
vite.config.js
Normal file
7
vite.config.js
Normal file
@ -0,0 +1,7 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
})
|
Loading…
Reference in New Issue
Block a user