Skip to content

Conversation

tyrelchambers
Copy link

@tyrelchambers tyrelchambers commented Oct 16, 2025

IMPORTANT: Please do not create a Pull Request without creating an issue first.Any change needs to be discussed before proceeding.

Dependent on #90 Should be rebased then merged once 90 is in.

Closing issues

closes #93

...

Description

Screenshot 2025-10-16 at 2 26 41 PM

Adds tutorials grid
...

Changes

  • High level
  • changes that
  • you made
  • ...

@tyrelchambers tyrelchambers self-assigned this Oct 16, 2025
@tyrelchambers tyrelchambers force-pushed the feat/93-layout-tutorials branch from d250110 to 8d3a66e Compare October 17, 2025 16:45
Copy link

@Zelig880 Zelig880 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments

Comment on lines 20 to 25
const borderStyle: React.CSSProperties = {
borderTop: isFirstRow ? "1px solid var(--border)" : undefined,
borderLeft: isFirstColumn ? "1px solid var(--border)" : undefined,
borderRight: "1px solid var(--border)",
borderBottom: "1px solid var(--border)",
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be improved. You have a couple of ways to achieve this:

  1. You can just assign the border top and left to the GRID and not the actual cards. If you have not set any margin, this will work just fine and the border will look as part of the cards
  2. You can do the margin trick. Just set the margin to -1px on the side and top
  3. You should know how many column there are, so you can just use the .grid > :nth-child(-n+3 (or 2)) { amd set the border that way.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great ideas!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

went with a more restricted approach, where we limit the number of columns to 4, because it's quite difficult to do this truly dynamically (avoiding javascript etc).

1 and 2 work well, but if we have a 3-column grid and are only passing 1-2 links, there will be a border that stretches onto the empty 3rd column.

I went with 3, but hopefully looks better to the eyes. By limiting the number of grids (4) and creating custom selectors, we can effectively target these columns. Grok and Claude were no help in trying to find a better/optimal solution

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.

2 participants