feminist-bible-phase-2 icon indicating copy to clipboard operation
feminist-bible-phase-2 copied to clipboard

feat: forum post component

Open priyanshisharma opened this issue 4 years ago • 6 comments

Fixes #190

Description
Created a forum post component according to the figma design as per the scss module approach i.e. currently in use.

Screenshots

Web View
Screen Shot 2021-02-03 at 12 05 58 PM

Mobile View
Screen Shot 2021-02-03 at 12 05 44 PM

Addition Information (if any)
The horizontal line doesn't span across the entire width, when the component is used in a wider space. Screen Shot 2021-02-03 at 12 06 11 PM

priyanshisharma avatar Feb 03 '21 06:02 priyanshisharma

Hi @priyanshisharma. Good job with the component. It's around 70% pixel perfect.

I saw a few errors in the way the markup is structured. Please refer to the image below. It will give you an idea of how things should be divided.

Blue/Orange blocks are the man blocks. Red are the inner divisions.

If you refer to the Figma design, you will see that we have used auto-layout (similar to display flex) in the main blocks. So in the first block, the padding will be 20px, gutter space (space b/w the red blocks) is going to be 17px. The horizontal line can be the border-bottom of the first block.

If you fix your markup, you won't have to use <br /> tags anywhere. It's not a good practice to use <br /> tags for spacing btw.

Forum-Post (1)

salil-naik avatar Feb 11 '21 18:02 salil-naik

Thanks for such a well written review @salil-naik ! I've made the corresponding changes, the component appears as follows now. 😄 Screenshot 2021-02-12 at 1 11 14 AM

priyanshisharma avatar Feb 11 '21 19:02 priyanshisharma

@priyanshisharma Could you just add the component to /forum route so it could be viewed in the browser in the buil preview?

pkspyder007 avatar Mar 25 '21 17:03 pkspyder007

@priyanshisharma I think the reason why these icons are not looking good is that they are small resolution images taken from figma design. Replacing them will svg icons would be a better solution so they don't get pixelated.

Both the icons social and action ones.

pkspyder007 avatar Mar 29 '21 15:03 pkspyder007

@pkspyder007 where can I get the svg files for the action buttons from? 😅

priyanshisharma avatar Apr 02 '21 11:04 priyanshisharma

@priyanshisharma check out this site https://feathericons.com/

pkspyder007 avatar Apr 02 '21 16:04 pkspyder007