Code Monkey home page Code Monkey logo

bm_frontend's Introduction

BMSamay.com Frontend

Join our Discord - https://discord.gg/Afc2xNnsBw

All Contributors

License

This is Samay Raina's official community website for chess enthusiasts. Support the Developer - "Buy Me A Coffee"

๐Ÿ“‘ Table of Contents

๐ŸŽ‰ Features

  • Community Dashboard - An interactive dashboard which shows the chess community stats and leaderboard.
  • Chess News - Chess news from all over the world powered by ChessBase India.
  • Connect Your Chess.com Profile - Connect your chess.com profile to see where you stand in the community leaderboard.
  • BM Points - A point based scoring for correct guesses of samay's chess games.
  • Integrations - Coming soon.
  • Streamers - Coming soon.

โš™๏ธ Prerequisites

Make sure you have the following installed on your development machine:

  • Node.js (version 16 or above) - preferred v22.x.x
  • pnpm (package manager) or npm - preferred pnpm

๐Ÿš€ Getting Started

Follow these steps to get started with the BMSamay.com Frontend:

  1. Clone the repository:

    git clone https://github.com/Bot-Rakshit/bm_frontend.git
  2. Navigate to the project directory:

    cd bm_frontend
  3. Install the dependencies:

    pnpm install

    or

    npm install
  4. Start the development server:

    pnpm dev
    npm run dev

๐Ÿ“œ Available Scripts

  • pnpm dev - Starts the development server.
  • pnpm build - Builds the production-ready code.
  • pnpm lint - Runs ESLint to analyze and lint the code.
  • pnpm preview - Starts the Vite development server in preview mode.

๐Ÿ“‚ Project Structure

The project structure follows a standard React application layout:

bm_frontend/
  โ”œโ”€โ”€ node_modules/      # Project dependencies
  โ”œโ”€โ”€ public/            # Public assets
  โ”œโ”€โ”€ src/               # Application source code
  โ”‚   โ”œโ”€โ”€ components/    # React components
  โ”‚   โ”‚   โ””โ”€โ”€ ui/        # shadc/ui components
  โ”‚   โ”œโ”€โ”€ styles/        # CSS stylesheets
  โ”‚   โ”œโ”€โ”€ lib/           # Utility functions
  โ”‚   โ”œโ”€โ”€ App.tsx        # Application entry point
  โ”‚   โ””โ”€โ”€ index.tsx      # Main rendering file
  โ”œโ”€โ”€ .eslintrc.json     # ESLint configuration
  โ”œโ”€โ”€ index.html         # HTML entry point
  โ”œโ”€โ”€ postcss.config.js  # PostCSS configuration
  โ”œโ”€โ”€ tailwind.config.js # Tailwind CSS configuration
  โ”œโ”€โ”€ tsconfig.json      # TypeScript configuration
  โ””โ”€โ”€ vite.config.ts     # Vite configuration

๐Ÿค Contribution

We welcome contributions to the BMSamay.com Frontend project! To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature-branch).
  5. Open a pull request.

Please read our Contributing Guidelines for more details.

๐Ÿ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributors โœจ

Thanks goes to these wonderful people (emoji key):

Rakshit Singh
Rakshit Singh

๐Ÿ’ป ๐Ÿšง
DG
DG

๐Ÿ’ป
Karthik Sunil
Karthik Sunil

๐Ÿ’ป
Vishant Shah
Vishant Shah

๐Ÿ’ป
Hemant Pradeep Modi
Hemant Pradeep Modi

๐Ÿ’ป
Moutasim
Moutasim

๐Ÿ’ป
Nilesh Gosavi
Nilesh Gosavi

๐Ÿ’ป
Manjot Singh
Manjot Singh

๐Ÿ’ป ๐Ÿšง
n0step_
n0step_

๐Ÿ’ป
Add your contributions

This project follows the all-contributors specification. Contributions of any kind welcome!

bm_frontend's People

Contributors

abhinav-chdhary avatar arshil1804 avatar bot-rakshit avatar dinesh-gautam avatar govindup63 avatar harshal-7 avatar hemantmodii avatar itsnileshgosavi avatar karthiksneu avatar krushna06 avatar manjotsk avatar moutasimqazi avatar nilesh0700 avatar prathamesh-b avatar sama-004 avatar sambhavsetia avatar sarveshk16 avatar sparsh-malhotra avatar tesla2402 avatar vatan45 avatar vishant007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bm_frontend's Issues

Sidebar Logout Button Issue

Sidebar Logout Button Issue

Description

Logout button is appearing twice in mobile view.

Steps to Reproduce

  1. Navigate to the welcome page of the application in mobile view.
  2. Open sidebar and click on profile.
  3. You will see logout button appearing 2 times.

Expected Behavior

Logout Button should appear only once.

Proposed Solution

I believe it has something to do with how we are controlling open state of Dropdown. Need to remove the open state from Dropdown as Dropdown trigger opens the content automatically.

Screenshot

Screenshot 2024-07-18 at 11 14 04โ€ฏPM

After login it shows blunder

For some reason after I login, it shows blunder and when I go "back home" and again singup... it logs me in. ๐Ÿคท๐Ÿป

Create a Learn page

Create a beautiful learn page highlight chess.com's diamond memberships features and add samay's affiliate link

Able to access contents wtihout login

Issue Description:

When accessing the URL https://www.bmsamay.com/community or any other path without logging in, the expected behavior is for the application to redirect the user to the login page to authenticate.

Current Behavior:

Currently, the application allows access to https://www.bmsamay.com/community and other paths without requiring authentication.

Expected Behavior:

