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

Chore: Update global styles, dependencies, and environment variables #23

Merged
merged 9 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
NEXT_PUBLIC_BRAND_NAME=Tetromino
NEXT_PUBLIC_GITHUB=https://github.com/reactgular/tetromino
NEXT_PUBLIC_STORAGE_KEY=tetromino
NEXT_PUBLIC_VERSION=2.0.0
# Base path for loading audio files
NEXT_PUBLIC_BASE=/tetromino
NEXT_PUBLIC_ANALYTICS=
3 changes: 3 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NEXT_PUBLIC_BASE=http://localhost:3000/
NEXT_PUBLIC_ANALYTICS=

2 changes: 2 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Please change to your Google Analytics ID
NEXT_PUBLIC_ANALYTICS=UA-141015392-3
4 changes: 2 additions & 2 deletions .github/workflows/deploy-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ jobs:

build:
runs-on: ubuntu-latest
needs: [ lint, test, storybooks ]
if: false
#needs: [ lint, test, storybooks ]
needs: [ lint ]
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
Expand Down
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,11 @@
.DS_Store
*.pem

.env.local
.env.development.local
.env.test.local
.env.production.local

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

# local env files
.env*.local

# vercel
.vercel

Expand Down
44 changes: 20 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,32 @@
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).
# Tetromino

## Getting Started
![gameplay](media/tetromino-sample.gif)

First, run the development server:
A tetris-style game created with [React](https://reactjs.org/), [Redux](https://react-redux.js.org/) and [TailwindCSS](https://tailwindcss.com/).

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## What is it?

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
For those of you not familiar with Tetris, it's a game where you drop tetromino shapes to create solid rows to score points. Blocks
fall faster as you increase the level. If there is no more room to drop blocks, then the game is over.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
## Why build it?

## Learn More
Wanted to challenge myself to build a Tetris game using just DOM elements.
There are no SVGs or `<canvas>` graphics anywhere in the game.

To learn more about Next.js, take a look at the following resources:
All graphics are rendered as React functional components, and the game logic is handled by a Redux reducer.

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
## Where is it?

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
Online demo: [https://reactgular.github.io/tetromino/](https://reactgular.github.io/tetromino/)

## Deploy on Vercel
## How to get it?

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.
Clone and run it locally.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
```bash
git clone https://github.com/reactgular/tetromino
cd tetromino
yarn install
yarn start
```
File renamed without changes
File renamed without changes
32 changes: 0 additions & 32 deletions old/README.md

This file was deleted.

23 changes: 0 additions & 23 deletions old/docs/asset-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion old/docs/index.html

This file was deleted.

4 changes: 0 additions & 4 deletions old/docs/static/css/main.6aecde05.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion old/docs/static/css/main.6aecde05.chunk.css.map

This file was deleted.

3 changes: 0 additions & 3 deletions old/docs/static/js/2.5a8c1228.chunk.js

This file was deleted.

89 changes: 0 additions & 89 deletions old/docs/static/js/2.5a8c1228.chunk.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion old/docs/static/js/2.5a8c1228.chunk.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions old/docs/static/js/3.29fa8080.chunk.js

This file was deleted.

Loading