-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the ability to Party Up! (#24)
- This PR will allow users to create a shared group leaderboard or 'party' where they can compare multiple grails against each other. - Each Party can be registered similarly to a Holy Grail sheet by clicking on the register button on the party home page (./party). - There is a tab to Join the party and (if you are logged in as the owner) a tab to Manage the party. - When a user Joins the Party, they are put onto a Pending User list and have to be approved by the party owner before they appear on the party scoreboard. - Once a user is accepted to the party, whenever they save their holy grail a copy will be saved to the Party database for retrieval later. - There is now a party button (indicated by a 1-2-3 ranking icon) in addition to the home button on the bottom left side of the screen to navigate between the sections of the website. - This update also includes an ItemScore value, which is a different way to compare grails rather than just items remaining. The ItemScore for any item is relative to its rarity so a rare item (i.e. Tyrael's Might) will have a high ItemScore and a common item will have a very low ItemScore. This is a work in progress, but I wanted to float the idea out there to see if it has any merit. 😄 - Thanks @Nasicus for the "Party" naming idea. 😃
- Loading branch information
Showing
50 changed files
with
4,914 additions
and
1,881 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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,57 @@ | ||
import { createContext } from "react"; | ||
import { Theme, createMuiTheme } from "@material-ui/core"; | ||
import { purple, green, brown, grey, blue } from "@material-ui/core/colors"; | ||
|
||
export const AppThemeContext = createContext<{ | ||
appTheme: IAppTheme; | ||
setAppTheme: (theme?: IAppTheme) => any; | ||
}>(null); | ||
|
||
export interface IAppTheme { | ||
theme: Theme; | ||
title: string; | ||
} | ||
|
||
export const defaultTheme: IAppTheme = { | ||
theme: createMuiTheme({ | ||
typography: {}, | ||
palette: { | ||
primary: purple, | ||
secondary: green | ||
} | ||
}), | ||
title: "Diablo II - Holy Grail" | ||
}; | ||
|
||
export const ethTheme: IAppTheme = { | ||
theme: createMuiTheme({ | ||
typography: {}, | ||
palette: { | ||
primary: brown, | ||
secondary: grey | ||
} | ||
}), | ||
title: "Diablo II - Eth Grail" | ||
}; | ||
|
||
export const runewordTheme: IAppTheme = { | ||
theme: createMuiTheme({ | ||
typography: {}, | ||
palette: { | ||
primary: grey, | ||
secondary: brown | ||
} | ||
}), | ||
title: "Diablo II - Runeword Grail" | ||
}; | ||
|
||
export const partyTheme: IAppTheme = { | ||
theme: createMuiTheme({ | ||
typography: {}, | ||
palette: { | ||
primary: blue, | ||
secondary: grey | ||
} | ||
}), | ||
title: "Diablo II - Holy Grail Party" | ||
}; |
This file contains 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.