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

[ENHANCEMENT] customizing the sidebar on the home page #130

Open
mscipio opened this issue Jul 9, 2022 · 3 comments
Open

[ENHANCEMENT] customizing the sidebar on the home page #130

mscipio opened this issue Jul 9, 2022 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mscipio
Copy link

mscipio commented Jul 9, 2022

Is your feature request related to a problem? Please describe.
Not a problem, but rather a customization of the home page I'd like to make.
On the sidebar, where right now we see the waiver and trades, I would much rather see a list of the next matchups, as we see on the matchup page.

League ID
785196368615641088

Additional context
I am not at all new at writing code, and I am familiar with the basics of html and css, however, svelte is something I had never heard of before and the code is getting me confused about what I should touch to start working towards this change of the home page.

Any assistance in identifying the right file to modify ( or if this change is at all possible) would be very much welcome.
I am totally willing to work on this myself, as it is a modification that I am aware not everybody would care about.

Thanks a lot!

@mscipio mscipio added the enhancement New feature or request label Jul 9, 2022
@mscipio mscipio changed the title [ENHANCEMENT] [ENHANCEMENT] customizing the sidebar on the home page Jul 9, 2022
@nmelhado
Copy link
Owner

nmelhado commented Jul 9, 2022

This sounds like a good enhancement either in addition to the current content or to replace it. Sorry about the code, it is a big mess. I've worked on it very haphazardly and have only recently started to clean it up.

You'll want to look at the div <div class="leagueData"> in src/routes/index.svelte, as that's where the sidebar lives. You'll then want to look into calling getLeagueMatchups and using an await block to display the data. It's a bit more complex than that, but hopefully that points you in the right direction!

@nmelhado
Copy link
Owner

You might end up wanting to make a new svelte component in src/lib/Matchups/ for the smaller widget for the homepage and pass the results of getLeagueMatchups to that new component.

@nmelhado nmelhado added good first issue Good for newcomers help wanted Extra attention is needed labels Aug 18, 2022
@nmelhado nmelhado removed their assignment Sep 20, 2022
@dawghouse73
Copy link

I would love to figure this feature change out as well.
While I can manage some base coding, I've never deal with svelte before so, I'm not sure I'm any help.

I'll gladly help test. In the meantime, I'll play and see what I can figure out. Wasn't sure if anything happened with this since last summer.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants