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

Implement new Wit/2 website #369

Merged
merged 81 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
0ff7910
chore: add empty boilerplate with nuxt3 to witnet 2.0
Tommytrg Dec 12, 2023
531db19
feat: add basic content
Tommytrg Dec 26, 2023
9f5caa8
chore: update dependabot and ci
Tommytrg Dec 26, 2023
0b66553
fix(style): linter changes
Tommytrg Dec 26, 2023
94a5988
chore: update deps
Tommytrg Dec 26, 2023
748c90d
feat: add nuxt/i18n
gabaldon Dec 28, 2023
227ff91
feat: delete coverage files
gabaldon Dec 29, 2023
a7dc585
feat: implement routes, navbar and language selector
gabaldon Dec 29, 2023
8f2aaa0
feat: add hero content
gabaldon Jan 2, 2024
d30b670
feat: add content to the landing page
gabaldon Jan 2, 2024
5efc991
feat: add content to the build route
gabaldon Jan 2, 2024
629bbb8
feat: add content to the buy route
gabaldon Jan 2, 2024
90477d5
feat: add content to the stake route
gabaldon Jan 3, 2024
0585fc7
refactor: move button icon to svg folder
gabaldon Jan 3, 2024
12aba63
refactor: remove ref when unnecessary
gabaldon Jan 3, 2024
abf207e
chore: update deps
Tommytrg Jan 4, 2024
8b8055b
feat: add fonts
gabaldon Apr 29, 2024
6084a9d
feat: use tailwind classes
gabaldon Apr 30, 2024
c7af067
feat: support dark mode with tailwind
gabaldon May 7, 2024
0a06c56
feat: improve reuse of components and theme
gabaldon May 14, 2024
06d628c
feat: update layout and copies
Tommytrg Jun 4, 2024
3a8a877
feat: update navbar to be reusable in a component library
gabaldon Jun 13, 2024
46bbbf6
feat(SocialLink): implement socials link component
gabaldon Jun 13, 2024
51cf4f6
feat(NavBar): implement layout for navbar
gabaldon Jun 13, 2024
e7aa8c6
feat(HeroSection): implement hero
gabaldon Jun 13, 2024
14a5577
feat(WhatIsWitnetSection): implement section
gabaldon Jul 15, 2024
762635b
fix(style): revert tailwind config changes
gabaldon Jul 16, 2024
3e56175
feat(CoinSection): implement section
gabaldon Jul 16, 2024
e0ab42d
feat(BuySection): implement section
gabaldon Jul 16, 2024
8d5eccb
feat(SecureSection): implement section
gabaldon Jul 16, 2024
413c42e
feat(BuildSection): implement section
gabaldon Jul 16, 2024
6deb46d
fix(style): fix style details
gabaldon Jul 16, 2024
daf8007
fix: adjust responsive
gabaldon Jul 17, 2024
8a152d1
feat(ExploreSection): implement section
gabaldon Jul 17, 2024
12ff74e
feat(TutorialsSection): implement section
gabaldon Jul 17, 2024
3518c42
feat(CommunitySection): implement section
gabaldon Jul 17, 2024
589bb9b
feat(NewsletterSection): implement section
gabaldon Jul 17, 2024
cb5b802
feat(Footer): implement footer
gabaldon Jul 17, 2024
10f5c04
fix(style): adjust responsive and newsletter section
gabaldon Jul 18, 2024
998ea03
feat(style): adjust footer style
gabaldon Jul 18, 2024
02615a2
fix(style): adjust explore section layout
gabaldon Jul 18, 2024
666af7c
refactor: delete unnecessary components
gabaldon Jul 18, 2024
b8f2f1e
refactor: delete unnecessary styles
gabaldon Jul 18, 2024
003183d
feat(Banner): implement banner
gabaldon Jul 18, 2024
233c03a
fix(style): adjust navbar style
gabaldon Jul 18, 2024
1c43f4d
feat: add language selector to footer
gabaldon Jul 18, 2024
6c839a3
fix: adjust responsive
gabaldon Jul 18, 2024
8cb75b3
feat: add favicon
gabaldon Jul 18, 2024
a1b0355
feat: add metadata
gabaldon Jul 18, 2024
32229d1
fix: adjust responsive
gabaldon Jul 19, 2024
b015450
fix(NewsletterSection): fix newsletter submit action
gabaldon Jul 19, 2024
522c336
feat: update metadata description
gabaldon Jul 19, 2024
3517059
fix: fix broken links
gabaldon Jul 19, 2024
b363b77
fix(style): linter changes
gabaldon Jul 19, 2024
8666378
fix: avoid warning `[intlify] Not found parent scope...`
gabaldon Jul 22, 2024
c08ae80
feat: add Spanish translations
gabaldon Jul 22, 2024
5a3b535
fix: fix small bugs
gabaldon Jul 22, 2024
8a24239
ci: allow deployment on github pages
gabaldon Jul 22, 2024
6ec691c
ci: update ci
gabaldon Jul 22, 2024
2d6a458
fix(style): update mono types to poppins
gabaldon Jul 23, 2024
46a0f41
fix(copies): update locales
gabaldon Jul 23, 2024
337fb25
fix: make arrow button clickable
gabaldon Jul 23, 2024
9fb8e37
fix(style): improve ux in links
gabaldon Jul 23, 2024
61449ae
fix(style): update fonts in what is witnet title
gabaldon Jul 23, 2024
024d2af
fix(copies): update spanish copies for coin section
gabaldon Jul 23, 2024
4ca51c5
fix(SocialLinks): improve ux
gabaldon Jul 23, 2024
d98ee98
fix: topbar
gabaldon Jul 23, 2024
5ea368f
fix: redirect on page not found and comment language switcher
gabaldon Jul 23, 2024
338f156
fix(style): adjust section description max width
gabaldon Jul 23, 2024
37cc868
fix(style): adjust section description max width
gabaldon Jul 23, 2024
f9ae5d7
fix: adjust lateral icons
gabaldon Jul 23, 2024
2498089
fix(responsive): adjust newsletter input responsive
gabaldon Jul 23, 2024
8d0855e
feat: update socials position to fixed
gabaldon Jul 23, 2024
5e4f691
feat: fix copies and adjust style
gabaldon Jul 24, 2024
4295bda
fix(copies): update coin section copy
gabaldon Jul 24, 2024
91d5399
fix(Community): update community links
gabaldon Jul 29, 2024
c203518
fix(style): fix height of `OutOfBoundariesCard`
gabaldon Jul 29, 2024
c4b7f1f
fix(urls): update randomness url
gabaldon Jul 29, 2024
29d30d9
feat(CoinSection): add tooltip content
gabaldon Jul 29, 2024
f2fc5a3
feat(CoinSection): remove tooltip content and add it to description
gabaldon Jul 29, 2024
6a04e01
ci: deploy to domain
gabaldon Jul 30, 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
14 changes: 14 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
extends: ['@nuxtjs/eslint-config-typescript', 'plugin:prettier/recommended'],
plugins: [],
rules: {},
}
22 changes: 0 additions & 22 deletions .eslintrc.js

