-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(feature tour): FF for hero (#1508)
* fix(homepagepreview): add default if no variant * build(inView): allows us to know if elem is in view * chore(heroBannerToolTipImage): add in required image * feat(hero feature tour): add in storybook for feature tour * feat(hero): add in functionality within hero body * fix(feature tour homepage): no need beacon * fix(homepage preview): unintended rebase commit * fix(feature tour): fix rebase issues * fix(hero-body): fix bugs from rebase * fix(feature tour): styling fixes) * fix(feature tour): fix feature tour render when component is loading * fix(feature tour): fix tip badge being shown * fix(edithomepage): fix padding issue * fix(featureTour): attempt ui bug w useEffect * fix(hero body): add deps --------- Co-authored-by: seaerchin <[email protected]>
- Loading branch information
1 parent
83cd575
commit fe243e9
Showing
10 changed files
with
228 additions
and
63 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Icon, Text } from "@chakra-ui/react" | ||
import { Badge } from "@opengovsg/design-system-react" | ||
import { BiCheck } from "react-icons/bi" | ||
|
||
export const HeroOptionsFeatureTourContent = (): JSX.Element => { | ||
return ( | ||
<> | ||
<Badge | ||
mt="2rem" | ||
variant="subtle" | ||
display="inline-flex" | ||
columnGap="0.5rem" | ||
alignItems="center" | ||
colorScheme="brand.secondary" | ||
> | ||
<Icon as={BiCheck} h="1rem" w="1rem" /> | ||
<Text textStyle="caption-1">New feature</Text> | ||
</Badge> | ||
<Text textStyle="subhead-1" mt="1rem" color="base.content.default"> | ||
{" "} | ||
Now you can customise your hero banner with various layouts!{" "} | ||
</Text> | ||
<Text textStyle="body-2" mt="0.5rem" color="base.content.default"> | ||
{`We've added some variations to how you can display your hero section. | ||
Try them out here.`} | ||
</Text> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters