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

Benchwarmers #281

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion src/lib/Nav/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
</style>

<nav>
<a href="/"><img id="logo" alt="league logo" src="/badge.png" /></a>
<a href="/"><img id="logo" alt="league logo" src="/deflated-football.png" /></a>

<div class="container">
<IconButton
Expand Down
44 changes: 19 additions & 25 deletions src/lib/Resources.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,35 @@ import { dynasty } from './utils/helper';
const today = new Date();
const resources = [
{
name: "FTN Fantasy",
url: "https://www.ftnfantasy.com/nfl",
name: "Sleeper",
url: "https://www.sleeper.com/",
icon: "insights",
premium: true,
separator: true,
},
{
name: "The Fantasy Footballers",
url: "https://www.thefantasyfootballers.com/",
name: "Benchwarmers Podcast",
url: "https://open.spotify.com/show/1myS5InzXneqrQ2F3Q3Z15?si=d948c89255a94302",
icon: "podcasts",
premium: true,
separator: true,
},
{
name: "FantasyPros Dynasty Trade Value Chart",
url: `https://www.fantasypros.com/${today.getFullYear()}/${today.getMonth() + 1}/fantasy-football-rankings-dynasty-trade-value-chart-${today.toLocaleString('default', { month: 'long' }).toLowerCase()}-${today.getFullYear()}-update/`,
icon: "assessment",
premium: false,
separator: true,
dynastyOnly: true,
dynastyOnly: false,
},
{
name: "DynastyProcess Trade Calculator",
url: "https://apps.dynastyprocess.com/calculator/",
icon: "calculate",
name: "Yahoo Sports",
url: "https://football.fantasysports.yahoo.com/f1/research",
icon: "insights",
premium: false,
separator: true,
dynastyOnly: true,
dynastyOnly: false,
},
{
name: "Dynasty League Football",
url: "https://dynastyleaguefootball.com/",
name: "NFL Fantasy",
url: "https://fantasy.nfl.com/",
icon: "insights",
premium: true,
separator: true,
dynastyOnly: true,
dynastyOnly: false,
},
{
name: "Reddit Dynasty Fantasy Football",
Expand All @@ -56,7 +49,7 @@ import { dynasty } from './utils/helper';
icon: "article",
premium: false,
separator: true,
redraftOnly: true,
dynastyOnly: true,
},
{
name: "Dynasty 101 Trade Calculator",
Expand All @@ -67,35 +60,36 @@ import { dynasty } from './utils/helper';
dynastyOnly: true,
},
{
name: "Dynasty Nerds GM",
url: "https://gm.dynastynerds.com/",
name: "ESPN",
url: "https://www.espn.com/fantasy/football/",
icon: "insights",
premium: true,
separator: true,
dynastyOnly: true,
dynastyOnly: false,
},
{
name: "Fantasy Football Trade Analyzer",
url: `https://fantasyfootballcalculator.com/trade-analyzer`,
icon: "calculate",
premium: false,
separator: true,
redraftOnly: true,
dynastyOnly: true,
},
{
name: "Reddit FF Trade Analyzer",
url: "https://www.reddit.com/r/TradeAnalyzerFF/",
icon: "assessment",
premium: false,
separator: true,
dynastyOnly: true,
},
{
name: "FantasyCalc Trade Calculator",
url: "https://www.fantasycalc.com/trade-calculator",
icon: "calculate",
premium: false,
separator: false,
dynastyOnly: false,
dynastyOnly: true,
},
];
</script>
Expand Down
151 changes: 74 additions & 77 deletions src/lib/utils/leagueInfo.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
/* STEP 1 */
export const leagueID = "your_league_id"; // your league ID
export const leagueName = "your_league_name"; // your league name
export const dues = 100; // (optional) used in template constitution page
export const dynasty = true; // true for dynasty leagues, false for redraft and keeper
export const leagueID = "962485813193850880"; // your league ID
export const leagueName = "Benchwarmers Fantasy League"; // your league name
export const dues = 25; // (optional) used in template constitution page
export const dynasty = false; // true for dynasty leagues, false for redraft and keeper
export const enableBlog = false; // requires VITE_CONTENTFUL_ACCESS_TOKEN and VITE_CONTENTFUL_SPACE environment variables

/* STEP 2 */
export const homepageText = `
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Welcome in Benchwarmers. It's time to address the elephant in the room, and that's my undisputed reign as last season's champion. I hope you all enjoyed watching my team dominate the competition week after week. It's not arrogance if you can back it up.</p>
<p>Now, I know some of you might be nursing bruised egos, and that's perfectly natural. But let's face it, folks - I've set the bar so high that it might as well be in the stratosphere. Are any of you finally going to challenge me as the champ, or are we in for another season of my absolute dominance?<p/>
<p>I'm ready to defend my crown, and I'm eager to see if any of you can muster the skills, stratgey, and sheer guts to knock me off my throne. So, bring your A-game, because you're going to need it. This season, it's all about the pursuit of excellence, and I plan on staying right where I belong - at the top.<p/>
`;

/* STEP 3 */
Expand All @@ -25,72 +22,72 @@ https://github.com/nmelhado/league-page/blob/master/TRAINING_WHEELS.md#ii-adding
// To omit an optional field, set it's value to null

export const managers = [
// {
// "roster": 1, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Your Name",
// "tookOver": 2020, // (optional) used if a manager took over a team, delete this line or change to null otherwise
// "location": "Brooklyn", // (optional)
// "bio": "Lorem ipsum...",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2014, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "nyj", // (optional) favorite NFL team, (follows convention: nyj, sea, mia, etc.) MUST BE LOWERCASE
// "mode": "Win Now", // (optional) 'Win Now', 'Dynasty', or 'Rebuild' (anything else and you will need to add a new png to /static/ similar to the 'Rebuild.png' and 'Win Now.png' currently in there)
// "rival": {
// name: "Rival", // Can be anything (usually your rival's name)
// link: 6, // manager array number within this array, or null to link back to all managers page
// image: "/managers/rival.jpg", // either a specific manager photo or '/managers/everyone.png' or '/managers/question.png'
// },
// "favoritePlayer": 1426, // (optional) this corresponds to the Sleeper player ID (https://api.sleeper.app/v1/players/nfl)
// "valuePosition": "WR", // (optional) Favorite position (QB, WR, RB, TE, etc.)
// "rookieOrVets": "Rookies", // (optional) 'Rookies' or 'Vets' (anything else and you will need to add a new png to /static/ similar to the 'Rookies.png' and 'Vets.png' currently in there)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// "preferredContact": "Text", // 'Text', 'WhatsApp', 'Sleeper', 'Email', 'Phone', 'Discord', and 'Carrier Pigeon' are currently supplied in the template
// },
// {
// "roster": 2, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Your Name",
// "tookOver": 2020, // (optional) used if a manager took over a team, delete this line or change to null otherwise
// "location": "Brooklyn", // (optional)
// "bio": "Lorem ipsum...",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2014, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "nyj", // (optional) favorite NFL team, (follows convention: nyj, sea, mia, etc.) MUST BE LOWERCASE
// "mode": "Win Now", // (optional) 'Win Now', 'Dynasty', or 'Rebuild' (anything else and you will need to add a new png to /static/ similar to the 'Rebuild.png' and 'Win Now.png' currently in there)
// "rival": {
// name: "Rival", // Can be anything (usually your rival's name)
// link: 6, // manager array number within this array, or null to link back to all managers page
// image: "/managers/rival.jpg", // either a specific manager photo or '/managers/everyone.png' or '/managers/question.png'
// },
// "favoritePlayer": 1426, // (optional) this corresponds to the Sleeper player ID (https://api.sleeper.app/v1/players/nfl)
// "valuePosition": "WR", // (optional) Favorite position (QB, WR, RB, TE, etc.)
// "rookieOrVets": "Rookies", // (optional) 'Rookies' or 'Vets' (anything else and you will need to add a new png to /static/ similar to the 'Rookies.png' and 'Vets.png' currently in there)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// "preferredContact": "Text", // 'Text', 'WhatsApp', 'Sleeper', 'Email', 'Phone', 'Discord', and 'Carrier Pigeon' are currently supplied in the template
// },
// {
// "roster": 3, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Your Name",
// "tookOver": 2020, // (optional) used if a manager took over a team, delete this line or change to null otherwise
// "location": "Brooklyn", // (optional)
// "bio": "Lorem ipsum...",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2014, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "nyj", // (optional) favorite NFL team, (follows convention: nyj, sea, mia, etc.) MUST BE LOWERCASE
// "mode": "Win Now", // (optional) 'Win Now', 'Dynasty', or 'Rebuild' (anything else and you will need to add a new png to /static/ similar to the 'Rebuild.png' and 'Win Now.png' currently in there)
// "rival": {
// name: "Rival", // Can be anything (usually your rival's name)
// link: 6, // manager array number within this array, or null to link back to all managers page
// image: "/managers/rival.jpg", // either a specific manager photo or '/managers/everyone.png' or '/managers/question.png'
// },
// "favoritePlayer": 1426, // (optional) this corresponds to the Sleeper player ID (https://api.sleeper.app/v1/players/nfl)
// "valuePosition": "WR", // (optional) Favorite position (QB, WR, RB, TE, etc.)
// "rookieOrVets": "Rookies", // (optional) 'Rookies' or 'Vets' (anything else and you will need to add a new png to /static/ similar to the 'Rookies.png' and 'Vets.png' currently in there)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// "preferredContact": "Text", // 'Text', 'WhatsApp', 'Sleeper', 'Email', 'Phone', 'Discord', and 'Carrier Pigeon' are currently supplied in the template
// },
{
"roster": 1, // ID of the roster that the manager manages (look at the order of the power rankings graph)
"name": "Your Name",
"tookOver": 2020, // (optional) used if a manager took over a team, delete this line or change to null otherwise
"location": "Brooklyn", // (optional)
"bio": "Lorem ipsum...",
"photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
"fantasyStart": 2014, // (optional) when did the manager start playing fantasy football
"favoriteTeam": "nyj", // (optional) favorite NFL team, (follows convention: nyj, sea, mia, etc.) MUST BE LOWERCASE
"mode": "Win Now", // (optional) 'Win Now', 'Dynasty', or 'Rebuild' (anything else and you will need to add a new png to /static/ similar to the 'Rebuild.png' and 'Win Now.png' currently in there)
"rival": {
name: "Rival", // Can be anything (usually your rival's name)
link: 6, // manager array number within this array, or null to link back to all managers page
image: "/managers/rival.jpg", // either a specific manager photo or '/managers/everyone.png' or '/managers/question.png'
},
"favoritePlayer": 1426, // (optional) this corresponds to the Sleeper player ID (https://api.sleeper.app/v1/players/nfl)
"valuePosition": "WR", // (optional) Favorite position (QB, WR, RB, TE, etc.)
"rookieOrVets": "Rookies", // (optional) 'Rookies' or 'Vets' (anything else and you will need to add a new png to /static/ similar to the 'Rookies.png' and 'Vets.png' currently in there)
"philosophy": "Your fantasy team's philosophy",
"tradingScale": 10, // 1 - 10
"preferredContact": "Text", // 'Text', 'WhatsApp', 'Sleeper', 'Email', 'Phone', 'Discord', and 'Carrier Pigeon' are currently supplied in the template
},
{
"roster": 2, // ID of the roster that the manager manages (look at the order of the power rankings graph)
"name": "Your Name",
"tookOver": 2020, // (optional) used if a manager took over a team, delete this line or change to null otherwise
"location": "Brooklyn", // (optional)
"bio": "Lorem ipsum...",
"photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
"fantasyStart": 2014, // (optional) when did the manager start playing fantasy football
"favoriteTeam": "nyj", // (optional) favorite NFL team, (follows convention: nyj, sea, mia, etc.) MUST BE LOWERCASE
"mode": "Win Now", // (optional) 'Win Now', 'Dynasty', or 'Rebuild' (anything else and you will need to add a new png to /static/ similar to the 'Rebuild.png' and 'Win Now.png' currently in there)
"rival": {
name: "Rival", // Can be anything (usually your rival's name)
link: 6, // manager array number within this array, or null to link back to all managers page
image: "/managers/rival.jpg", // either a specific manager photo or '/managers/everyone.png' or '/managers/question.png'
},
"favoritePlayer": 1426, // (optional) this corresponds to the Sleeper player ID (https://api.sleeper.app/v1/players/nfl)
"valuePosition": "WR", // (optional) Favorite position (QB, WR, RB, TE, etc.)
"rookieOrVets": "Rookies", // (optional) 'Rookies' or 'Vets' (anything else and you will need to add a new png to /static/ similar to the 'Rookies.png' and 'Vets.png' currently in there)
"philosophy": "Your fantasy team's philosophy",
"tradingScale": 10, // 1 - 10
"preferredContact": "Text", // 'Text', 'WhatsApp', 'Sleeper', 'Email', 'Phone', 'Discord', and 'Carrier Pigeon' are currently supplied in the template
},
{
"roster": 3, // ID of the roster that the manager manages (look at the order of the power rankings graph)
"name": "Your Name",
"tookOver": 2020, // (optional) used if a manager took over a team, delete this line or change to null otherwise
"location": "Brooklyn", // (optional)
"bio": "Lorem ipsum...",
"photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
"fantasyStart": 2014, // (optional) when did the manager start playing fantasy football
"favoriteTeam": "nyj", // (optional) favorite NFL team, (follows convention: nyj, sea, mia, etc.) MUST BE LOWERCASE
"mode": "Win Now", // (optional) 'Win Now', 'Dynasty', or 'Rebuild' (anything else and you will need to add a new png to /static/ similar to the 'Rebuild.png' and 'Win Now.png' currently in there)
"rival": {
name: "Rival", // Can be anything (usually your rival's name)
link: 6, // manager array number within this array, or null to link back to all managers page
image: "/managers/rival.jpg", // either a specific manager photo or '/managers/everyone.png' or '/managers/question.png'
},
"favoritePlayer": 1426, // (optional) this corresponds to the Sleeper player ID (https://api.sleeper.app/v1/players/nfl)
"valuePosition": "WR", // (optional) Favorite position (QB, WR, RB, TE, etc.)
"rookieOrVets": "Rookies", // (optional) 'Rookies' or 'Vets' (anything else and you will need to add a new png to /static/ similar to the 'Rookies.png' and 'Vets.png' currently in there)
"philosophy": "Your fantasy team's philosophy",
"tradingScale": 10, // 1 - 10
"preferredContact": "Text", // 'Text', 'WhatsApp', 'Sleeper', 'Email', 'Phone', 'Discord', and 'Carrier Pigeon' are currently supplied in the template
},
]


Expand Down Expand Up @@ -124,4 +121,4 @@ export const managers = [
// "tradingScale": 10, // 1 - 10 (optional)
// "preferredContact": "Text", // (optional) 'Text', 'WhatsApp', 'Sleeper', 'Email', 'Phone', 'Discord', and 'Carrier Pigeon' are currently supplied in the template
// },