-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MarkdownBlockGroup component #48
Comments
This looks good, but here are a few things to consider. And I think it's more educational if I write the changes and reasons here - rather than just making the changes. In terms of the UI design, the number across needs to be either maxCols (or targetCols or just cols ) or 1 wide when width less than condensedWidthBreakPoint. It disrupts the ui for it to be 3 and 1, or 2 and 1. Also, like other block components, there is theme.maxPanelWidth that is the maxmum width. See text-block for example. Instead of children, use blocks as the prop, and like app/web-componnents/home.js this component can take named blocks from props and look up the corresponding react component. -- this is so the data for what's in the MarkDownBlockGroup can come from the database. Perhaps Blocks needs to be exported or become a separate component. In enciv-home, and in the future in civil-pursuit - we want to reserve .jsx for old react class components. for functional react components we want to use .js -- they all compiles either way. It's helps differentiate, and it's just a style that was settled on by team members in the undebate project. I think this needs to support mode for subject color and background color. |
Thanks for the input! This clarifies things a bit - I updated the specs to take these into consideration. |
|
@RobH0 What is the status of this? If you are not going to be able to work on it, can you unassign yourself or let me know? Thanks. |
Hi @ddfridley, sorry for the late reply. Just want to confirm that I am still working this issue. I've been waiting for issue #45 to be completed so I can finish the story to mockup the example 1 screenshot within this issue. |
Specs
Create a new component that displays multiple MarkdownBlocks.
Requirements
Note: These are only really needed to display in home.stories.js - the component can still be worked on without these.
Tasks
enciv-home/app/web-components/home.js
Line 10 in a11a51b
Figma
Example 1
Example 2
The text was updated successfully, but these errors were encountered: