-
Notifications
You must be signed in to change notification settings - Fork 60
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
Feature: Add frontpage slider functionality, solves #162 #391
Feature: Add frontpage slider functionality, solves #162 #391
Conversation
We opted to give the elements that are displayed on top of the slider images (text + nav elements) a light drop-shadow to make them stand out against a light background. Additionally we gave the slides a small padding and round corners to get the design more in line with the boxes of the courses being displayed on the frontpage. |
70568d4
to
6c9a083
Compare
8381e1e
to
3de758b
Compare
Hey @matthias-buttgereit and @ShUl0w , thank you for providing this PR! Thanks, |
Hey @abias, sorry for having this still in Draft-state, that was in fact unintentional; it kind of got lost in our current holiday schedule. Please feel free to review the feature, as I did a finishing review on our end last week. I can't switch the ticket to open and @matthias-buttgereit is currently out of office. One thing I'd like to add to @matthias-buttgereit comment regarding deviations from the original issue is that we made a background image mandatory for a slide to be rendered. Generally speaking, the default styling of the Bootstrap carousel doesn't play nice with the default Moodle 4.X styling (and boost_union, for that matter), as content would practically be invisible when only text is displayed in a slide. If it's a client mandated feature we can obviously change this relatively quickly, however I'd appreciate a review on your hand anyway, as I believe there might be additional changes required in addition to the original issue given the reason stated above. Bests, |
3de758b
to
c52f1c4
Compare
8a4ec68
to
4b5d48f
Compare
4b5d48f
to
3703c7d
Compare
3703c7d
to
5a45e20
Compare
Hi @matthias-buttgereit, @ShUl0w and @Diphylla , many thanks for working on this PR! It's been really a while since you submitted this patch and I am sorry that it remained unhandled for so long. I was now finally able to process it and I dared to rework it in several aspects:
Please note that even if this is a quite long list, your contribution was well done anyway! I am grateful for well-crafted contributions like yours, but sometimes several things have to be aligned during the review. Regarding your comment that the background image is currently mandatory but could be optional, I would agree with your current approach. However, as you said, it should not be impossible to make the background image optional and allow text-only slides. However, this would require some more CSS work (and ideally Bootstrap 5 which provides a dark variant would have landed in Moodle then). I will create a follow-up issue for this task. Unfortunately, you haven't granted push access to your PR branch, so I was not able to push my review changes to update this PR. Because of that, I have now created another PR #523 which replaces this one here. I will merge it as soon as Github actions has turned green there. Cheers, |
This PR adds a slider functionality implemented with the bootstrap carousel class.