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

Refresh v1 #328

Open
wants to merge 10 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
8 changes: 0 additions & 8 deletions src/lib/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,4 @@
{/each}
</ul>
</div>
<!-- PLEASE DO NOT REMOVE THE COPYRIGHT -->
<span class="copyright">&copy; 2021 - {year} <a href="https://github.com/nmelhado/league-page">League Page</a></span>
<br />
<!-- PLEASE DO NOT REMOVE THE BUILT BY -->
<span class="creator">Built by <a href="http://www.nmelhado.com/">Nicholas Melhado</a><br /></span>
<!-- You can remove the donation link (although any donations to help
maintain and enhance League Page would be greatly appreciated!) -->
Love League Page? Please consider <a href="https://www.buymeacoffee.com/nmelhado">donating</a> to support enhancements or just to say thank you!
</footer>
198 changes: 141 additions & 57 deletions src/lib/utils/leagueInfo.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
/* STEP 1 */
export const leagueID = "your_league_id"; // your league ID
export const leagueName = "your_league_name"; // your league name
export const leagueID = "1120518864984526848"; // your league ID
export const leagueName = "The Eventual Champions"; // 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 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>The home of the Eventual Champions Fantasy Football League</p>
`;

/* STEP 3 */
Expand All @@ -26,70 +21,159 @@ https://github.com/nmelhado/league-page/blob/master/TRAINING_WHEELS.md#ii-adding

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...",
// "managerID": 68731036607332352, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Matt Tobolt",
// "location": "Denver", // (optional)
// "bio": "Perennial average fantasy football manager",
// "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
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "chi", // (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": null, // (DEPRECATED! Don't use this anymore) ID of the roster that the manager manages (look at the order of the power rankings graph)
"managerID": "68731036607332352", // the user's manager ID, go to https://api.sleeper.app/v1/league/<your_league_id>/users to find user IDs (you can use older leagueIDs to find user IDs for managers that are no longer in the league)
"name": "Matt Tobolt",
"tookOver": null, // (DEPRECATED! You don't need to use this anymore) (optional) used if a manager took over a team, delete this line or change to null otherwise
"location": "Denver", // (optional)
"bio": "Testing",
"photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
"fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
"favoriteTeam": "chi", // (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)
// {
// "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...",
// "managerID": 201505784566120448, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Jordan Zeken",
// "location": "Denver", // (optional)
// "bio": "tbd",
// "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
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "gb", // (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...",
// "managerID": 325785602354065408, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Travis Leffel",
// "location": "Chicago", // (optional)
// "bio": "tbd",
// "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
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "gb", // (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)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// },
// {
// "managerID": 336579788619657216, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Ian Meador",
// "location": "Chicago", // (optional)
// "bio": "tbd",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "gb", // (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)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// },
// {
// "managerID": 336608308263661568, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Tyler Splitt",
// "location": "Denver", // (optional)
// "bio": "tbd",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "chi", // (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)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// },
// {
// "managerID": 336677484311379968, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Adam Kinross",
// "location": "Denver", // (optional)
// "bio": "tbd",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "chi", // (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)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// },
// {
// "managerID": 458065983806894080, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Sam Hader",
// "location": "Chicago", // (optional)
// "bio": "tbd",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "gb", // (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)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// },
// {
// "managerID": 461291218484064256, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Matthew Lundine",
// "location": "Chicago", // (optional)
// "bio": "tbd",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "chi", // (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)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// },
// {
// "managerID": 463904106323374080, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Tom Hanigan",
// "location": "Denver", // (optional)
// "bio": "tbd",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "gb", // (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)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// },
// {
// "managerID": 471480425026416640, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Adam Eibel",
// "location": "Pittsburgh", // (optional)
// "bio": "tbd",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "pit", // (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)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// },
// {
// "managerID": 730966401187155968, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Noah Kalter",
// "location": "Denver", // (optional)
// "bio": "tbd",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "chi", // (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)
// "philosophy": "Your fantasy team's philosophy",
// "tradingScale": 10, // 1 - 10
// },
// {
// "managerID": 857014932217143296, // ID of the roster that the manager manages (look at the order of the power rankings graph)
// "name": "Mike Dobek",
// "location": "Nashville", // (optional)
// "bio": "tbd",
// "photo": "/managers/name.jpg", // square ratio recommended (no larger than 500x500)
// "fantasyStart": 2012, // (optional) when did the manager start playing fantasy football
// "favoriteTeam": "gb", // (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 +208,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
// },


7 changes: 1 addition & 6 deletions src/lib/utils/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,4 @@ export const tabs = [
},
]
},
{
icon: 'lightbulb',
label: 'Resources',
dest: '/resources',
},
];
];
3 changes: 1 addition & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@

<slot />

<Footer /> <!-- adds the footer -->
</main>
</main>
Binary file modified static/badge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.