-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(herobody): add first pass of layout #1473
Conversation
591fa75
to
81d9bf2
Compare
ps, missing 1 title/subtitle on side layuot - adding now |
af1bad8
to
2686bb0
Compare
size="half" | ||
alignment="left" | ||
backgroundColor="black" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This resets the values every time the user selects a different option then comes back - are we okay with this behaviour?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is gonna be fixed in an upcoming PR - we're gonna roll out the new stuff totally (behind a feature flag) so this intermediate state won't be seen
alignment = "left", | ||
backgroundColor = "black", | ||
}: HeroSideSectionProps) => { | ||
const [, setSectionSize] = useState(size) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need the set state without declaring the state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ps, i only added the panel - this means that the preview stuff here isn't working (it's a stop gap).
the actual preview component for these are gonna be added in a follow up and htis will be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah okay
<Box w="100%"> | ||
<Text textStyle="subhead-1">Section background colour</Text> | ||
<HStack spacing="0.75rem" alignItems="flex-start"> | ||
<IconButton |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe can store as [{}] and .map
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ps, could you go into a bit more detail her?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thisis a nit: I see we are doing 3 times.
Instead can define the properties above as array of objects and then map over it. Might be neater
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i will put as a function cos it relies on the icon colour (black/gray/white)
d55f14e
to
4ce3229
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Problem
we need to add new layout options for hero banner
Solution
Screenshots
Tests