create-leo-app 0.0.13 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -3
- package/template-node/index.js +0 -0
- package/template-extension/.gitignore +0 -2
- package/template-extension/README.md +0 -4
- package/template-extension/package.json +0 -15
- package/template-extension/rollup.config.js +0 -21
- package/template-extension/src/offscreen.js +0 -1
- package/template-extension/src/service_worker.js +0 -20
- package/template-extension/src/worker.js +0 -34
- package/template-extension/static/manifest.json +0 -16
- package/template-extension/static/offscreen.html +0 -9
- package/template-nextjs-ts/README.md +0 -19
- package/template-nextjs-ts/_gitignore +0 -35
- package/template-nextjs-ts/next-env.d.ts +0 -5
- package/template-nextjs-ts/next.config.js +0 -32
- package/template-nextjs-ts/package.json +0 -24
- package/template-nextjs-ts/public/aleo.svg +0 -8
- package/template-nextjs-ts/public/next.svg +0 -1
- package/template-nextjs-ts/src/app/favicon.ico +0 -0
- package/template-nextjs-ts/src/app/globals.css +0 -126
- package/template-nextjs-ts/src/app/layout.tsx +0 -22
- package/template-nextjs-ts/src/app/page.module.css +0 -160
- package/template-nextjs-ts/src/app/page.tsx +0 -94
- package/template-nextjs-ts/src/app/worker.ts +0 -47
- package/template-nextjs-ts/tsconfig.json +0 -27
- package/template-node/README.md +0 -5
- package/template-node/_gitignore +0 -24
- package/template-node/package.json +0 -12
- package/template-node-ts/README.md +0 -5
- package/template-node-ts/_gitignore +0 -24
- package/template-node-ts/package.json +0 -19
- package/template-node-ts/rollup.config.js +0 -19
- package/template-node-ts/src/index.ts +0 -66
- package/template-node-ts/tsconfig.json +0 -15
- package/template-offline-public-transaction-ts/README.md +0 -52
- package/template-offline-public-transaction-ts/_gitignore +0 -24
- package/template-offline-public-transaction-ts/package.json +0 -19
- package/template-offline-public-transaction-ts/rollup.config.js +0 -19
- package/template-offline-public-transaction-ts/src/helpers.ts +0 -70
- package/template-offline-public-transaction-ts/src/index.ts +0 -171
- package/template-offline-public-transaction-ts/tsconfig.json +0 -15
- package/template-react-leo/.babelrc +0 -6
- package/template-react-leo/.eslintrc.cjs +0 -20
- package/template-react-leo/README.md +0 -90
- package/template-react-leo/_gitignore +0 -24
- package/template-react-leo/_headers +0 -3
- package/template-react-leo/helloworld/.env.example +0 -2
- package/template-react-leo/helloworld/.gitignore +0 -5
- package/template-react-leo/helloworld/README.md +0 -13
- package/template-react-leo/helloworld/build/main.aleo +0 -7
- package/template-react-leo/helloworld/build/program.json +0 -6
- package/template-react-leo/helloworld/inputs/helloworld.in +0 -4
- package/template-react-leo/helloworld/program.json +0 -6
- package/template-react-leo/helloworld/src/main.leo +0 -7
- package/template-react-leo/index.html +0 -88
- package/template-react-leo/install.sh +0 -30
- package/template-react-leo/package.json +0 -44
- package/template-react-leo/public/favicon.ico +0 -0
- package/template-react-leo/src/App.css +0 -42
- package/template-react-leo/src/App.jsx +0 -103
- package/template-react-leo/src/assets/aleo.svg +0 -5
- package/template-react-leo/src/assets/react.svg +0 -1
- package/template-react-leo/src/index.css +0 -69
- package/template-react-leo/src/main.jsx +0 -10
- package/template-react-leo/src/workers/AleoWorker.js +0 -20
- package/template-react-leo/src/workers/worker.js +0 -72
- package/template-react-leo/vite.config.js +0 -16
- package/template-react-leo/webpack.config.js +0 -102
- package/template-react-managed-worker/.babelrc +0 -6
- package/template-react-managed-worker/.eslintrc.cjs +0 -20
- package/template-react-managed-worker/README.md +0 -8
- package/template-react-managed-worker/_gitignore +0 -24
- package/template-react-managed-worker/index.html +0 -88
- package/template-react-managed-worker/package.json +0 -41
- package/template-react-managed-worker/public/favicon.ico +0 -0
- package/template-react-managed-worker/src/App.css +0 -42
- package/template-react-managed-worker/src/App.jsx +0 -78
- package/template-react-managed-worker/src/assets/aleo.png +0 -0
- package/template-react-managed-worker/src/assets/react.svg +0 -1
- package/template-react-managed-worker/src/index.css +0 -69
- package/template-react-managed-worker/src/main.jsx +0 -10
- package/template-react-managed-worker/vite.config.js +0 -20
- package/template-react-managed-worker/webpack.config.js +0 -90
- package/template-react-ts/.babelrc +0 -7
- package/template-react-ts/.eslintrc.cjs +0 -20
- package/template-react-ts/README.md +0 -90
- package/template-react-ts/_gitignore +0 -24
- package/template-react-ts/_headers +0 -3
- package/template-react-ts/helloworld/.env.example +0 -2
- package/template-react-ts/helloworld/.gitignore +0 -5
- package/template-react-ts/helloworld/README.md +0 -13
- package/template-react-ts/helloworld/build/main.aleo +0 -7
- package/template-react-ts/helloworld/build/program.json +0 -6
- package/template-react-ts/helloworld/inputs/helloworld.in +0 -4
- package/template-react-ts/helloworld/program.json +0 -6
- package/template-react-ts/helloworld/src/main.leo +0 -7
- package/template-react-ts/index.html +0 -88
- package/template-react-ts/install.sh +0 -30
- package/template-react-ts/package.json +0 -49
- package/template-react-ts/public/favicon.ico +0 -0
- package/template-react-ts/src/App.css +0 -42
- package/template-react-ts/src/App.tsx +0 -103
- package/template-react-ts/src/assets/aleo.svg +0 -5
- package/template-react-ts/src/assets/react.svg +0 -1
- package/template-react-ts/src/custom.d.ts +0 -16
- package/template-react-ts/src/index.css +0 -69
- package/template-react-ts/src/main.tsx +0 -10
- package/template-react-ts/src/workers/AleoWorker.ts +0 -21
- package/template-react-ts/src/workers/worker.ts +0 -73
- package/template-react-ts/tsconfig.json +0 -16
- package/template-react-ts/vite.config.ts +0 -16
- package/template-react-ts/webpack.config.ts +0 -112
- package/template-vanilla/_gitignore +0 -24
- package/template-vanilla/_headers +0 -3
- package/template-vanilla/index.html +0 -13
- package/template-vanilla/javascript.svg +0 -1
- package/template-vanilla/main.js +0 -48
- package/template-vanilla/package.json +0 -16
- package/template-vanilla/public/aleo.svg +0 -76
- package/template-vanilla/public/vite.svg +0 -1
- package/template-vanilla/style.css +0 -97
- package/template-vanilla/vite.config.js +0 -12
- package/template-vanilla/worker.js +0 -95
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-leo-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"collaborators": [
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"dev": "unbuild --stub",
|
|
19
19
|
"build": "unbuild",
|
|
20
|
-
"typecheck": "tsc --noEmit"
|
|
21
|
-
"prepublishOnly": "yarn build"
|
|
20
|
+
"typecheck": "tsc --noEmit"
|
|
22
21
|
},
|
|
23
22
|
"engines": {
|
|
24
23
|
"node": "^14.18.0 || >=16.0.0"
|
package/template-node/index.js
CHANGED
|
File without changes
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "extension-starter",
|
|
3
|
-
"private": true,
|
|
4
|
-
"version": "0.0.0",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rimraf static/js && rollup --config"
|
|
8
|
-
},
|
|
9
|
-
"devDependencies": {
|
|
10
|
-
"@provablehq/sdk": "^0.6.0",
|
|
11
|
-
"@web/rollup-plugin-import-meta-assets": "^2.1.0",
|
|
12
|
-
"rimraf": "^5.0.1",
|
|
13
|
-
"rollup": "^4.0.0"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
2
|
-
import { importMetaAssets } from "@web/rollup-plugin-import-meta-assets";
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
input: {
|
|
6
|
-
service_worker: "./src/service_worker.js",
|
|
7
|
-
offscreen: "./src/offscreen.js",
|
|
8
|
-
worker: "./src/worker.js",
|
|
9
|
-
},
|
|
10
|
-
output: {
|
|
11
|
-
dir: "static/js",
|
|
12
|
-
format: "es",
|
|
13
|
-
sourcemap: true,
|
|
14
|
-
},
|
|
15
|
-
plugins: [
|
|
16
|
-
nodeResolve(),
|
|
17
|
-
importMetaAssets({
|
|
18
|
-
exclude: "./src/offscreen.js",
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
new Worker(new URL("worker.js", import.meta.url), { type: "module" });
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
async function createOffscreen(path) {
|
|
2
|
-
const offscreenUrl = chrome.runtime.getURL(path);
|
|
3
|
-
|
|
4
|
-
const existingContexts = await chrome.runtime.getContexts({
|
|
5
|
-
contextTypes: ["OFFSCREEN_DOCUMENT"],
|
|
6
|
-
documentUrls: [offscreenUrl]
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
if (existingContexts.length > 0) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
await chrome.offscreen.createDocument({
|
|
14
|
-
url: offscreenUrl,
|
|
15
|
-
reasons: ["WORKERS"],
|
|
16
|
-
justification: "Top-level await and Workers cannot be used in service workers, but they are necessary to use the Aleo SDK.",
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
createOffscreen("offscreen.html");
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {Account, initThreadPool, PrivateKey, ProgramManager,} from "@provablehq/sdk";
|
|
2
|
-
|
|
3
|
-
await initThreadPool();
|
|
4
|
-
|
|
5
|
-
const hello_hello_program =`
|
|
6
|
-
program hello_hello.aleo;
|
|
7
|
-
|
|
8
|
-
function hello:
|
|
9
|
-
input r0 as u32.public;
|
|
10
|
-
input r1 as u32.private;
|
|
11
|
-
add r0 r1 into r2;
|
|
12
|
-
output r2 as u32.private;`
|
|
13
|
-
|
|
14
|
-
async function localProgramExecution(program, aleoFunction, inputs) {
|
|
15
|
-
const programManager = new ProgramManager();
|
|
16
|
-
|
|
17
|
-
// Create a temporary account for the execution of the program
|
|
18
|
-
const account = new Account();
|
|
19
|
-
programManager.setAccount(account);
|
|
20
|
-
|
|
21
|
-
const executionResponse = await programManager.run(
|
|
22
|
-
program,
|
|
23
|
-
aleoFunction,
|
|
24
|
-
inputs,
|
|
25
|
-
false,
|
|
26
|
-
);
|
|
27
|
-
return executionResponse.getOutputs();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const start = Date.now();
|
|
31
|
-
console.log("Starting execute!");
|
|
32
|
-
const result = await localProgramExecution(hello_hello_program, "hello", ["5u32", "5u32"]);
|
|
33
|
-
console.log(result);
|
|
34
|
-
console.log("Execute finished!", Date.now() - start);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest_version": 3,
|
|
3
|
-
"name": "extension-starter",
|
|
4
|
-
"version": "0.1.0",
|
|
5
|
-
"description": "Example for using Aleo in a Chrome / Firefox extension",
|
|
6
|
-
"background": {
|
|
7
|
-
"service_worker": "./js/service_worker.js",
|
|
8
|
-
"type": "module"
|
|
9
|
-
},
|
|
10
|
-
"permissions": [
|
|
11
|
-
"offscreen"
|
|
12
|
-
],
|
|
13
|
-
"content_security_policy": {
|
|
14
|
-
"extension_pages": "default-src 'self' 'wasm-unsafe-eval'; connect-src https://s3-us-west-1.amazonaws.com/mainnet.parameters/powers-of-beta-15.usrs.eb7040c"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
This is a [Next.js](https://nextjs.org/) example project showing Aleo
|
|
2
|
-
integration via Web Workers.
|
|
3
|
-
|
|
4
|
-
This template is based off the default TypeScript configuration from
|
|
5
|
-
[`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app)
|
|
6
|
-
|
|
7
|
-
## Getting Started
|
|
8
|
-
|
|
9
|
-
First, run the development server:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
yarn dev
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the
|
|
16
|
-
result.
|
|
17
|
-
|
|
18
|
-
You can start editing the page by modifying `app/page.tsx`. The page
|
|
19
|
-
auto-updates as you edit the file.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# dependencies
|
|
4
|
-
/node_modules
|
|
5
|
-
/.pnp
|
|
6
|
-
.pnp.js
|
|
7
|
-
|
|
8
|
-
# testing
|
|
9
|
-
/coverage
|
|
10
|
-
|
|
11
|
-
# next.js
|
|
12
|
-
/.next/
|
|
13
|
-
/out/
|
|
14
|
-
|
|
15
|
-
# production
|
|
16
|
-
/build
|
|
17
|
-
|
|
18
|
-
# misc
|
|
19
|
-
.DS_Store
|
|
20
|
-
*.pem
|
|
21
|
-
|
|
22
|
-
# debug
|
|
23
|
-
npm-debug.log*
|
|
24
|
-
yarn-debug.log*
|
|
25
|
-
yarn-error.log*
|
|
26
|
-
|
|
27
|
-
# local env files
|
|
28
|
-
.env*.local
|
|
29
|
-
|
|
30
|
-
# vercel
|
|
31
|
-
.vercel
|
|
32
|
-
|
|
33
|
-
# typescript
|
|
34
|
-
*.tsbuildinfo
|
|
35
|
-
next-env.d.ts
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const TerserPlugin = require("terser-webpack-plugin")
|
|
2
|
-
/** @type {import('next').NextConfig} */
|
|
3
|
-
const nextConfig = {
|
|
4
|
-
async headers() {
|
|
5
|
-
return [
|
|
6
|
-
{
|
|
7
|
-
source: '/:path*',
|
|
8
|
-
headers: [
|
|
9
|
-
{
|
|
10
|
-
key: 'Cross-Origin-Opener-Policy',
|
|
11
|
-
value: 'same-origin',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
key: 'Cross-Origin-Embedder-Policy',
|
|
15
|
-
value: 'require-corp',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
webpack: (config) => {
|
|
22
|
-
config.experiments = { ...config.experiments, topLevelAwait: true };
|
|
23
|
-
config.optimization = { ...config.optimization, minimize: true, minimizer: [new TerserPlugin({
|
|
24
|
-
terserOptions: {
|
|
25
|
-
module: true,
|
|
26
|
-
}
|
|
27
|
-
})], }
|
|
28
|
-
return config;
|
|
29
|
-
},
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
module.exports = nextConfig
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "template-nextjs",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "next dev",
|
|
7
|
-
"build": "next build",
|
|
8
|
-
"start": "next start",
|
|
9
|
-
"lint": "next lint"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"@provablehq/sdk": "^0.6.2",
|
|
13
|
-
"next": "13.5.4",
|
|
14
|
-
"react": "^18",
|
|
15
|
-
"react-dom": "^18",
|
|
16
|
-
"terser-webpack-plugin": "^5.3.9"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@types/node": "^20",
|
|
20
|
-
"@types/react": "^18",
|
|
21
|
-
"@types/react-dom": "^18",
|
|
22
|
-
"typescript": "^5"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<svg width="216" height="80" viewBox="0 0 216 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M73.426 0V8.93824H81.6842V78.8961H90.6045V0H73.426Z" fill="#121212"/>
|
|
3
|
-
<path d="M154.145 51.4216C154.145 32.5518 143.683 21.297 127.604 21.297C111.526 21.297 100.954 32.0007 100.954 50.8687C100.954 69.7367 111.415 80 127.604 80C140.378 80 149.96 72.6061 152.603 62.3447H142.692C140.488 67.0902 135.975 71.2829 127.604 71.2829C116.812 71.2829 111.307 64.4419 110.205 54.6209H154.145V51.4216ZM110.316 46.125C111.636 36.6357 117.364 29.9035 127.604 29.9035C137.845 29.9035 143.242 36.5251 144.564 46.125H110.316Z" fill="#121212"/>
|
|
4
|
-
<path d="M189.272 21.297C173.083 21.297 162.622 32.0007 162.622 50.8687C162.622 69.7367 173.083 80 189.272 80C205.461 80 215.812 70.0684 215.812 50.8687C215.812 31.669 205.351 21.297 189.272 21.297ZM189.272 71.5041C177.709 71.5041 171.432 62.4553 171.432 50.76C171.432 39.0647 177.709 29.6842 189.272 29.6842C200.836 29.6842 207.003 38.8436 207.003 50.76C207.003 62.6764 200.946 71.5041 189.272 71.5041Z" fill="#121212"/>
|
|
5
|
-
<path d="M46.5565 0H28.3849L12.6134 46.125H22.2179L34.9933 8.49593H39.6189L52.3925 46.125H22.2179L19.2457 54.6209H55.2561L63.5143 78.8961H73.426L46.5565 0Z" fill="#121212"/>
|
|
6
|
-
<path d="M1.40508 78.8961H10.9857L19.2457 54.6209L9.7074 54.6209L1.40508 78.8961Z" fill="#121212"/>
|
|
7
|
-
<path d="M3.0935 46.125L0.1875 54.6209H9.7074L12.6134 46.125H3.0935Z" fill="#121212"/>
|
|
8
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
|
|
Binary file
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--max-width: 1100px;
|
|
3
|
-
--border-radius: 12px;
|
|
4
|
-
--font-mono: ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono',
|
|
5
|
-
'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro',
|
|
6
|
-
'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace;
|
|
7
|
-
|
|
8
|
-
--foreground-rgb: 0, 0, 0;
|
|
9
|
-
--background-start-rgb: 214, 219, 220;
|
|
10
|
-
--background-end-rgb: 255, 255, 255;
|
|
11
|
-
|
|
12
|
-
--primary-glow: conic-gradient(
|
|
13
|
-
from 180deg at 50% 50%,
|
|
14
|
-
#16abff33 0deg,
|
|
15
|
-
#0885ff33 55deg,
|
|
16
|
-
#54d6ff33 120deg,
|
|
17
|
-
#0071ff33 160deg,
|
|
18
|
-
transparent 360deg
|
|
19
|
-
);
|
|
20
|
-
--secondary-glow: radial-gradient(
|
|
21
|
-
rgba(255, 255, 255, 1),
|
|
22
|
-
rgba(255, 255, 255, 0)
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
--tile-start-rgb: 239, 245, 249;
|
|
26
|
-
--tile-end-rgb: 228, 232, 233;
|
|
27
|
-
--tile-border: conic-gradient(
|
|
28
|
-
#00000080,
|
|
29
|
-
#00000040,
|
|
30
|
-
#00000030,
|
|
31
|
-
#00000020,
|
|
32
|
-
#00000010,
|
|
33
|
-
#00000010,
|
|
34
|
-
#00000080
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
--callout-rgb: 238, 240, 241;
|
|
38
|
-
--callout-border-rgb: 172, 175, 176;
|
|
39
|
-
--card-rgb: 180, 185, 188;
|
|
40
|
-
--card-border-rgb: 131, 134, 135;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
button {
|
|
44
|
-
border-radius: 8px;
|
|
45
|
-
border: 1px solid transparent;
|
|
46
|
-
padding: 0.6em 1.2em;
|
|
47
|
-
font-size: 1em;
|
|
48
|
-
font-weight: 500;
|
|
49
|
-
font-family: inherit;
|
|
50
|
-
background-color: #1a1a1a;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
transition: border-color 0.25s;
|
|
53
|
-
}
|
|
54
|
-
button:hover {
|
|
55
|
-
border-color: #646cff;
|
|
56
|
-
}
|
|
57
|
-
button:focus,
|
|
58
|
-
button:focus-visible {
|
|
59
|
-
outline: 4px auto -webkit-focus-ring-color;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@media (prefers-color-scheme: dark) {
|
|
63
|
-
:root {
|
|
64
|
-
--foreground-rgb: 255, 255, 255;
|
|
65
|
-
--background-start-rgb: 0, 0, 0;
|
|
66
|
-
--background-end-rgb: 0, 0, 0;
|
|
67
|
-
|
|
68
|
-
--primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
|
|
69
|
-
--secondary-glow: linear-gradient(
|
|
70
|
-
to bottom right,
|
|
71
|
-
rgba(1, 65, 255, 0),
|
|
72
|
-
rgba(1, 65, 255, 0),
|
|
73
|
-
rgba(1, 65, 255, 0.3)
|
|
74
|
-
);
|
|
75
|
-
|
|
76
|
-
--tile-start-rgb: 2, 13, 46;
|
|
77
|
-
--tile-end-rgb: 2, 5, 19;
|
|
78
|
-
--tile-border: conic-gradient(
|
|
79
|
-
#ffffff80,
|
|
80
|
-
#ffffff40,
|
|
81
|
-
#ffffff30,
|
|
82
|
-
#ffffff20,
|
|
83
|
-
#ffffff10,
|
|
84
|
-
#ffffff10,
|
|
85
|
-
#ffffff80
|
|
86
|
-
);
|
|
87
|
-
|
|
88
|
-
--callout-rgb: 20, 20, 20;
|
|
89
|
-
--callout-border-rgb: 108, 108, 108;
|
|
90
|
-
--card-rgb: 100, 100, 100;
|
|
91
|
-
--card-border-rgb: 200, 200, 200;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
* {
|
|
96
|
-
box-sizing: border-box;
|
|
97
|
-
padding: 0;
|
|
98
|
-
margin: 0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
html,
|
|
102
|
-
body {
|
|
103
|
-
max-width: 100vw;
|
|
104
|
-
overflow-x: hidden;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
body {
|
|
108
|
-
color: rgb(var(--foreground-rgb));
|
|
109
|
-
background: linear-gradient(
|
|
110
|
-
to bottom,
|
|
111
|
-
transparent,
|
|
112
|
-
rgb(var(--background-end-rgb))
|
|
113
|
-
)
|
|
114
|
-
rgb(var(--background-start-rgb));
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
a {
|
|
118
|
-
color: inherit;
|
|
119
|
-
text-decoration: none;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@media (prefers-color-scheme: dark) {
|
|
123
|
-
html {
|
|
124
|
-
color-scheme: dark;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import './globals.css'
|
|
2
|
-
import type { Metadata } from 'next'
|
|
3
|
-
import { Inter } from 'next/font/google'
|
|
4
|
-
|
|
5
|
-
const inter = Inter({ subsets: ['latin'] })
|
|
6
|
-
|
|
7
|
-
export const metadata: Metadata = {
|
|
8
|
-
title: 'Create Next App',
|
|
9
|
-
description: 'Generated by create next app',
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default function RootLayout({
|
|
13
|
-
children,
|
|
14
|
-
}: {
|
|
15
|
-
children: React.ReactNode
|
|
16
|
-
}) {
|
|
17
|
-
return (
|
|
18
|
-
<html lang="en">
|
|
19
|
-
<body className={inter.className}>{children}</body>
|
|
20
|
-
</html>
|
|
21
|
-
)
|
|
22
|
-
}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
.main {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
align-items: center;
|
|
6
|
-
padding: 15rem;
|
|
7
|
-
min-height: 100vh;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.description {
|
|
11
|
-
display: inherit;
|
|
12
|
-
justify-content: inherit;
|
|
13
|
-
align-items: inherit;
|
|
14
|
-
font-size: 0.85rem;
|
|
15
|
-
max-width: var(--max-width);
|
|
16
|
-
z-index: 2;
|
|
17
|
-
font-family: var(--font-mono);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.description a {
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
align-items: center;
|
|
24
|
-
gap: 0.5rem;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.description p {
|
|
28
|
-
position: relative;
|
|
29
|
-
margin: 0;
|
|
30
|
-
padding: 1rem;
|
|
31
|
-
background-color: rgba(var(--callout-rgb), 0.5);
|
|
32
|
-
border: 1px solid rgba(var(--callout-border-rgb), 0.3);
|
|
33
|
-
border-radius: var(--border-radius);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.code {
|
|
37
|
-
font-weight: 700;
|
|
38
|
-
font-family: var(--font-mono);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.center {
|
|
42
|
-
display: flex;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
align-items: center;
|
|
45
|
-
position: relative;
|
|
46
|
-
padding: 4rem 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.center::before {
|
|
50
|
-
background: var(--secondary-glow);
|
|
51
|
-
border-radius: 50%;
|
|
52
|
-
width: 480px;
|
|
53
|
-
height: 360px;
|
|
54
|
-
margin-left: -400px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.center::after {
|
|
58
|
-
background: var(--primary-glow);
|
|
59
|
-
width: 240px;
|
|
60
|
-
height: 180px;
|
|
61
|
-
z-index: -1;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.center::before,
|
|
65
|
-
.center::after {
|
|
66
|
-
content: '';
|
|
67
|
-
left: 50%;
|
|
68
|
-
position: absolute;
|
|
69
|
-
filter: blur(45px);
|
|
70
|
-
transform: translateZ(0);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.logo {
|
|
74
|
-
position: relative;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/* Mobile */
|
|
78
|
-
@media (max-width: 700px) {
|
|
79
|
-
.content {
|
|
80
|
-
padding: 4rem;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.center {
|
|
84
|
-
padding: 8rem 0 6rem;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.center::before {
|
|
88
|
-
transform: none;
|
|
89
|
-
height: 300px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.description {
|
|
93
|
-
font-size: 0.8rem;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.description a {
|
|
97
|
-
padding: 1rem;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.description p,
|
|
101
|
-
.description div {
|
|
102
|
-
display: flex;
|
|
103
|
-
justify-content: center;
|
|
104
|
-
position: fixed;
|
|
105
|
-
width: 100%;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.description p {
|
|
109
|
-
align-items: center;
|
|
110
|
-
inset: 0 0 auto;
|
|
111
|
-
padding: 2rem 1rem 1.4rem;
|
|
112
|
-
border-radius: 0;
|
|
113
|
-
border: none;
|
|
114
|
-
border-bottom: 1px solid rgba(var(--callout-border-rgb), 0.25);
|
|
115
|
-
background: linear-gradient(
|
|
116
|
-
to bottom,
|
|
117
|
-
rgba(var(--background-start-rgb), 1),
|
|
118
|
-
rgba(var(--callout-rgb), 0.5)
|
|
119
|
-
);
|
|
120
|
-
background-clip: padding-box;
|
|
121
|
-
backdrop-filter: blur(24px);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.description div {
|
|
125
|
-
align-items: flex-end;
|
|
126
|
-
pointer-events: none;
|
|
127
|
-
inset: auto 0 0;
|
|
128
|
-
padding: 2rem;
|
|
129
|
-
height: 200px;
|
|
130
|
-
background: linear-gradient(
|
|
131
|
-
to bottom,
|
|
132
|
-
transparent 0%,
|
|
133
|
-
rgb(var(--background-end-rgb)) 40%
|
|
134
|
-
);
|
|
135
|
-
z-index: 1;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@media (prefers-color-scheme: dark) {
|
|
140
|
-
.logo {
|
|
141
|
-
filter: invert(1) drop-shadow(0 0 0.3rem #ffffff70);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
@keyframes rotate {
|
|
146
|
-
from {
|
|
147
|
-
transform: rotate(360deg);
|
|
148
|
-
}
|
|
149
|
-
to {
|
|
150
|
-
transform: rotate(0deg);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.card {
|
|
155
|
-
text-align: center;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.card p {
|
|
159
|
-
padding: 1em;
|
|
160
|
-
}
|