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

Frontend work on DendrETH website #273

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8178856
feat(website): Add initial website & docs
Jan 9, 2024
c6450af
feat(website): add homepage components, some images and work on the o…
pxor Jan 12, 2024
651c59c
feat(website): Add fonts and change copy
pxor Jan 12, 2024
1385fd5
feat(website): Add base for blog carousel
pxor Jan 12, 2024
bf647ec
feat(website): Add functionality to Blog component scrolling
pxor Jan 15, 2024
04f0be9
feat(website): Add our blog component to home page with test posts an…
pxor Jan 15, 2024
45d6572
feat(website): Minor color and behaviour fix for Blog buttons
pxor Jan 15, 2024
e584293
feat(website): Add responsiveness to site on resize and add hamburger…
pxor Jan 15, 2024
fb097ef
feat(website): Issue with resizing window and blog posts
pxor Jan 15, 2024
d350996
fix(website): Minor change of hamburger menu position
pxor Jan 15, 2024
8bd5213
feat(website): Add dynamical load to blog posts from lib/database/blo…
pxor Jan 16, 2024
c16a96c
feat(website): Start work on explorer page with datatable, add hardco…
pxor Jan 16, 2024
12defa0
feat(website): Add better logic for pagination when there are more pa…
pxor Jan 16, 2024
70b7946
feat(website): Add details page for different datatable items in expl…
pxor Jan 17, 2024
e063834
feat(website): Update explorer and detail pages for better resizing o…
pxor Jan 17, 2024
c6747a3
fix(website): Code cleanup
pxor Jan 17, 2024
310a1a8
feat(website): Fix Blog handling when resizing and some details regar…
pxor Jan 18, 2024
d0b968b
feat(website): More fixes on the front page and set up wallet demo url
pxor Jan 18, 2024
d0ae197
feat(website): Add One Sync Demo to the website and add functionality…
pxor Jan 18, 2024
30e276c
fix(website): Change gradient border css for demo and some minor resi…
pxor Jan 19, 2024
25550a5
fix(website): Change styling and add active state to explorer filter …
pxor Jan 19, 2024
169c979
fix(website): Change styling of nonce detail page
pxor Jan 19, 2024
5bd17b5
feat(website): Add currently available links in footer component
pxor Jan 19, 2024
70c0b9c
feat(website): Minor changes for styling, footer button color change …
pxor Jan 19, 2024
a4c608d
fix(website): Some minor changes to the layout styling and added new …
pxor Jan 19, 2024
47ca839
fix(website): Minor change hover of the demo button
pxor Jan 22, 2024
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
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"workspaces": [
"beacon-light-client/circom",
"beacon-light-client/solidity",
"relay"
"relay",
"website"
],
"directories": {
"doc": "docs"
Expand Down Expand Up @@ -59,6 +60,7 @@
"@cosmjs/cosmwasm-stargate": "^0.30.0",
"@cosmjs/proto-signing": "^0.30.0",
"@cosmjs/stargate": "^0.30.0",
"@glidejs/glide": "^3.6.0",
"@iden3/binfileutils": "^0.0.11",
"@lodestar/types": "1.4.1",
"@mevitae/redis-work-queue": "^0.0.4",
Expand Down
13 changes: 13 additions & 0 deletions website/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
14 changes: 14 additions & 0 deletions website/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
}
};
13 changes: 13 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
generated/
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
.vercel
.output
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions website/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
13 changes: 13 additions & 0 deletions website/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
9 changes: 9 additions & 0 deletions website/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
38 changes: 38 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# create-svelte

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).

## Creating a project

If you're seeing this, you've probably already done this step. Congrats!

```bash
# create a new project in the current directory
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest my-app
```

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Building

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
215 changes: 215 additions & 0 deletions website/ambient.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@

// this file is generated — do not edit it


/// <reference types="@sveltejs/kit" />

