Skip to content

Conversation

@aryanpingle
Copy link
Contributor

Just a minor change that's been bugging me on the site: the buttons in the timeline section don't have their own individual borders, and the background lines make them confusing while scrolling (pics attached below).

Before After
image image

Yep that's all. Love your content, and happy holidays :D

@netlify
Copy link

netlify bot commented Dec 23, 2023

Deploy Preview for codingtrain ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 2405fac
🔍 Latest deploy log https://app.netlify.com/sites/codingtrain/deploys/65b6cfabf22d930008e628e9
😎 Deploy Preview https://deploy-preview-1339--codingtrain.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@shiffman
Copy link
Member

Thank you @aryanpingle! Tagging in @runemadsen to review, as this maybe affects the original design of the site?

@shiffman shiffman requested a review from runemadsen December 23, 2023 16:25
@dipamsen
Copy link
Member

I would keep only of the borders (top or bottom) to maintain the original border style.

@fturmel
Copy link
Collaborator

fturmel commented Dec 23, 2023

This needs more QA, couple things I noticed:

All separators are doubled besides the last one.

CleanShot 2023-12-23 at 11 36 27@2x

The changes have not been correctly applied to tracks. They don't scroll the same way as challenges anymore, and the doubled lines are increasingly misaligned vertically.

CleanShot 2023-12-23 at 11 34 09@2x

@aryanpingle
Copy link
Contributor Author

Ooh I didn't know about the tracks content till today, that's pretty neat. The double border issue should be a fairly easy CSS patch. I suppose the track stops "double-line" is just the background-lines clashing with the border-lines, I'll try to fix that.

@fturmel could you send me a link to the challenge which has both Tracks and Timestamps?

@aryanpingle
Copy link
Contributor Author

Here's a link with both tracks and timestamps: tracks/webgl/webgl/3-light-and-material

* Fixes the double border issue, and changes color depending on if it's for a Track or Challenge
* `VideoSection` is defined separately for Tracks and Challenges separately, so it changes both
* Keeps the default white background color on Track Stops and Parts respectively
@dipamsen
Copy link
Member

The double border is because of border-top and border-bottom, the background lines are hidden because of the bg color applied.

@aryanpingle
Copy link
Contributor Author

Alrighty, the border issues seemed to be fixed now. Changed the border-colors to match if it's a track / challenge because I was feeling extra merry today XD

I intentionally didn't add borders for "Track Stops" and "Parts", because their clickable area would be narrower than the rectangle formed (and it's more aesthetically pleasing without them). Should be easy to add them if needed.

@fturmel @dipamsen I'd love another set of eyes on it again :)

@aryanpingle
Copy link
Contributor Author

Whoa, can't believe I made this PR all the way back in 2023. Time flies by so quickly, here's a before-after of the changes:

Before After
image image
image image

@shiffman Could you give it a once-over whenever you're free?

@shiffman
Copy link
Member

shiffman commented Jan 9, 2024

Thank you @aryanpingle! The missing borders from the "track stops" looks odd to me and I think should be retained to stay true to the original design? Can you elaborate more on why you removed them?

@aryanpingle
Copy link
Contributor Author

The track-stops components follow a different convention than the timestamps, so I wasn't sure how I'd add the borders to them. I'll give it a try now!

@loic-brtd
Copy link
Contributor

@aryanpingle Hi! It's subtle but I see that the original background color is not white, but a light tint of red. We can see the difference here:
image

For reference, the original striped background is defined in src/components/Layout.module.css :

.content {
  background-color: var(--red-lightest);
  min-height: 100vh;
  border-right: var(--border);
  background-image: linear-gradient(rgba(255, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 100% var(--baseline);

  /* There is no border top so make sure baseline moves up 1px */
  background-position: 0px -1px;
}

@aryanpingle
Copy link
Contributor Author

Ah, nice catch. Fixing it.

@shiffman
Copy link
Member

I took a look through and I'd like to merge this! Does anyone have any last comments before I do? Apologies for how long you had to wait @aryanpingle!

@aryanpingle
Copy link
Contributor Author

No worries, Dan! For anyone who wants to review, here's how it looked before. And here's how it looks after (the timestamp section).

@shiffman
Copy link
Member

Fantastic! As there have been no other comments and it looks good to me, I'm going to go ahead and merge!

@shiffman shiffman merged commit 926c8cb into CodingTrain:main Apr 24, 2024
@shiffman
Copy link
Member

@all-contributors add @aryanpingle for code

@allcontributors
Copy link
Contributor

@shiffman

I've put up a pull request to add @aryanpingle! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants