Skip to content

Commit f26095a

Browse files
authored
Merge pull request #22 from matiasbenary/main
Frontend upgrade
2 parents bec6148 + ef2b7cc commit f26095a

31 files changed

+713
-568
lines changed

.github/workflows/nextjs.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Sample workflow for building and deploying a Next.js site to GitHub Pages
2+
#
3+
# To get started with Next.js see: https://nextjs.org/docs/getting-started
4+
#
5+
name: Deploy Next.js site to Pages
6+
7+
env:
8+
NODE_ENV: 'production'
9+
10+
on:
11+
# Runs on pushes targeting the default branch
12+
push:
13+
branches: ["main"]
14+
15+
# Allows you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
18+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
19+
permissions:
20+
contents: read
21+
pages: write
22+
id-token: write
23+
24+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
25+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
26+
concurrency:
27+
group: "pages"
28+
cancel-in-progress: false
29+
30+
jobs:
31+
# Build job
32+
build:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
- name: Setup Node
38+
uses: actions/setup-node@v4
39+
with:
40+
node-version: "20"
41+
- name: Install and test modules
42+
run: |
43+
cd ./frontend
44+
yarn
45+
yarn build
46+
- name: Upload artifact
47+
uses: actions/upload-pages-artifact@v3
48+
with:
49+
path: ./frontend/build
50+
51+
# Deployment job
52+
deploy:
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.deployment.outputs.page_url }}
56+
runs-on: ubuntu-latest
57+
needs: build
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v4

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@
1111

1212
# Frontend
1313
**/dist/
14-
**/.parcel-cache
14+
**/.parcel-cache
15+
16+
**/.next/

frontend/README.md

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22+
23+
## Learn More about NEAR
24+
25+
To learn more about NEAR, take a look at the following resources:
26+
27+
- [NEAR Documentation](https://docs.near.org) - learn about NEAR.
28+
- [Frontend Docs](https://docs.near.org/build/web3-apps/quickstart) - learn about this example.
29+
30+
You can check out [the NEAR repository](https://github.com/near) - your feedback and contributions are welcome!
31+
32+
## Learn More about Next.js
33+
34+
To learn more about Next.js, take a look at the following resources:
35+
36+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
37+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
38+
39+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
40+
41+
## Deploy on Vercel
42+
43+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
44+
45+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

frontend/assets/favicon.ico

-8.51 KB
Binary file not shown.

frontend/assets/global.css

-167
This file was deleted.

frontend/assets/logo-black.svg

-1
This file was deleted.

frontend/assets/logo-white.svg

-1
This file was deleted.

frontend/cypress/coin-flip.cy.js

-60
This file was deleted.

frontend/cypress/cypres.config.js

-20
This file was deleted.

0 commit comments

Comments
 (0)