-
Notifications
You must be signed in to change notification settings - Fork 7
addedcomments #76
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
Open
Bharath-murari
wants to merge
33
commits into
Client
Choose a base branch
from
gameoverpage
base: Client
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
addedcomments #76
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
f113960
Fixed Firebase Auth(Test)
Azaken1248 27afcda
Merge pull request #61 from Codechef-VITC-Student-Chapter/dev-two
poseidon0z 5eef344
Merge pull request #63 from Codechef-VITC-Student-Chapter/Client
Azaken1248 d455d16
Removed useless stuff, updated assets
poseidon0z f6559c1
Merge pull request #64 from Codechef-VITC-Student-Chapter/assets
Azaken1248 e8904f6
Added gameContexts for variable persistance
Azaken1248 160daea
Added Context Layer And Removed Redundant Stuff
Azaken1248 bb0cff2
Username Sharing Across Components
Azaken1248 fce9053
Merge pull request #65 from Codechef-VITC-Student-Chapter/dev-two
poseidon0z 80f70e0
fixed h1 and username size
dishadaniellol a558883
Merge pull request #66 from Codechef-VITC-Student-Chapter/countdown-g…
Sasank-V cd45b77
Fixed Frontend Issues Built Persistant Logins Refactored Server To Pr…
Azaken1248 f6a23a8
Merge branch 'main' into dev-two
Azaken1248 338a77a
Change API Endpoints
Azaken1248 875301d
Merge branch 'dev-two' of https://github.com/Codechef-VITC-Student-Ch…
Azaken1248 8a6a583
Limit Leaderboard To Top 100
Azaken1248 0434c61
Merge pull request #67 from Codechef-VITC-Student-Chapter/dev-two
poseidon0z 67d3ee6
Added increasing difficulty
poseidon0z bf49d97
Merge branch 'main' into difficult
poseidon0z bbf7c2f
Merge pull request #68 from Codechef-VITC-Student-Chapter/difficult
codechefvitcc e746072
I'm honestly not sure what this is
poseidon0z f45ad85
Merge pull request #69 from Codechef-VITC-Student-Chapter/difficult
Azaken1248 a3d396b
Fixed the click thing to center and fixed the logo and button size on…
Sasank-V c7df869
Fixed the file paths and move everything to public folder
Sasank-V 762a7f4
Merge pull request #70 from Codechef-VITC-Student-Chapter/fixed-homepage
poseidon0z 74f4bbc
Merge branch 'main' into fixed-assets
Sasank-V 5767179
fix leaderboard responsiveness for various screen sizes
dishadaniellol c8130f5
fixed sign in title
dishadaniellol 974d775
fixed sign in page title resp and leaderboard responsiveness
dishadaniellol 2fdcb33
Merge pull request #72 from Codechef-VITC-Student-Chapter/leaderboard…
Sasank-V 0ebeea3
Merge pull request #75 from Codechef-VITC-Student-Chapter/fixSIGNinLE…
Sasank-V b65d0c6
Merge pull request #71 from Codechef-VITC-Student-Chapter/fixed-assets
poseidon0z c988fba
<message>
Bharath-murari File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,49 @@ | ||
| module.exports = { | ||
| // Specifies that this is the root configuration file | ||
| root: true, | ||
| env: { browser: true, es2020: true }, | ||
|
|
||
| // Defines the environments in which the code is expected to run | ||
| env: { | ||
| browser: true, // Code is expected to run in the browser | ||
| es2020: true, // Code is using ECMAScript 2020 features | ||
| }, | ||
|
|
||
| // Extends from base configurations and recommended rules | ||
| extends: [ | ||
| 'eslint:recommended', | ||
| 'plugin:react/recommended', | ||
| 'plugin:react/jsx-runtime', | ||
| 'plugin:react-hooks/recommended', | ||
| 'eslint:recommended', // Uses the recommended ESLint rules | ||
| 'plugin:react/recommended', // Uses the recommended rules from the ESLint React plugin | ||
| 'plugin:react/jsx-runtime', // Enables rules for React's new JSX transform | ||
| 'plugin:react-hooks/recommended', // Uses recommended rules for React Hooks | ||
| ], | ||
|
|
||
| // Specifies files and directories to ignore | ||
| ignorePatterns: [ | ||
| 'dist', // Ignore the 'dist' directory (typically used for build outputs) | ||
| '.eslintrc.cjs', // Ignore this ESLint configuration file itself | ||
| ], | ||
| ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
| parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, | ||
| settings: { react: { version: '18.2' } }, | ||
| plugins: ['react-refresh'], | ||
|
|
||
| // Defines the parser options | ||
| parserOptions: { | ||
| ecmaVersion: 'latest', // Use the latest ECMAScript syntax | ||
| sourceType: 'module', // Specifies that the code uses ES modules | ||
| }, | ||
|
|
||
| // Specifies settings for specific plugins | ||
| settings: { | ||
| react: { | ||
| version: '18.2', // Specifies the version of React to use (for linting rules compatibility) | ||
| }, | ||
| }, | ||
|
|
||
| // Defines additional plugins to use | ||
| plugins: ['react-refresh'], // Includes the 'react-refresh' plugin for hot reloading support in development | ||
|
|
||
| // Customizes specific rules | ||
| rules: { | ||
| 'react/jsx-no-target-blank': 'off', | ||
| 'react/jsx-no-target-blank': 'off', // Disables the rule that prevents using `target="_blank"` without `rel="noopener noreferrer"` (you might want to manage this manually) | ||
| 'react-refresh/only-export-components': [ | ||
| 'warn', | ||
| { allowConstantExport: true }, | ||
| 'warn', // Set the rule to show warnings instead of errors | ||
| { allowConstantExport: true }, // Allows exporting constants without triggering the rule | ||
| ], | ||
| }, | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Empty file.
Oops, something went wrong.
Diff not rendered.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
File renamed without changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import React, { createContext, useState, useContext } from 'react'; | ||
| import getRandomName from '../utils/utils'; | ||
|
|
||
| const GameContext = createContext(); | ||
|
|
||
| export const GameProvider = ({ children }) => { | ||
| const defaultName = getRandomName(); | ||
| const [playerName, setPlayerName] = useState(defaultName); | ||
| const [currentScore, setCurrentScore] = useState(0); | ||
|
|
||
| return ( | ||
| <GameContext.Provider value={{ playerName, setPlayerName, currentScore, setCurrentScore }}> | ||
| {children} | ||
| </GameContext.Provider> | ||
| ); | ||
| }; | ||
|
|
||
| export const useGameContext = () => useContext(GameContext); |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,59 +1,98 @@ | ||
| /* Import Tailwind's base styles, component classes, and utility classes */ | ||
| @tailwind base; | ||
| @tailwind components; | ||
| @tailwind utilities; | ||
|
|
||
| /* Define a custom font face for 'Post No Bills Colombo' */ | ||
| @font-face { | ||
| font-family: 'Post No Bills Colombo'; | ||
| src: url('./PostNoBillsColombo-ExtraBold.woff') format('woff'); | ||
| font-weight: 800; | ||
| font-style: normal; | ||
| font-family: 'Post No Bills Colombo'; /* The name used to refer to this font in CSS */ | ||
| src: url('./PostNoBillsColombo-ExtraBold.woff') format('woff'); /* URL to the font file */ | ||
| font-weight: 800; /* Font weight for this font (ExtraBold) */ | ||
| font-style: normal; /* Font style (normal) */ | ||
| } | ||
|
|
||
| /* Custom scrollbar styles for WebKit browsers (Chrome, Safari) */ | ||
| ::-webkit-scrollbar { | ||
| width: 8px; | ||
| height: 12px; | ||
| margin: 4px; | ||
| width: 8px; /* Width of the vertical scrollbar */ | ||
| height: 12px; /* Height of the horizontal scrollbar */ | ||
| margin: 4px; /* Margin around the scrollbar */ | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-track { | ||
| background: #4D2E13; | ||
| border-radius: 10px; | ||
| background: #4D2E13; /* Background color of the scrollbar track */ | ||
| border-radius: 10px; /* Rounded corners for the scrollbar track */ | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-thumb { | ||
| background: #D8874F; | ||
| border-radius: 10px; | ||
| background: #D8874F; /* Background color of the scrollbar thumb */ | ||
| border-radius: 10px; /* Rounded corners for the scrollbar thumb */ | ||
| } | ||
|
|
||
| ::-webkit-scrollbar-thumb:hover { | ||
| background: #ffa15f; | ||
| background: #ffa15f; /* Background color of the scrollbar thumb on hover */ | ||
| } | ||
|
|
||
| /* Custom font class for 'Post No Bills Colombo' with bold weight */ | ||
| .font-postNoBills { | ||
| font-family: 'Post No Bills Colombo', sans-serif; | ||
| font-weight: 800; | ||
| font-family: 'Post No Bills Colombo', sans-serif; /* Uses the custom font with a fallback to sans-serif */ | ||
| font-weight: 800; /* Bold weight for this font */ | ||
| } | ||
|
|
||
| /* Custom font class for 'Inter' */ | ||
| .font-inter { | ||
| font-family: "Inter", sans-serif; | ||
| font-style: normal; | ||
| font-family: "Inter", sans-serif; /* Uses the Inter font with a fallback to sans-serif */ | ||
| font-style: normal; /* Normal font style */ | ||
| } | ||
|
|
||
| /* Custom styling for text with a stroke */ | ||
| .countdown-text { | ||
| -webkit-text-stroke-width: 3px; | ||
| -webkit-text-stroke-color: #311F04; | ||
| -webkit-text-stroke-width: 3px; /* Width of the text stroke */ | ||
| -webkit-text-stroke-color: #311F04; /* Color of the text stroke */ | ||
| } | ||
|
|
||
| /* Background style for elements with the 'body' class */ | ||
| .body { | ||
| background-image: linear-gradient(rgba(0, 0, 0, 0.527), rgba(0, 0, 0, 0.5)), url("/leaderBoard_image_bg.png"); | ||
| background-image: linear-gradient(rgba(0, 0, 0, 0.527), rgba(0, 0, 0, 0.5)), url("/leaderBoard_image_bg.png"); /* Linear gradient overlay with a background image */ | ||
| } | ||
|
|
||
| /* Background style for elements with the 'out' class */ | ||
| .out { | ||
| background-image: url('/leaderBoard_tree_board.png'); | ||
| background-image: url('/leaderBoard_tree_board.png'); /* Background image */ | ||
| background-size: contain; /* Scale background image to fit within its container */ | ||
| background-position: center; /* Center the background image */ | ||
| background-repeat: no-repeat; /* Prevent background image from repeating */ | ||
| } | ||
|
|
||
| /* Animation for scrolling background */ | ||
| .bg-scroll { | ||
| animation: scrollBackground 120s linear infinite; /* Apply the scrollBackground animation for 120 seconds, infinitely */ | ||
| } | ||
|
|
||
| /* Keyframes for the scrollBackground animation */ | ||
| @keyframes scrollBackground { | ||
| from { | ||
| background-position: 0 0; /* Starting position of the background */ | ||
| } | ||
|
|
||
| to { | ||
| background-position: 1000% 0; /* Ending position of the background (scrolls horizontally) */ | ||
| } | ||
| } | ||
|
|
||
| /* Responsive styles for screens with a max width of 1024px */ | ||
| @media only screen and (max-width: 1024px) { | ||
| .out { | ||
| background-image: url('/leaderBoard_tree_board_sm.png'); | ||
| background-image: url('/leaderBoard_tree_board_sm.png'); /* Different background image for smaller screens */ | ||
| background-size: 100% auto; /* Adjust background image size for smaller screens */ | ||
| background-position: center top; /* Adjust background image position */ | ||
| background-repeat: no-repeat; /* Prevent background image from repeating */ | ||
| padding-top: 20%; /* Add padding to the top of the element */ | ||
| } | ||
| } | ||
| } | ||
|
|
||
| /* Styling for long text to break and wrap properly */ | ||
| .name-span { | ||
| word-break: break-word; /* Break long words onto the next line */ | ||
| overflow-wrap: break-word; /* Wrap text to avoid overflow */ | ||
| hyphens: auto; /* Automatically hyphenate text where appropriate */ | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,14 @@ | ||
| import React from 'react'; | ||
| import ReactDOM from 'react-dom/client'; | ||
| import App from './App.jsx'; | ||
| import './index.css'; | ||
| // Import necessary modules and components | ||
| import React from 'react'; // React library for building user interfaces | ||
| import ReactDOM from 'react-dom/client'; // ReactDOM for rendering React components to the DOM | ||
| import App from './App.jsx'; // The main App component for your application | ||
| import './index.css'; // Import the global CSS file for styling | ||
|
|
||
| // Create a root element to render your React application | ||
| ReactDOM.createRoot(document.getElementById('root')).render( | ||
| <React.StrictMode> | ||
| <React.StrictMode> | ||
| {/* The React.StrictMode component helps identify potential problems in your application */} | ||
| <App /> | ||
| {/* The App component is the top-level component of your React application */} | ||
| </React.StrictMode> | ||
| ); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be of "the react app"