The application should enforce authentication by automatically redirecting users to the login page when attempting to access https://www.bmsamay.com/community or any other path without being logged in.

Cannot Use New YouTube Channel Name Link "www.youtube.com/@SamayRainaOfficial"

Cannot Use New YouTube Channel Name Link "www.youtube.com/@SamayRainaOfficial"

Description

I am encountering an issue where I am unable to use the new YouTube channel name link "www.youtube.com/@SamayRainaOfficial". When I attempt to access this link, it redirects me to "https://www.youtube.com/sama" instead.

Steps to Reproduce

  1. Attempt to access "www.youtube.com/@SamayRainaOfficial" in a web browser.
  2. Observe the redirection to "https://www.youtube.com/sama".

Expected Behavior

The link "www.youtube.com/@SamayRainaOfficial" should direct me to the corresponding YouTube channel for "SamayRainaOfficial".

Screenshot 2024-07-17 051034

Duplicate Twitter Links in Footer, Missing Instagram and Reddit Links

Duplicate Twitter Links in Footer, Missing Instagram and Reddit Links

Describe the bug

The footer in the landing.tsx component contains two links to Twitter and does not include links to Instagram or Reddit.

Screenshot 2024-07-17 031046

To Reproduce

Steps to reproduce the behavior:

  1. Go to the landing page of the application.
  2. Scroll down to the footer section.
  3. Observe that there are two Twitter links.
  4. Notice that there are no links to Instagram or Reddit.

Share Your Games FEATURE โ™˜

We need to implement a new page titled "Share Your Games" that allows users to share and view chess games. This page should include the ability for users to post their games, view games shared by others, and interact with them. The feature will enhance user engagement by allowing users to showcase their chess games directly on our platform.

Functionality Requirements

  1. a page to view game
  2. This page will have a share game popup where you will have a dropdown to select any recent game ( option will have timestamp with opponent name and verdict ) and a text field to add some text.
  3. A user can click on a game from that page and go to that specific game page (/games/:id) and there he can see the game/add comment

Add react query

I think as the project grows more and more data fetching will be an issue, i would like to implement react query here.

Responsiveness issue of Community dashboard page

Overview
The Hamburger icon is overlapping the header part of the site the text (Community Dashboard) should be smaller and hamburger icon should adjusted according to that

Steps to Reproduce

  1. Go to this url https://www.bmsamay.com/community?token= on any mobile device

Expected Behaviour
The Hamburger icon should be on the side and the text should be smaller

Actual Behaviour
The Text is overlapping the hamburger icon

Screenshot

image

Environment
Iphone 15 plus (Chrome)

Wanna implement botbyte AI

Users can interact with the AI and ask their questions there. As a member of BM Army, you will receive it as a gift for free for a lifetime.

More secure authentication

I noticed that the website is using URL encoded token for authentication which comes with the security risks:
Tokens in URLs can be logged in browser history, server logs, or shared inadvertently.
This can expose the token to unintended parties.
Implement a cookie based token which is more secure.
You can use auth.js if the backend is in express.js.
With auth.js sign in with discord, facebook etc can be easily implemented.

Improving README file

Can the README file be further improved by adding Table of Contents for a better navigation and Contributing guidelines for a more standardized process.

Cards on dashboard page displaying api link instead of the country name

Issue Summary

When you hover on the cards on the community dashboard page displaying the stats, there are cards which displays the highest rated player in bullet, blitz and rapid. When you hover on the username mentioned under the rating, it is supposed to show the display picture, their followers and the country details. Instead of country details it shows the end-point url for chess.com for the country.

Steps to Reproduce

  1. Login with your google account
  2. Use the navigation bar on the left and click Community
  3. Hover on the username below the Highest Rapid, Highest Bullet and Highest Blitz

Actual Behavior

  1. Here the api link is visible
    Screenshot 2024-07-21 at 3 57 09โ€ฏPM

  2. Here the on-hover is displayed below the card
    Screenshot 2024-07-21 at 3 53 23โ€ฏPM (2)

Possible Solution

  1. Ensure that the api is returning the Country name and display that, not the URL.

  2. Update the on-hover logic to position it above the Highest Puzzle Rush card.

License Template Missing Year and Owner Name

Issue: License Template Missing Year and Owner Name

The MIT License template provided does not specify the current year or the full name of the copyright holder. According to the MIT License requirements, it should include:

  • The current year when the software is being distributed (2024).
  • The full name of the copyright holder (Samay Raina).

This information is crucial for clarity and compliance with the license terms. Could we please update the template to reflect the correct details?

Maybe change the color palette.

The current color palettte is fine but I think something like a ligher green/black (light green from chess.com's logo)
Or a black/grey
Or dark grey/grey (discord color palette) might look better.

Sidebar UI glitch

The logout button on the sidebar seem to break due to auto-slide-in slide-out. UI bug

Chess tutorials

Add relevant tabs for chess tutorials , and relevant and instructive chess playlists

Blurry Image on Welcome Page

Issue: Blurry Image on Welcome Page

Description

On the welcome page of the website/application, the current image appears blurry. This affects the visual appeal and quality of the page, potentially impacting user experience negatively.

Steps to Reproduce

  1. Navigate to the welcome page of the application.
  2. Observe the image section.
  3. Notice that the image is blurry or low resolution.

Expected Behavior

The image on the welcome page should be clear and of high resolution, providing a visually appealing introduction to the application.

Proposed Solution

Instead of the current blurry image, consider adding a new element that includes a selection of high-quality random images. This will enhance the visual appeal of the welcome page and provide a better first impression to users.

Screenshot

Screenshot 2024-07-18 022131

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.