This file was deleted.

40 changes: 10 additions & 30 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,12 @@
version: 2
updates:
# Fetch and update latest `npm` packages
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
time: '00:00'
open-pull-requests-limit: 10
reviewers:
- tommytrg
assignees:
- tommytrg
commit-message:
prefix: fix
prefix-development: chore
include: scope
# Fetch and update latest `github-actions` pkgs
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: daily
time: '00:00'
open-pull-requests-limit: 10
reviewers:
- tommytrg
assignees:
- tommytrg
commit-message:
prefix: fix
prefix-development: chore
include: scope
# Fetch and update latest `npm` packages
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
# Fetch and update latest `github-actions` pkgs
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: daily
64 changes: 28 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,41 @@
name: ci

on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
- push
- pull_request

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [16]
cache-and-install:
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎
uses: actions/checkout@master
- name: Checkout
uses: actions/checkout@v3

- name: Setup node env 🏗
uses: actions/setup-node@v2.1.2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
node-version: 20

- name: Get yarn cache directory path 🛠
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Cache node_modules 📦
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies 👨🏻‍💻
run: yarn
${{ runner.os }}-pnpm-store-

- name: Run linter 👀
run: yarn lint
- name: Install dependencies
run: pnpm install

- name: Run linter
run: pnpm lint
60 changes: 60 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Deploy

on:
push:
branches:
- 'master'
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable pnpm

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Restore cache
uses: actions/cache@v4
with:
path: |
dist
.nuxt
key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }}
restore-keys: |
${{ runner.os }}-nuxt-build-

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Static HTML export with Nuxt
run: pnpm run generate

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

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
100 changes: 17 additions & 83 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,90 +1,24 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
# Nuxt dev/build outputs
.output
.data
.nuxt

# Nuxt generate
.nitro
.cache
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea
# Node dependencies
node_modules

# Service worker
sw.*
# Logs
logs
*.log

# macOS
# Misc
.DS_Store
.fleet
.idea

# Vim swap files
*.swp
# Local env files
.env
.env.*
!.env.example
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
shamefully-hoist=true
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
pnpm-lock.yaml
*.log*
.nuxt
.nitro
.cache
.output
.env
dist
Loading
Loading