Skip to content

43 create listing page - basic components#58

Open
erikagosti wants to merge 20 commits into
mainfrom
43-create-listing-page
Open

43 create listing page - basic components#58
erikagosti wants to merge 20 commits into
mainfrom
43-create-listing-page

Conversation

@erikagosti
Copy link
Copy Markdown
Contributor

@erikagosti erikagosti commented May 5, 2026

Screenshot 2026-05-08 at 2 53 24 AM Screenshot 2026-05-08 at 2 52 48 AM Screenshot 2026-05-08 at 2 52 33 AM

WIP connect with backend

@erikagosti erikagosti force-pushed the 43-create-listing-page branch from 43562eb to 4d4cdd2 Compare May 8, 2026 00:14
Copy link
Copy Markdown
Contributor

@naomitzhao naomitzhao left a comment

Choose a reason for hiding this comment

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

Looks pretty good, great work @erikagosti ! Just left some comments about best practices, mainly styling stuff. Also, please format all of your files using the Prettier extension. See the slide below from Meeting #10:

Image

When you're done addressing all comments, feel free to re-request a review from me or ping me on Slack!

Comment thread client/src/app/(pages)/create-post/page.tsx Outdated
Comment thread client/src/app/(pages)/create-post/page.tsx Outdated
Comment thread client/src/app/(pages)/create-post/page.module.scss Outdated
Comment thread client/src/app/(pages)/create-post/page.module.scss Outdated
Comment thread client/src/app/(pages)/create-post/page.tsx Outdated
Comment thread client/src/app/(pages)/create-post/page.module.scss Outdated
Comment on lines +36 to +44
.page {
min-height: 100vh;
background: #f7f7f7;
padding: 32px 48px 72px;
color: #1f1f1f;
margin-top: 100px;
max-width: 1240px;
margin-inline: auto;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of using margins to define vertical spacing between elements, which can get a bit annoying to keep track of, can we use a flexbox for the page layout? For example, if we were to make the page component a flexbox:

.page {
   display: flex;
   flex-direction: column;
   gap: 80px;
}

Note that the gap on Figma is 71px, I'm just using 80px here for cleaner rounded values :P

In general, we should avoid using margin to create layouts if there's a way to achieve it with flexbox instead.

If you combine this with my previous comment about nesting another container inside, these styles should probably be applied on the inner container

You should also be able to get rid of the margin-inline: auto on line 43 as well with these fixes.

Copy link
Copy Markdown
Contributor

@naomitzhao naomitzhao May 11, 2026

Choose a reason for hiding this comment

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

Just bumping this! Unless you have a specific reason not to make the page layout a flexbox, I think it would be best practice to use a flexbox instead of relying on the .actions margin-top to space everything :)

Comment thread client/src/app/(pages)/create-post/page.module.scss Outdated
Comment thread client/src/app/(pages)/create-post/page.module.scss Outdated
Comment thread client/src/app/(pages)/create-post/page.module.scss Outdated
@erikagosti erikagosti requested a review from naomitzhao May 11, 2026 23:16
Copy link
Copy Markdown
Contributor

@naomitzhao naomitzhao left a comment

Choose a reason for hiding this comment

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

Yay, looking a lot better! Still a few more things to fix but you're almost there :D

Comment thread client/src/app/(pages)/create-post/page.tsx Outdated
Comment on lines +36 to +44
.page {
min-height: 100vh;
background: #f7f7f7;
padding: 32px 48px 72px;
color: #1f1f1f;
margin-top: 100px;
max-width: 1240px;
margin-inline: auto;
}
Copy link
Copy Markdown
Contributor

@naomitzhao naomitzhao May 11, 2026

Choose a reason for hiding this comment

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

Just bumping this! Unless you have a specific reason not to make the page layout a flexbox, I think it would be best practice to use a flexbox instead of relying on the .actions margin-top to space everything :)

Comment thread client/src/app/(pages)/create-post/page.module.scss Outdated
Comment thread client/src/app/(pages)/create-post/page.module.scss Outdated
@erikagosti erikagosti requested a review from naomitzhao May 12, 2026 19:32
Copy link
Copy Markdown
Contributor

@naomitzhao naomitzhao left a comment

Choose a reason for hiding this comment

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

Just noticed a few spacing things I missed from my previous reviews, my bad 😣 but these should be the last things before I can approve!

Comment thread client/src/app/(pages)/create-post/page.module.scss
Comment thread client/src/app/(pages)/create-post/page.module.scss
Comment thread client/src/app/(pages)/create-post/page.module.scss
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