-> mattbarty.com/projects
So it:
- Takes absolute positions (portrait.x, portrait.width)
- Converts to percentages relative to wall size
- Uses absolute CSS positioning (with relative percentages)
${(x / wallDimensions.width) * 100}%
So it:
- Takes absolute positions (portrait.x, portrait.width)
- Converts to percentages relative to wall size
- Uses absolute CSS positioning (with relative percentages)
${(x / wallDimensions.width) * 100}%
I wasn't planning on publishing it yet, so please excuse the shoddiness of it! But I'm keen t share.
All the code was generated Cursor with Claude 3.5, and ShadCN components, hence the single commit.
Explanation of relative distancing below ⬇️
I wasn't planning on publishing it yet, so please excuse the shoddiness of it! But I'm keen t share.
All the code was generated Cursor with Claude 3.5, and ShadCN components, hence the single commit.
Explanation of relative distancing below ⬇️