-
Notifications
You must be signed in to change notification settings - Fork 326
Add carousel of code snippets to front page #1462
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
Conversation
these are only visible with javascript enabled, which will inject hljs dark theme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. I only have minor internal comments.
5527762
to
e9e2763
Compare
e9e2763
to
221c8be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great improvement, thank you Jamie, please find my suggestions and questions below.
trying a different header colour: |
8a1c702
to
26f0013
Compare
Let's merge this. It seems like a definite improvement over the status quo. We can always further iterate later. |
The idea here is to add a carousel that is immediately visible. Each slide comes with a title, code snippet, Scastie link, and summary. it can be operated without JS on, but when JS is on then it changes slides every 8 seconds, until the user interacts with the carousel, which cancels the timer.
Also added a dark mode theme for code on the front page.
Also tag @romanowski @Kordyjan for review