/**
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured).
*
* _Unlike_ [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
*
* ```ts
* import { API_KEY } from '$env/static/private';
* ```
*
* Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
*
* ```
* MY_FEATURE_FLAG=""
* ```
*
* You can override `.env` values from the command line like so:
*
* ```bash
* MY_FEATURE_FLAG="enabled" npm run dev
* ```
*/
declare module '$env/static/private' {
export const MANPATH: string;
export const TERM_PROGRAM: string;
export const NODE: string;
export const INIT_CWD: string;
export const SHELL: string;
export const ASDF_DIR: string;
export const TERM: string;
export const npm_config_metrics_registry: string;
export const TMPDIR: string;
export const HOMEBREW_REPOSITORY: string;
export const npm_config_global_prefix: string;
export const TERM_PROGRAM_VERSION: string;
export const MallocNanoZone: string;
export const ORIGINAL_XDG_CURRENT_DESKTOP: string;
export const ZDOTDIR: string;
export const COLOR: string;
export const ASDF_DEFAULT_TOOL_VERSIONS_FILENAME: string;
export const npm_config_noproxy: string;
export const npm_config_local_prefix: string;
export const ZSH: string;
export const USER: string;
export const LS_COLORS: string;
export const COMMAND_MODE: string;
export const npm_config_globalconfig: string;
export const SSH_AUTH_SOCK: string;
export const __CF_USER_TEXT_ENCODING: string;
export const npm_execpath: string;
export const PAGER: string;
export const LSCOLORS: string;
export const PATH: string;
export const npm_package_json: string;
export const npm_config_engine_strict: string;
export const npm_config_userconfig: string;
export const npm_config_init_module: string;
export const __CFBundleIdentifier: string;
export const USER_ZDOTDIR: string;
export const npm_command: string;
export const PWD: string;
export const npm_lifecycle_event: string;
export const EDITOR: string;
export const npm_package_name: string;
export const ASDF_CONFIG_FILE: string;
export const LANG: string;
export const XPC_FLAGS: string;
export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
export const npm_config_node_gyp: string;
export const npm_package_version: string;
export const XPC_SERVICE_NAME: string;
export const VSCODE_INJECTION: string;
export const HOME: string;
export const SHLVL: string;
export const VSCODE_GIT_ASKPASS_MAIN: string;
export const HOMEBREW_PREFIX: string;
export const ASDF_DATA_DIR: string;
export const npm_config_cache: string;
export const LOGNAME: string;
export const LESS: string;
export const npm_lifecycle_script: string;
export const VSCODE_GIT_IPC_HANDLE: string;
export const npm_config_user_agent: string;
export const HOMEBREW_CELLAR: string;
export const INFOPATH: string;
export const GIT_ASKPASS: string;
export const VSCODE_GIT_ASKPASS_NODE: string;
export const npm_node_execpath: string;
export const npm_config_prefix: string;
export const COLORTERM: string;
export const _: string;
export const NODE_ENV: string;
}

/**
* Similar to [`$env/static/private`](https://kit.svelte.dev/docs/modules#$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
*
* Values are replaced statically at build time.
*
* ```ts
* import { PUBLIC_BASE_URL } from '$env/static/public';
* ```
*/
declare module '$env/static/public' {

}

/**
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/master/packages/adapter-node) (or running [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://kit.svelte.dev/docs/configuration#env) (if configured).
*
* This module cannot be imported into client-side code.
*
* ```ts
* import { env } from '$env/dynamic/private';
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
* ```
*
* > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
*/
declare module '$env/dynamic/private' {
export const env: {
MANPATH: string;
TERM_PROGRAM: string;
NODE: string;
INIT_CWD: string;
SHELL: string;
ASDF_DIR: string;
TERM: string;
npm_config_metrics_registry: string;
TMPDIR: string;
HOMEBREW_REPOSITORY: string;
npm_config_global_prefix: string;
TERM_PROGRAM_VERSION: string;
MallocNanoZone: string;
ORIGINAL_XDG_CURRENT_DESKTOP: string;
ZDOTDIR: string;
COLOR: string;
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME: string;
npm_config_noproxy: string;
npm_config_local_prefix: string;
ZSH: string;
USER: string;
LS_COLORS: string;
COMMAND_MODE: string;
npm_config_globalconfig: string;
SSH_AUTH_SOCK: string;
__CF_USER_TEXT_ENCODING: string;
npm_execpath: string;
PAGER: string;
LSCOLORS: string;
PATH: string;
npm_package_json: string;
npm_config_engine_strict: string;
npm_config_userconfig: string;
npm_config_init_module: string;
__CFBundleIdentifier: string;
USER_ZDOTDIR: string;
npm_command: string;
PWD: string;
npm_lifecycle_event: string;
EDITOR: string;
npm_package_name: string;
ASDF_CONFIG_FILE: string;
LANG: string;
XPC_FLAGS: string;
VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
npm_config_node_gyp: string;
npm_package_version: string;
XPC_SERVICE_NAME: string;
VSCODE_INJECTION: string;
HOME: string;
SHLVL: string;
VSCODE_GIT_ASKPASS_MAIN: string;
HOMEBREW_PREFIX: string;
ASDF_DATA_DIR: string;
npm_config_cache: string;
LOGNAME: string;
LESS: string;
npm_lifecycle_script: string;
VSCODE_GIT_IPC_HANDLE: string;
npm_config_user_agent: string;
HOMEBREW_CELLAR: string;
INFOPATH: string;
GIT_ASKPASS: string;
VSCODE_GIT_ASKPASS_NODE: string;
npm_node_execpath: string;
npm_config_prefix: string;
COLORTERM: string;
_: string;
NODE_ENV: string;
[key: `PUBLIC_${string}`]: undefined;
[key: `${string}`]: string | undefined;
}
}

/**
* Similar to [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
*
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
*
* ```ts
* import { env } from '$env/dynamic/public';
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
* ```
*/
declare module '$env/dynamic/public' {
export const env: {
[key: `PUBLIC_${string}`]: string | undefined;
}
}
20 changes: 20 additions & 0 deletions website/docs-website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading
Loading