@hellobetterdigitalnz/selwynui 0.0.1-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -0
- package/dist/App.d.ts +2 -0
- package/dist/Components/DataDisplay/DetailsCard/DetailsCard.d.ts +3 -0
- package/dist/Components/DataDisplay/DetailsCard/DetailsCardProps.d.ts +10 -0
- package/dist/Components/DataDisplay/ImageContent/ImageContent.d.ts +3 -0
- package/dist/Components/DataDisplay/ImageContent/ImageContentMaskingImages.d.ts +2 -0
- package/dist/Components/DataDisplay/ImageContent/ImageContentProps.d.ts +27 -0
- package/dist/Components/DataDisplay/IntroBlock/IntroBlock.d.ts +3 -0
- package/dist/Components/DataDisplay/IntroBlock/IntroBlockProps.d.ts +8 -0
- package/dist/Components/DataDisplay/KPIBlock/KPIBlock.d.ts +3 -0
- package/dist/Components/DataDisplay/KPIBlock/KPIBlockProps.d.ts +11 -0
- package/dist/Components/DataDisplay/Pathway/Pathway.d.ts +3 -0
- package/dist/Components/DataDisplay/Pathway/PathwayProps.d.ts +15 -0
- package/dist/Components/DataDisplay/PromoBannerBlock/PromoBannerBlock.d.ts +3 -0
- package/dist/Components/DataDisplay/PromoBannerBlock/PromoBannerBlockProps.d.ts +14 -0
- package/dist/Components/DataDisplay/PromoBannerBlock/promo-banner-bg-design.d.ts +2 -0
- package/dist/Components/DataDisplay/index.d.ts +10 -0
- package/dist/Components/Form/Button/Button.d.ts +3 -0
- package/dist/Components/Form/Button/ButtonProps.d.ts +14 -0
- package/dist/Components/Form/index.d.ts +2 -0
- package/dist/Components/Icons/Arrows/ArrowLeft/ArrowLeft.d.ts +3 -0
- package/dist/Components/Icons/Arrows/ArrowRight/ArrowRight.d.ts +3 -0
- package/dist/Components/Icons/Arrows/ArrowSquareOut/ArrowSquareOut.d.ts +3 -0
- package/dist/Components/Icons/Arrows/ArrowsDownUp/ArrowsDownUp.d.ts +3 -0
- package/dist/Components/Icons/Arrows/ArrowsOutCardinal/ArrowsOutCardinal.d.ts +3 -0
- package/dist/Components/Icons/Arrows/CaretCircleRight/CaretCircleRight.d.ts +3 -0
- package/dist/Components/Icons/Arrows/CaretDown/CaretDown.d.ts +3 -0
- package/dist/Components/Icons/Arrows/CaretLeft/CaretLeft.d.ts +3 -0
- package/dist/Components/Icons/Arrows/CaretRight/CaretRight.d.ts +3 -0
- package/dist/Components/Icons/Arrows/CaretUp/CaretUp.d.ts +3 -0
- package/dist/Components/Icons/Arrows/CaretUpDown/CaretUpDown.d.ts +3 -0
- package/dist/Components/Icons/Brands/FacebookLogo/FacebookLogo.d.ts +3 -0
- package/dist/Components/Icons/Brands/InstagramLogo/InstagramLogo.d.ts +3 -0
- package/dist/Components/Icons/Brands/LinkedinLogo/LinkedinLogo.d.ts +3 -0
- package/dist/Components/Icons/Brands/WindowsLogo/WindowsLogo.d.ts +3 -0
- package/dist/Components/Icons/Commerce/Backpack/Backpack.d.ts +3 -0
- package/dist/Components/Icons/Commerce/BowlSteam/BowlSteam.d.ts +3 -0
- package/dist/Components/Icons/Commerce/Bread/Bread.d.ts +3 -0
- package/dist/Components/Icons/Commerce/Cheers/Cheers.d.ts +3 -0
- package/dist/Components/Icons/Commerce/ChefHat/ChefHat.d.ts +3 -0
- package/dist/Components/Icons/Commerce/Coffee/Coffee.d.ts +3 -0
- package/dist/Components/Icons/Commerce/CreditCard/CreditCard.d.ts +3 -0
- package/dist/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.d.ts +3 -0
- package/dist/Components/Icons/Commerce/Grains/Grains.d.ts +3 -0
- package/dist/Components/Icons/Commerce/Scale/Scale.d.ts +3 -0
- package/dist/Components/Icons/Commerce/StoreFront/StoreFront.d.ts +3 -0
- package/dist/Components/Icons/Communication/AddressBook/AddressBook.d.ts +3 -0
- package/dist/Components/Icons/Communication/AddressBook/AddressBook.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.d.ts +3 -0
- package/dist/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/Asterisk/Asterisk.d.ts +3 -0
- package/dist/Components/Icons/Communication/Asterisk/Asterisk.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/At/At.d.ts +3 -0
- package/dist/Components/Icons/Communication/At/At.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/Broadcast/Broadcast.d.ts +3 -0
- package/dist/Components/Icons/Communication/Broadcast/Broadcast.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/Chat/Chat.d.ts +3 -0
- package/dist/Components/Icons/Communication/Chat/Chat.stories.d.ts +21 -0
- package/dist/Components/Icons/Communication/ChatCircleText/ChatCircleText.d.ts +3 -0
- package/dist/Components/Icons/Communication/EnvelopeSimple/EnvelopeSimple.d.ts +3 -0
- package/dist/Components/Icons/Communication/Export/Export.d.ts +3 -0
- package/dist/Components/Icons/Communication/Phone/Phone.d.ts +3 -0
- package/dist/Components/Icons/Communication/ThumbsUp/ThumbsUp.d.ts +3 -0
- package/dist/Components/Icons/Communication/Translate/Translate.d.ts +3 -0
- package/dist/Components/Icons/Design/DropHalfBottom/DropHalfBottom.d.ts +3 -0
- package/dist/Components/Icons/Design/Eye/Eye.d.ts +3 -0
- package/dist/Components/Icons/Design/EyeSlash/EyeSlash.d.ts +3 -0
- package/dist/Components/Icons/Design/GearFine/GearFine.d.ts +3 -0
- package/dist/Components/Icons/Design/PencilLine/PencilLine.d.ts +3 -0
- package/dist/Components/Icons/Design/PencilSimple/PencilSimple.d.ts +3 -0
- package/dist/Components/Icons/Design/Ruler/Ruler.d.ts +3 -0
- package/dist/Components/Icons/Design/SquaresFour/SquaresFour.d.ts +3 -0
- package/dist/Components/Icons/Education/BookOpenText/BookOpenText.d.ts +3 -0
- package/dist/Components/Icons/Education/BookmarkSimple/BookmarkSimple.d.ts +3 -0
- package/dist/Components/Icons/Education/Certificate/Certificate.d.ts +3 -0
- package/dist/Components/Icons/Education/GraduationCap/GraduationCap.d.ts +3 -0
- package/dist/Components/Icons/Games/Cricket/Cricket.d.ts +3 -0
- package/dist/Components/Icons/Games/Football/Football.d.ts +3 -0
- package/dist/Components/Icons/Games/Golf/Golf.d.ts +3 -0
- package/dist/Components/Icons/HealthAndWellness/Barbell/Barbell.d.ts +3 -0
- package/dist/Components/Icons/IconProps.d.ts +4 -0
- package/dist/Components/Icons/MapAndTravel/Barn/Barn.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/Bicycle/Bicycle.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/Bus/Bus.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/Car/Car.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/ChargingStation/ChargingStation.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/Farm/Farm.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/Globe/Globe.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/Goggles/Goggles.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/House/House.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/HouseSimple/HouseSimple.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/MapPin/MapPin.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/MapTriFold/MapTriFold.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/Path/Path.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/RoadHorizon/RoadHorizon.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/SteeringWheel/SteeringWheel.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/SwimmingPool/SwimmingPool.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/Tram/Tram.d.ts +3 -0
- package/dist/Components/Icons/MapAndTravel/Van/Van.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/Calculator/Calculator.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/ChartBar/ChartBar.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/ChartBarHorizontal/ChartBarHorizontal.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/ChartLine/ChartLine.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/ChartLineUp/ChartLineUp.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/ChartPie/ChartPie.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/Minus/Minus.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/MinusCircle/MinusCircle.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/NumberSquareThree/NumberSquareThree.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/Plus/Plus.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/PlusCircle/PlusCircle.d.ts +3 -0
- package/dist/Components/Icons/MathsAndFinance/XIcon/XIcon.d.ts +3 -0
- package/dist/Components/Icons/Media/Camera/Camera.d.ts +3 -0
- package/dist/Components/Icons/Media/DiscoBall/DiscoBall.d.ts +3 -0
- package/dist/Components/Icons/Media/FilmStrip/FilmStrip.d.ts +3 -0
- package/dist/Components/Icons/Media/Microphone/Microphone.d.ts +3 -0
- package/dist/Components/Icons/Media/MusicNotes/MusicNotes.d.ts +3 -0
- package/dist/Components/Icons/Media/PlayCircle/PlayCircle.d.ts +3 -0
- package/dist/Components/Icons/Media/SlidersHorizontal/SlidersHorizontal.d.ts +3 -0
- package/dist/Components/Icons/Media/StopCircle/StopCircle.d.ts +3 -0
- package/dist/Components/Icons/Media/VideoCamera/VideoCamera.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/BuildinfOffice/BuildingOffice.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/Copy/Copy.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/FileText/FileText.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/Files/Files.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/FloppyDisk/FloppyDisk.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/Folder/Folder.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/FolderSimplePlus/FolderSimplePlus.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/Folders/Folders.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/List/List.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/ListBullets/ListBullets.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/ListDashes/ListDashes.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/Printer/Printer.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/TextAa/TextAa.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/TextColumns/TextColumns.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/Trash/Trash.d.ts +3 -0
- package/dist/Components/Icons/OfficeAndEditing/TrashSimple/TrashSimple.d.ts +3 -0
- package/dist/Components/Icons/People/Person/Person.d.ts +3 -0
- package/dist/Components/Icons/People/PersonArmsSpread/PersonArmsSpread.d.ts +3 -0
- package/dist/Components/Icons/People/PersonSimpleBike/PersonSimpleBike.d.ts +3 -0
- package/dist/Components/Icons/People/PersonSimpleSki/PersonSimpleSki.d.ts +3 -0
- package/dist/Components/Icons/People/PersonSimpleWalk/PersonSimpleWalk.d.ts +3 -0
- package/dist/Components/Icons/People/User/User.d.ts +3 -0
- package/dist/Components/Icons/People/UserCircle/UserCircle.d.ts +3 -0
- package/dist/Components/Icons/People/UserSwitch/UserSwitch.d.ts +3 -0
- package/dist/Components/Icons/People/Users/Users.d.ts +3 -0
- package/dist/Components/Icons/SecurityAndWarnings/Info/Info.d.ts +3 -0
- package/dist/Components/Icons/SecurityAndWarnings/Key/Key.d.ts +3 -0
- package/dist/Components/Icons/SecurityAndWarnings/LockKeyOpen/LockKeyOpen.d.ts +3 -0
- package/dist/Components/Icons/SecurityAndWarnings/LockSimple/LockSimple.d.ts +3 -0
- package/dist/Components/Icons/SecurityAndWarnings/Question/Question.d.ts +3 -0
- package/dist/Components/Icons/SecurityAndWarnings/ShieldCheck/ShieldCheck.d.ts +3 -0
- package/dist/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/Bell/Bell.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/Check/Check.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/CheckSquare/CheckSquare.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/CloudCheck/CloudCheck.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/Desktop/Desktop.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/DeviceMobile/DeviceMobile.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/DotSixVertical/DotSixVertical.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/DotsSix/DotsSix.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/DotsThree/DotsThree.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/DotsThreeVertical/DotsThreeVertical.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/DownloadSimple/DownloadSimple.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/Gear/Gear.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/Link/Link.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/RadioButtonIcon/RadioButtonIcon.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/SignIn/SignIn.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/SignOut/SignOut.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/ToggleLeft/ToggleLeft.d.ts +3 -0
- package/dist/Components/Icons/SystemAndDevice/ToggleRight/ToggleRight.d.ts +3 -0
- package/dist/Components/Icons/Time/Calendar/Calendar.d.ts +3 -0
- package/dist/Components/Icons/Time/CalendarBank/CalendarBank.d.ts +3 -0
- package/dist/Components/Icons/Time/CalendarCheck/CalendarCheck.d.ts +3 -0
- package/dist/Components/Icons/Time/CalendarDots/CalendarDots.d.ts +3 -0
- package/dist/Components/Icons/Time/Clock/Clock.d.ts +3 -0
- package/dist/Components/Icons/Time/ClockCounterClockwise/ClockCounterClockwise.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Bird/Bird.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Campfire/Campfire.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/CloudSun/CloudSun.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Cow/Cow.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Dog/Dog.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/FishSimple/FishSimple.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Flower/Flower.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Moon/Moon.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Mountains/Mountains.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Plant/Plant.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Snowflake/Snowflake.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Sparkle/Sparkle.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Sun/Sun.d.ts +3 -0
- package/dist/Components/Icons/WeatherAndNature/Tree/Tree.d.ts +3 -0
- package/dist/Components/Icons/index.d.ts +123 -0
- package/dist/Components/Layout/Footer/Footer.d.ts +3 -0
- package/dist/Components/Layout/Footer/FooterBottom.d.ts +3 -0
- package/dist/Components/Layout/Footer/FooterBottomLeft.d.ts +3 -0
- package/dist/Components/Layout/Footer/FooterBottomLeftProps.d.ts +11 -0
- package/dist/Components/Layout/Footer/FooterBottomProps.d.ts +5 -0
- package/dist/Components/Layout/Footer/FooterBottomRight.d.ts +3 -0
- package/dist/Components/Layout/Footer/FooterBottomRightProps.d.ts +6 -0
- package/dist/Components/Layout/Footer/FooterItem.d.ts +3 -0
- package/dist/Components/Layout/Footer/FooterItemProps.d.ts +6 -0
- package/dist/Components/Layout/Footer/FooterMiddle.d.ts +3 -0
- package/dist/Components/Layout/Footer/FooterMiddleProps.d.ts +6 -0
- package/dist/Components/Layout/Footer/FooterProps.d.ts +9 -0
- package/dist/Components/Layout/Footer/FooterTop.d.ts +3 -0
- package/dist/Components/Layout/Footer/FooterTopProps.d.ts +7 -0
- package/dist/Components/Layout/Footer/footer-bg-design.d.ts +2 -0
- package/dist/Components/Layout/Header/Header.d.ts +3 -0
- package/dist/Components/Layout/Header/HeaderProps.d.ts +7 -0
- package/dist/Components/Layout/Header/HeaderRight.d.ts +3 -0
- package/dist/Components/Layout/Header/HeaderRightItem.d.ts +3 -0
- package/dist/Components/Layout/Header/HeaderRightItemProps.d.ts +11 -0
- package/dist/Components/Layout/Header/HeaderRightProps.d.ts +5 -0
- package/dist/Components/Layout/Header/MagnifyingGlass/MagnifyingGlass.d.ts +2 -0
- package/dist/Components/Layout/Header/MegaMenu/MegaMenu.d.ts +2 -0
- package/dist/Components/Layout/Header/MegaMenu/MegaMenuProps.d.ts +4 -0
- package/dist/Components/Layout/HeroBanner/HeroBanner.d.ts +3 -0
- package/dist/Components/Layout/HeroBanner/HeroBannerProps.d.ts +9 -0
- package/dist/Components/Layout/HeroBanner/LargeHeroIcon.d.ts +2 -0
- package/dist/Components/Layout/index.d.ts +22 -0
- package/dist/Components/Shared/Container/Container.d.ts +3 -0
- package/dist/Components/Shared/Container/ContainerProps.d.ts +6 -0
- package/dist/Components/Shared/ElementHolder/ElementHolder.d.ts +3 -0
- package/dist/Components/Shared/ElementHolder/ElementHolderProps.d.ts +15 -0
- package/dist/Components/Shared/index.d.ts +4 -0
- package/dist/img/card-one.png +0 -0
- package/dist/img/card-three.png +0 -0
- package/dist/img/card-two.png +0 -0
- package/dist/img/footer-bg-design.svg +14 -0
- package/dist/img/footer-logo.svg +9 -0
- package/dist/img/promo-banner-image.svg +9 -0
- package/dist/img/visit-brand-piller.svg +6 -0
- package/dist/img/waikirikiri-full-logo.svg +23 -0
- package/dist/index.cjs.js +14 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.d.ts +2 -0
- package/dist/index.es.js +6787 -0
- package/dist/index.es.js.map +1 -0
- package/dist/main.d.ts +0 -0
- package/dist/selwynui.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +73 -0
- package/src/Components/DataDisplay/Accordion/Accordion.stories.tsx +90 -0
- package/src/Components/DataDisplay/Accordion/Accordion.tsx +57 -0
- package/src/Components/DataDisplay/Accordion/AccordionContext.tsx +11 -0
- package/src/Components/DataDisplay/Accordion/AccordionContextInterface.tsx +8 -0
- package/src/Components/DataDisplay/Accordion/AccordionItem.tsx +159 -0
- package/src/Components/DataDisplay/Accordion/AccordionItemProps.tsx +20 -0
- package/src/Components/DataDisplay/Accordion/AccordionProps.tsx +13 -0
- package/src/Components/DataDisplay/Accordion/AccordionProvider.tsx +66 -0
- package/src/Components/DataDisplay/Accordion/AccordionProviderInterface.tsx +9 -0
- package/src/Components/DataDisplay/Accordion/accordion-bg-design.tsx +14 -0
- package/src/Components/DataDisplay/Accordion/accordion.module.scss +90 -0
- package/src/Components/DataDisplay/DetailsCard/DetailsCard.stories.tsx +39 -0
- package/src/Components/DataDisplay/DetailsCard/DetailsCard.tsx +87 -0
- package/src/Components/DataDisplay/DetailsCard/DetailsCardProps.tsx +12 -0
- package/src/Components/DataDisplay/DetailsCard/detailsCard.module.scss +123 -0
- package/src/Components/DataDisplay/ImageContent/ImageContent.stories.tsx +150 -0
- package/src/Components/DataDisplay/ImageContent/ImageContent.tsx +146 -0
- package/src/Components/DataDisplay/ImageContent/ImageContentMaskingImages.tsx +334 -0
- package/src/Components/DataDisplay/ImageContent/ImageContentProps.tsx +42 -0
- package/src/Components/DataDisplay/ImageContent/imageContent.module.scss +343 -0
- package/src/Components/DataDisplay/IntroBlock/IntroBlock.stories.tsx +37 -0
- package/src/Components/DataDisplay/IntroBlock/IntroBlock.tsx +37 -0
- package/src/Components/DataDisplay/IntroBlock/IntroBlockProps.tsx +10 -0
- package/src/Components/DataDisplay/IntroBlock/introBlock.module.scss +37 -0
- package/src/Components/DataDisplay/KPIBlock/KPIBlock.stories.tsx +120 -0
- package/src/Components/DataDisplay/KPIBlock/KPIBlock.tsx +42 -0
- package/src/Components/DataDisplay/KPIBlock/KPIBlockProps.tsx +13 -0
- package/src/Components/DataDisplay/KPIBlock/kpiBlock.module.scss +78 -0
- package/src/Components/DataDisplay/Pathway/Pathway.stories.tsx +27 -0
- package/src/Components/DataDisplay/Pathway/Pathway.tsx +83 -0
- package/src/Components/DataDisplay/Pathway/PathwayProps.tsx +17 -0
- package/src/Components/DataDisplay/Pathway/pathway.module.scss +124 -0
- package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.stories.tsx +56 -0
- package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.tsx +37 -0
- package/src/Components/DataDisplay/PathwayBlock/PathwayBlockProps.tsx +13 -0
- package/src/Components/DataDisplay/PathwayBlock/pathwayBlock.module.scss +34 -0
- package/src/Components/DataDisplay/PromoBannerBlock/PromoBanner.stories.tsx +45 -0
- package/src/Components/DataDisplay/PromoBannerBlock/PromoBannerBlock.tsx +77 -0
- package/src/Components/DataDisplay/PromoBannerBlock/PromoBannerBlockProps.tsx +16 -0
- package/src/Components/DataDisplay/PromoBannerBlock/brand-piller.tsx +50 -0
- package/src/Components/DataDisplay/PromoBannerBlock/promo-banner-bg-design.tsx +14 -0
- package/src/Components/DataDisplay/PromoBannerBlock/promoBanner.module.scss +181 -0
- package/src/Components/DataDisplay/TestimonyCard/TestimonyCard.stories.tsx +46 -0
- package/src/Components/DataDisplay/TestimonyCard/TestimonyCard.tsx +64 -0
- package/src/Components/DataDisplay/TestimonyCard/TestimonyCardProps.tsx +13 -0
- package/src/Components/DataDisplay/TestimonyCard/testimonyCard.module.scss +93 -0
- package/src/Components/DataDisplay/index.ts +19 -0
- package/src/Components/Form/Button/Button.stories.tsx +55 -0
- package/src/Components/Form/Button/Button.tsx +122 -0
- package/src/Components/Form/Button/ButtonProps.tsx +27 -0
- package/src/Components/Form/Button/button.module.scss +91 -0
- package/src/Components/Form/index.ts +2 -0
- package/src/Components/Icons/Arrows/ArrowLeft/ArrowLeft.tsx +49 -0
- package/src/Components/Icons/Arrows/ArrowRight/ArrowRight.tsx +47 -0
- package/src/Components/Icons/Arrows/ArrowSquareOut/ArrowSquareOut.tsx +48 -0
- package/src/Components/Icons/Arrows/ArrowsDownUp/ArrowsDownUp.tsx +49 -0
- package/src/Components/Icons/Arrows/ArrowsOutCardinal/ArrowsOutCardinal.tsx +50 -0
- package/src/Components/Icons/Arrows/CaretCircleRight/CaretCircleRight.tsx +37 -0
- package/src/Components/Icons/Arrows/CaretDown/CaretDown.tsx +49 -0
- package/src/Components/Icons/Arrows/CaretLeft/CaretLeft.tsx +102 -0
- package/src/Components/Icons/Arrows/CaretRight/CaretRight.tsx +102 -0
- package/src/Components/Icons/Arrows/CaretUp/CaretUp.tsx +49 -0
- package/src/Components/Icons/Arrows/CaretUpDown/CaretUpDown.tsx +49 -0
- package/src/Components/Icons/Brands/FacebookLogo/FacebookLogo.tsx +35 -0
- package/src/Components/Icons/Brands/InstagramLogo/InstagramLogo.tsx +35 -0
- package/src/Components/Icons/Brands/LinkedinLogo/LinkedinLogo.tsx +35 -0
- package/src/Components/Icons/Brands/WindowsLogo/WindowsLogo.tsx +105 -0
- package/src/Components/Icons/Commerce/Backpack/Backpack.tsx +54 -0
- package/src/Components/Icons/Commerce/BowlSteam/BowlSteam.tsx +34 -0
- package/src/Components/Icons/Commerce/Bread/Bread.tsx +34 -0
- package/src/Components/Icons/Commerce/Cheers/Cheers.tsx +34 -0
- package/src/Components/Icons/Commerce/ChefHat/ChefHat.tsx +34 -0
- package/src/Components/Icons/Commerce/Coffee/Coffee.tsx +54 -0
- package/src/Components/Icons/Commerce/CreditCard/CreditCard.tsx +54 -0
- package/src/Components/Icons/Commerce/CurrencyDollarSimple/CurrencyDollarSimple.tsx +105 -0
- package/src/Components/Icons/Commerce/Grains/Grains.tsx +54 -0
- package/src/Components/Icons/Commerce/Scale/Scale.tsx +61 -0
- package/src/Components/Icons/Commerce/StoreFront/StoreFront.tsx +54 -0
- package/src/Components/Icons/Communication/AddressBook/AddressBook.stories.ts +28 -0
- package/src/Components/Icons/Communication/AddressBook/AddressBook.tsx +50 -0
- package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.stories.ts +28 -0
- package/src/Components/Icons/Communication/AsterickSimple/AsteriskSimple.tsx +49 -0
- package/src/Components/Icons/Communication/Asterisk/Asterisk.stories.ts +28 -0
- package/src/Components/Icons/Communication/Asterisk/Asterisk.tsx +50 -0
- package/src/Components/Icons/Communication/At/At.stories.ts +28 -0
- package/src/Components/Icons/Communication/At/At.tsx +49 -0
- package/src/Components/Icons/Communication/Broadcast/Broadcast.stories.ts +27 -0
- package/src/Components/Icons/Communication/Broadcast/Broadcast.tsx +49 -0
- package/src/Components/Icons/Communication/Chat/Chat.stories.ts +28 -0
- package/src/Components/Icons/Communication/Chat/Chat.tsx +49 -0
- package/src/Components/Icons/Communication/ChatCircleText/ChatCircleText.tsx +87 -0
- package/src/Components/Icons/Communication/EnvelopeSimple/EnvelopeSimple.tsx +52 -0
- package/src/Components/Icons/Communication/Export/Export.tsx +52 -0
- package/src/Components/Icons/Communication/Phone/Phone.tsx +54 -0
- package/src/Components/Icons/Communication/ThumbsUp/ThumbsUp.tsx +47 -0
- package/src/Components/Icons/Communication/Translate/Translate.tsx +51 -0
- package/src/Components/Icons/Design/DropHalfBottom/DropHalfBottom.tsx +37 -0
- package/src/Components/Icons/Design/Eye/Eye.tsx +105 -0
- package/src/Components/Icons/Design/EyeSlash/EyeSlash.tsx +105 -0
- package/src/Components/Icons/Design/GearFine/GearFine.tsx +105 -0
- package/src/Components/Icons/Design/PencilLine/PencilLine.tsx +63 -0
- package/src/Components/Icons/Design/PencilSimple/PencilSimple.tsx +63 -0
- package/src/Components/Icons/Design/Ruler/Ruler.tsx +63 -0
- package/src/Components/Icons/Design/SquaresFour/SquaresFour.tsx +54 -0
- package/src/Components/Icons/Education/BookOpenText/BookOpenText.tsx +63 -0
- package/src/Components/Icons/Education/BookmarkSimple/BookmarkSimple.tsx +44 -0
- package/src/Components/Icons/Education/Certificate/Certificate.tsx +56 -0
- package/src/Components/Icons/Education/GraduationCap/GraduationCap.tsx +105 -0
- package/src/Components/Icons/Games/Cricket/Cricket.tsx +23 -0
- package/src/Components/Icons/Games/Football/Football.tsx +47 -0
- package/src/Components/Icons/Games/Golf/Golf.tsx +34 -0
- package/src/Components/Icons/HealthAndWellness/Barbell/Barbell.tsx +36 -0
- package/src/Components/Icons/IconProps.tsx +5 -0
- package/src/Components/Icons/MapAndTravel/Barn/Barn.tsx +34 -0
- package/src/Components/Icons/MapAndTravel/Bicycle/Bicycle.tsx +54 -0
- package/src/Components/Icons/MapAndTravel/Bus/Bus.tsx +54 -0
- package/src/Components/Icons/MapAndTravel/Car/Car.tsx +54 -0
- package/src/Components/Icons/MapAndTravel/ChargingStation/ChargingStation.tsx +54 -0
- package/src/Components/Icons/MapAndTravel/Farm/Farm.tsx +34 -0
- package/src/Components/Icons/MapAndTravel/Globe/Globe.tsx +61 -0
- package/src/Components/Icons/MapAndTravel/Goggles/Goggles.tsx +47 -0
- package/src/Components/Icons/MapAndTravel/House/House.tsx +61 -0
- package/src/Components/Icons/MapAndTravel/HouseSimple/HouseSimple.tsx +61 -0
- package/src/Components/Icons/MapAndTravel/MapPin/MapPin.tsx +53 -0
- package/src/Components/Icons/MapAndTravel/MapTriFold/MapTriFold.tsx +59 -0
- package/src/Components/Icons/MapAndTravel/Path/Path.tsx +35 -0
- package/src/Components/Icons/MapAndTravel/RoadHorizon/RoadHorizon.tsx +35 -0
- package/src/Components/Icons/MapAndTravel/SteeringWheel/SteeringWheel.tsx +61 -0
- package/src/Components/Icons/MapAndTravel/SwimmingPool/SwimmingPool.tsx +36 -0
- package/src/Components/Icons/MapAndTravel/Tram/Tram.tsx +35 -0
- package/src/Components/Icons/MapAndTravel/Van/Van.tsx +60 -0
- package/src/Components/Icons/MathsAndFinance/Calculator/Calculator.tsx +59 -0
- package/src/Components/Icons/MathsAndFinance/ChartBar/ChartBar.tsx +59 -0
- package/src/Components/Icons/MathsAndFinance/ChartBarHorizontal/ChartBarHorizontal.tsx +52 -0
- package/src/Components/Icons/MathsAndFinance/ChartLine/ChartLine.tsx +53 -0
- package/src/Components/Icons/MathsAndFinance/ChartLineUp/ChartLineUp.tsx +47 -0
- package/src/Components/Icons/MathsAndFinance/ChartPie/ChartPie.tsx +54 -0
- package/src/Components/Icons/MathsAndFinance/Minus/Minus.tsx +49 -0
- package/src/Components/Icons/MathsAndFinance/MinusCircle/MinusCircle.tsx +44 -0
- package/src/Components/Icons/MathsAndFinance/NumberSquareThree/NumberSquareThree.tsx +63 -0
- package/src/Components/Icons/MathsAndFinance/Plus/Plus.tsx +63 -0
- package/src/Components/Icons/MathsAndFinance/PlusCircle/PlusCircle.tsx +51 -0
- package/src/Components/Icons/MathsAndFinance/XIcon/XIcon.tsx +107 -0
- package/src/Components/Icons/Media/Camera/Camera.tsx +49 -0
- package/src/Components/Icons/Media/DiscoBall/DiscoBall.tsx +22 -0
- package/src/Components/Icons/Media/FilmStrip/FilmStrip.tsx +45 -0
- package/src/Components/Icons/Media/Microphone/Microphone.tsx +94 -0
- package/src/Components/Icons/Media/MusicNotes/MusicNotes.tsx +42 -0
- package/src/Components/Icons/Media/PlayCircle/PlayCircle.tsx +49 -0
- package/src/Components/Icons/Media/SlidersHorizontal/SlidersHorizontal.tsx +49 -0
- package/src/Components/Icons/Media/StopCircle/StopCircle.tsx +50 -0
- package/src/Components/Icons/Media/VideoCamera/VideoCamera.tsx +105 -0
- package/src/Components/Icons/OfficeAndEditing/BuildinfOffice/BuildingOffice.tsx +22 -0
- package/src/Components/Icons/OfficeAndEditing/Copy/Copy.tsx +47 -0
- package/src/Components/Icons/OfficeAndEditing/FileText/FileText.tsx +35 -0
- package/src/Components/Icons/OfficeAndEditing/Files/Files.tsx +49 -0
- package/src/Components/Icons/OfficeAndEditing/FloppyDisk/FloppyDisk.tsx +49 -0
- package/src/Components/Icons/OfficeAndEditing/Folder/Folder.tsx +61 -0
- package/src/Components/Icons/OfficeAndEditing/FolderSimplePlus/FolderSimplePlus.tsx +35 -0
- package/src/Components/Icons/OfficeAndEditing/Folders/Folders.tsx +47 -0
- package/src/Components/Icons/OfficeAndEditing/List/List.tsx +46 -0
- package/src/Components/Icons/OfficeAndEditing/ListBullets/ListBullets.tsx +59 -0
- package/src/Components/Icons/OfficeAndEditing/ListDashes/ListDashes.tsx +59 -0
- package/src/Components/Icons/OfficeAndEditing/Printer/Printer.tsx +48 -0
- package/src/Components/Icons/OfficeAndEditing/TextAa/TextAa.tsx +63 -0
- package/src/Components/Icons/OfficeAndEditing/TextColumns/TextColumns.tsx +61 -0
- package/src/Components/Icons/OfficeAndEditing/Trash/Trash.tsx +49 -0
- package/src/Components/Icons/OfficeAndEditing/TrashSimple/TrashSimple.tsx +49 -0
- package/src/Components/Icons/People/Person/Person.tsx +35 -0
- package/src/Components/Icons/People/PersonArmsSpread/PersonArmsSpread.tsx +35 -0
- package/src/Components/Icons/People/PersonSimpleBike/PersonSimpleBike.tsx +35 -0
- package/src/Components/Icons/People/PersonSimpleSki/PersonSimpleSki.tsx +34 -0
- package/src/Components/Icons/People/PersonSimpleWalk/PersonSimpleWalk.tsx +35 -0
- package/src/Components/Icons/People/User/User.tsx +61 -0
- package/src/Components/Icons/People/UserCircle/UserCircle.tsx +61 -0
- package/src/Components/Icons/People/UserSwitch/UserSwitch.tsx +61 -0
- package/src/Components/Icons/People/Users/Users.tsx +107 -0
- package/src/Components/Icons/SecurityAndWarnings/Info/Info.tsx +54 -0
- package/src/Components/Icons/SecurityAndWarnings/Key/Key.tsx +54 -0
- package/src/Components/Icons/SecurityAndWarnings/LockKeyOpen/LockKeyOpen.tsx +54 -0
- package/src/Components/Icons/SecurityAndWarnings/LockSimple/LockSimple.tsx +61 -0
- package/src/Components/Icons/SecurityAndWarnings/Question/Question.tsx +53 -0
- package/src/Components/Icons/SecurityAndWarnings/ShieldCheck/ShieldCheck.tsx +89 -0
- package/src/Components/Icons/SecurityAndWarnings/WarningCircle/WarningCircle.tsx +105 -0
- package/src/Components/Icons/SystemAndDevice/Bell/Bell.tsx +49 -0
- package/src/Components/Icons/SystemAndDevice/Check/Check.tsx +49 -0
- package/src/Components/Icons/SystemAndDevice/CheckSquare/CheckSquare.tsx +63 -0
- package/src/Components/Icons/SystemAndDevice/CloudCheck/CloudCheck.tsx +74 -0
- package/src/Components/Icons/SystemAndDevice/Desktop/Desktop.tsx +107 -0
- package/src/Components/Icons/SystemAndDevice/DeviceMobile/DeviceMobile.tsx +78 -0
- package/src/Components/Icons/SystemAndDevice/DotSixVertical/DotSixVertical.tsx +49 -0
- package/src/Components/Icons/SystemAndDevice/DotsSix/DotsSix.tsx +107 -0
- package/src/Components/Icons/SystemAndDevice/DotsThree/DotsThree.tsx +63 -0
- package/src/Components/Icons/SystemAndDevice/DotsThreeVertical/DotsThreeVertical.tsx +63 -0
- package/src/Components/Icons/SystemAndDevice/DownloadSimple/DownloadSimple.tsx +52 -0
- package/src/Components/Icons/SystemAndDevice/Gear/Gear.tsx +61 -0
- package/src/Components/Icons/SystemAndDevice/Link/Link.tsx +54 -0
- package/src/Components/Icons/SystemAndDevice/MagnifyingGlass/MagnifyingGlass.tsx +105 -0
- package/src/Components/Icons/SystemAndDevice/RadioButtonIcon/RadioButtonIcon.tsx +63 -0
- package/src/Components/Icons/SystemAndDevice/SignIn/SignIn.tsx +51 -0
- package/src/Components/Icons/SystemAndDevice/SignOut/SignOut.tsx +49 -0
- package/src/Components/Icons/SystemAndDevice/ToggleLeft/ToggleLeft.tsx +51 -0
- package/src/Components/Icons/SystemAndDevice/ToggleRight/ToggleRight.tsx +51 -0
- package/src/Components/Icons/Time/Calendar/Calendar.tsx +61 -0
- package/src/Components/Icons/Time/CalendarBank/CalendarBank.tsx +105 -0
- package/src/Components/Icons/Time/CalendarCheck/CalendarCheck.tsx +61 -0
- package/src/Components/Icons/Time/CalendarDots/CalendarDots.tsx +28 -0
- package/src/Components/Icons/Time/Clock/Clock.tsx +105 -0
- package/src/Components/Icons/Time/ClockCounterClockwise/ClockCounterClockwise.tsx +74 -0
- package/src/Components/Icons/WeatherAndNature/Bird/Bird.tsx +54 -0
- package/src/Components/Icons/WeatherAndNature/Campfire/Campfire.tsx +35 -0
- package/src/Components/Icons/WeatherAndNature/CloudSun/CloudSun.tsx +49 -0
- package/src/Components/Icons/WeatherAndNature/Cow/Cow.tsx +34 -0
- package/src/Components/Icons/WeatherAndNature/Dog/Dog.tsx +54 -0
- package/src/Components/Icons/WeatherAndNature/FishSimple/FishSimple.tsx +54 -0
- package/src/Components/Icons/WeatherAndNature/Flower/Flower.tsx +47 -0
- package/src/Components/Icons/WeatherAndNature/Moon/Moon.tsx +35 -0
- package/src/Components/Icons/WeatherAndNature/Mountains/Mountains.tsx +49 -0
- package/src/Components/Icons/WeatherAndNature/Plant/Plant.tsx +105 -0
- package/src/Components/Icons/WeatherAndNature/Snowflake/Snowflake.tsx +46 -0
- package/src/Components/Icons/WeatherAndNature/Sparkle/Sparkle.tsx +35 -0
- package/src/Components/Icons/WeatherAndNature/Sun/Sun.tsx +47 -0
- package/src/Components/Icons/WeatherAndNature/Tree/Tree.tsx +84 -0
- package/src/Components/Icons/index.ts +165 -0
- package/src/Components/Layout/Footer/Footer.stories.tsx +178 -0
- package/src/Components/Layout/Footer/Footer.tsx +33 -0
- package/src/Components/Layout/Footer/FooterBottom.tsx +21 -0
- package/src/Components/Layout/Footer/FooterBottomLeft.tsx +31 -0
- package/src/Components/Layout/Footer/FooterBottomLeftProps.tsx +13 -0
- package/src/Components/Layout/Footer/FooterBottomProps.tsx +7 -0
- package/src/Components/Layout/Footer/FooterBottomRight.tsx +47 -0
- package/src/Components/Layout/Footer/FooterBottomRightProps.tsx +7 -0
- package/src/Components/Layout/Footer/FooterItem.tsx +17 -0
- package/src/Components/Layout/Footer/FooterItemProps.tsx +8 -0
- package/src/Components/Layout/Footer/FooterMiddle.tsx +18 -0
- package/src/Components/Layout/Footer/FooterMiddleProps.tsx +8 -0
- package/src/Components/Layout/Footer/FooterProps.tsx +11 -0
- package/src/Components/Layout/Footer/FooterTop.tsx +30 -0
- package/src/Components/Layout/Footer/FooterTopProps.tsx +9 -0
- package/src/Components/Layout/Footer/footer-bg-design.tsx +21 -0
- package/src/Components/Layout/Footer/footer.module.scss +326 -0
- package/src/Components/Layout/Header/Header.stories.tsx +67 -0
- package/src/Components/Layout/Header/Header.tsx +27 -0
- package/src/Components/Layout/Header/HeaderProps.tsx +9 -0
- package/src/Components/Layout/Header/HeaderRight.tsx +12 -0
- package/src/Components/Layout/Header/HeaderRightItem.tsx +21 -0
- package/src/Components/Layout/Header/HeaderRightItemProps.tsx +13 -0
- package/src/Components/Layout/Header/HeaderRightProps.tsx +7 -0
- package/src/Components/Layout/Header/MagnifyingGlass/MagnifyingGlass.tsx +10 -0
- package/src/Components/Layout/Header/MegaMenu/MegaMenu.tsx +98 -0
- package/src/Components/Layout/Header/MegaMenu/MegaMenuProps.tsx +20 -0
- package/src/Components/Layout/Header/MegaMenu/megaMenu.module.scss +163 -0
- package/src/Components/Layout/Header/header.module.scss +115 -0
- package/src/Components/Layout/HeroBanner/HeroBanner.stories.tsx +77 -0
- package/src/Components/Layout/HeroBanner/HeroBanner.tsx +77 -0
- package/src/Components/Layout/HeroBanner/HeroBannerProps.tsx +10 -0
- package/src/Components/Layout/HeroBanner/LargeHeroIcon.tsx +18 -0
- package/src/Components/Layout/HeroBanner/heroBanner.module.scss +179 -0
- package/src/Components/Layout/index.ts +32 -0
- package/src/Components/Shared/Container/Container.tsx +19 -0
- package/src/Components/Shared/Container/ContainerProps.tsx +8 -0
- package/src/Components/Shared/Container/container.module.scss +13 -0
- package/src/Components/Shared/ElementHolder/ElementHolder.tsx +40 -0
- package/src/Components/Shared/ElementHolder/ElementHolderProps.tsx +18 -0
- package/src/Components/Shared/ElementHolder/elementHolder.module.scss +189 -0
- package/src/Components/Shared/Hook/useScrollFadeIn/useScrollFadeIn.tsx +28 -0
- package/src/Components/Shared/PillarIcon/PillarIcon.stories.tsx +31 -0
- package/src/Components/Shared/PillarIcon/PillarIcon.tsx +58 -0
- package/src/Components/Shared/PillarIcon/PillarIconsProps.tsx +5 -0
- package/src/Components/Shared/PillarLogo/PillarLogo.tsx +184 -0
- package/src/Components/Shared/ScrollFadeIn/ScrollFadeIn.tsx +43 -0
- package/src/Components/Shared/ScrollFadeIn/scrollFadeIn.module.scss +19 -0
- package/src/Components/Shared/index.ts +5 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import PathwayBlockProps from "./PathwayBlockProps.tsx";
|
|
2
|
+
import styles from './pathwayBlock.module.scss';
|
|
3
|
+
import Container from "../../Shared/Container/Container.tsx";
|
|
4
|
+
import DetailsCard from "../DetailsCard/DetailsCard.tsx";
|
|
5
|
+
|
|
6
|
+
const PathwayBlock = (props: PathwayBlockProps) => {
|
|
7
|
+
const {
|
|
8
|
+
title = 'Lorem ipsum',
|
|
9
|
+
cards = [],
|
|
10
|
+
pillar = 'visit'
|
|
11
|
+
} = props;
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<div className={`${styles.pathwayBlock} ${pillar ? `${pillar}` : ""}`}>
|
|
15
|
+
<Container>
|
|
16
|
+
<div className={styles.pathwayBlockWrapper}>
|
|
17
|
+
{title &&<h1 className={styles.header}>{title}</h1>}
|
|
18
|
+
<div className={styles.cardsGrid}>
|
|
19
|
+
{cards.map((card, index) => (
|
|
20
|
+
<div className={styles.card}>
|
|
21
|
+
<DetailsCard
|
|
22
|
+
key={index}
|
|
23
|
+
title={card.description}
|
|
24
|
+
image={card.image}
|
|
25
|
+
link="Learn More"
|
|
26
|
+
|
|
27
|
+
/>
|
|
28
|
+
</div>
|
|
29
|
+
))}
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</Container>
|
|
33
|
+
</div>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export default PathwayBlock;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PathwayCard {
|
|
2
|
+
date: string;
|
|
3
|
+
description: string;
|
|
4
|
+
image: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface PathwayBlockProps {
|
|
8
|
+
title?: string;
|
|
9
|
+
cards?: PathwayCard[];
|
|
10
|
+
pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste' | 'main';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default PathwayBlockProps;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.pathwayBlock {
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pathwayBlockWrapper {
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.header {
|
|
12
|
+
font-size: var(--font-size-h3);
|
|
13
|
+
font-weight: var();
|
|
14
|
+
margin: 0 0 72px 0;
|
|
15
|
+
}
|
|
16
|
+
.cardsGrid {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
margin: -12px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.card{
|
|
23
|
+
width: 33.33%;
|
|
24
|
+
padding: 12px;
|
|
25
|
+
|
|
26
|
+
@media (max-width: 999px) {
|
|
27
|
+
width: 50%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media (max-width: 599px) {
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import PromoBannerBlock from './PromoBannerBlock';
|
|
4
|
+
import Button from '../../Form/Button/Button';
|
|
5
|
+
import ArrowRight from "../../Icons/Arrows/ArrowRight/ArrowRight";
|
|
6
|
+
import ElementHolder from "../../Shared/ElementHolder/ElementHolder";
|
|
7
|
+
|
|
8
|
+
const meta: Meta = {
|
|
9
|
+
title: "DataDisplay / PromoBannerBlock",
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: 'fullscreen',
|
|
12
|
+
},
|
|
13
|
+
tags: ["autodocs"],
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default meta;
|
|
17
|
+
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
|
|
20
|
+
const PromoBannerBlockTemplate: Story = {
|
|
21
|
+
render: () => {
|
|
22
|
+
return (
|
|
23
|
+
<ElementHolder paddingTop="none" paddingBottom="none" pillar="visit" level="primary">
|
|
24
|
+
<PromoBannerBlock
|
|
25
|
+
introTitle={'A district that’s growing, grounded, and full of opportunity.'}
|
|
26
|
+
introText={'From the Southern Alps to the sea, Waikirikiri Selwyn’s diverse towns arespread across the Canterbury Plains between two mighty braided rivers. This is where ideas take root, families and businesses grow, and communities come together. We don’t just dream of a better future, we make it happen.'}
|
|
27
|
+
brandPiller={'visit'}
|
|
28
|
+
pillerTitle={'Visit'}
|
|
29
|
+
title={'Spring gardens'}
|
|
30
|
+
boldTitle={'in Selwyn'}
|
|
31
|
+
content={'Visit Selwyn is for those who like to take the back roads, breathe mountain air, and find their own pace. Stay a little longer, explore deeper, and refuel with great kai and local stories along the way.'}
|
|
32
|
+
image={'promo-banner-image.svg'}
|
|
33
|
+
button={
|
|
34
|
+
<Button label={'START EXPLORING'} piller={'visit'} level={'primary'} icon={<ArrowRight />} />
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/>
|
|
38
|
+
</ElementHolder>
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const PromoBannerBlockComponent = {
|
|
44
|
+
...PromoBannerBlockTemplate
|
|
45
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import Container from "../../Shared/Container/Container"
|
|
2
|
+
import PromoBannerBlockProps from "./PromoBannerBlockProps"
|
|
3
|
+
import BrandPillerLogo from "./brand-piller"
|
|
4
|
+
import PromoBannerBgDesign from "./promo-banner-bg-design"
|
|
5
|
+
import styles from "./promoBanner.module.scss"
|
|
6
|
+
|
|
7
|
+
const PromoBannerBlock = (props: PromoBannerBlockProps) => {
|
|
8
|
+
const {
|
|
9
|
+
introTitle,
|
|
10
|
+
introText,
|
|
11
|
+
brandPiller,
|
|
12
|
+
pillerTitle = "visit",
|
|
13
|
+
title,
|
|
14
|
+
boldTitle,
|
|
15
|
+
content,
|
|
16
|
+
image,
|
|
17
|
+
button,
|
|
18
|
+
extraClass,
|
|
19
|
+
} = props
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<div className={styles.promoBannerBlock}>
|
|
23
|
+
<Container>
|
|
24
|
+
<div className={`${styles.promoBlockWrapper} ${extraClass}`}>
|
|
25
|
+
<div className={styles.promoBannerBlockContainer}>
|
|
26
|
+
|
|
27
|
+
<div className={styles.promoBannerTop}>
|
|
28
|
+
<div className={styles.promoBannerTopLeft}>
|
|
29
|
+
<h1>
|
|
30
|
+
{introTitle}
|
|
31
|
+
</h1>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div className={styles.promoBannerVerticalLine}></div>
|
|
35
|
+
|
|
36
|
+
<div className={styles.promoBannerTopRight}>
|
|
37
|
+
<h1>
|
|
38
|
+
{introText}
|
|
39
|
+
</h1>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div className={styles.promoBannerBgDesignContainer}>
|
|
43
|
+
<PromoBannerBgDesign />
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div className={styles.promoBannerBottom}>
|
|
48
|
+
<div className={styles.promoBannerBottomLeft}>
|
|
49
|
+
<div className={styles.promoBannerBrandPiller}>
|
|
50
|
+
<div className={styles.brandPillerLogo}>
|
|
51
|
+
{<BrandPillerLogo brandPiller={brandPiller} />}
|
|
52
|
+
</div>
|
|
53
|
+
{pillerTitle}
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<div className={styles.promoBannerTitleContainer}>
|
|
57
|
+
<h1>{title}</h1>
|
|
58
|
+
<h2>{boldTitle}</h2>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<p>{content}</p>
|
|
62
|
+
|
|
63
|
+
{button}
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<div className={styles.promoBannerBottomRight}>
|
|
67
|
+
<img src={`./img/${image}`} alt="" />
|
|
68
|
+
</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</Container>
|
|
73
|
+
</div>
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export default PromoBannerBlock;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
interface PromoBannerBlockProps {
|
|
4
|
+
introTitle?: string;
|
|
5
|
+
introText?: string;
|
|
6
|
+
brandPiller?: 'visit' | 'live' | 'business' | 'participate' | 'taste' | 'main';
|
|
7
|
+
pillerTitle?: 'Visit' | 'Live' | 'Business' | 'Participate' | 'Taste' | 'Main';
|
|
8
|
+
title?: string;
|
|
9
|
+
boldTitle?: string;
|
|
10
|
+
content?: string;
|
|
11
|
+
image?: string;
|
|
12
|
+
button?: ReactNode;
|
|
13
|
+
extraClass?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default PromoBannerBlockProps;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import PromoBannerBlockProps from "./PromoBannerBlockProps"
|
|
2
|
+
|
|
3
|
+
const BrandPillerLogo = ({ brandPiller }: PromoBannerBlockProps) => {
|
|
4
|
+
if (brandPiller === 'visit') {
|
|
5
|
+
return (<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none">
|
|
6
|
+
<path d="M58.2132 5.43071e-08C26.0583 2.43097e-08 -2.4212e-08 25.9535 -5.40888e-08 57.9793L58.2132 57.9793L58.2132 5.43071e-08Z" fill="currentColor" />
|
|
7
|
+
<path d="M58.2132 61.2518C26.0583 61.2518 2.40646e-07 87.2053 2.10769e-07 119.231L58.2132 119.231L58.2132 61.2518Z" fill="currentColor" />
|
|
8
|
+
<path d="M61.6699 0.0189383C93.8249 0.0189383 119.883 25.9725 119.883 57.9982L61.6699 57.9982L61.6699 0.0189383Z" fill="currentColor" />
|
|
9
|
+
<path d="M61.6699 61.2707C93.8249 61.2707 119.883 87.2242 119.883 119.25L61.6699 119.25L61.6699 61.2707Z" fill="currentColor" />
|
|
10
|
+
</svg>)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (brandPiller === 'taste') {
|
|
14
|
+
return <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none">
|
|
15
|
+
<path d="M61.678 119.25C93.8369 119.25 119.898 93.2965 119.898 61.2707L61.678 61.2707L61.678 119.25Z" fill="currentColor" />
|
|
16
|
+
<path d="M61.678 57.9982C93.8369 57.9982 119.898 32.0447 119.898 0.0189667L61.678 0.0189616L61.678 57.9982Z" fill="currentColor" />
|
|
17
|
+
<path d="M58.2208 119.231C26.0618 119.231 0.000330335 93.2775 0.000333134 61.2518L58.2208 61.2518L58.2208 119.231Z" fill="currentColor" />
|
|
18
|
+
<path d="M58.2208 57.9793C26.0618 57.9793 0.000335689 32.0258 0.000338489 4.77696e-06L58.2208 9.86676e-06L58.2208 57.9793Z" fill="currentColor" />
|
|
19
|
+
</svg>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (brandPiller === 'business') {
|
|
23
|
+
return <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none">
|
|
24
|
+
<path d="M119.671 61.2805C87.582 61.2805 61.5616 87.2381 61.5616 119.25H119.671V61.2805Z" fill="currentColor" />
|
|
25
|
+
<path d="M119.671 0.0378473C87.582 0.0378473 61.5616 25.9955 61.5616 58.0074H119.671V0.0378473Z" fill="currentColor" />
|
|
26
|
+
<path d="M0 119.212C0 87.2003 26.0205 61.2426 58.1098 61.2426V119.212H0Z" fill="currentColor" />
|
|
27
|
+
<path d="M0 57.9695C0 25.9576 26.0205 0 58.1098 0V57.9695H0Z" fill="currentColor" />
|
|
28
|
+
</svg>
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (brandPiller === 'live') {
|
|
32
|
+
return <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none">
|
|
33
|
+
<path d="M61.3528 61.2702C61.3528 93.2858 87.28 119.25 119.25 119.25V61.2702H61.3528Z" fill="currentColor" />
|
|
34
|
+
<path d="M119.25 57.9987C119.25 25.9831 93.3228 0.018911 61.3528 0.018911V57.9987H119.25Z" fill="currentColor" />
|
|
35
|
+
<path d="M57.8971 119.231C25.9272 119.231 0 93.2669 0 61.2513H57.8971V119.231Z" fill="currentColor" />
|
|
36
|
+
<path d="M0.0191358 0C31.9891 0 57.9163 25.9642 57.9163 57.9798H0.0191358V0Z" fill="currentColor" />
|
|
37
|
+
</svg>
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (brandPiller === 'participate') {
|
|
41
|
+
return <svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" fill="none">
|
|
42
|
+
<path d="M0 58.01C32.1003 58.01 58.1332 32.0323 58.1332 0H0V58.01Z" fill="currentColor" />
|
|
43
|
+
<path d="M0 61.24C32.1003 61.24 58.1332 87.2177 58.1332 119.25H0V61.24Z" fill="currentColor" />
|
|
44
|
+
<path d="M119.794 58.01C87.6937 58.01 61.6608 32.0323 61.6608 0H119.794V58.01Z" fill="currentColor" />
|
|
45
|
+
<path d="M119.794 61.24C87.6937 61.24 61.6608 87.2177 61.6608 119.25H119.794V61.24Z" fill="currentColor" />
|
|
46
|
+
</svg>
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default BrandPillerLogo;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const PromoBannerBgDesign = () => {
|
|
2
|
+
return (
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="543" height="490" viewBox="0 0 543 490" fill="none">
|
|
4
|
+
<g opacity="0.05">
|
|
5
|
+
<path d="M0 251.765C145.603 251.765 263.669 358.442 263.669 490H0V251.765Z" fill="#92C134" />
|
|
6
|
+
<path d="M0 0.0778264C145.603 0.0778264 263.669 106.755 263.669 238.313H0V0.0778264Z" fill="#92C134" />
|
|
7
|
+
<path d="M543 489.922C543 358.364 424.934 251.687 279.331 251.687V489.922H543Z" fill="#92C134" />
|
|
8
|
+
<path d="M543 238.235C543 106.677 424.934 0 279.331 0V238.235H543Z" fill="#92C134" />
|
|
9
|
+
</g>
|
|
10
|
+
</svg>
|
|
11
|
+
)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default PromoBannerBgDesign;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
.promoBannerBlock {
|
|
2
|
+
overflow-x: hidden;
|
|
3
|
+
padding: 48px 16px;
|
|
4
|
+
|
|
5
|
+
.promoBannerBlockContainer {
|
|
6
|
+
.promoBannerTop {
|
|
7
|
+
.promoBannerTopLeft {
|
|
8
|
+
padding: 0 16px;
|
|
9
|
+
|
|
10
|
+
h1 {
|
|
11
|
+
font-size: var(--font-size-h5);
|
|
12
|
+
line-height: var(--line-height-h5);
|
|
13
|
+
font-weight: var(--font-weight-h4);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.promoBannerTopRight {
|
|
18
|
+
padding: 48px 16px;
|
|
19
|
+
|
|
20
|
+
h1 {
|
|
21
|
+
font-size: var(--font-size-regular);
|
|
22
|
+
font-weight: var(--font-weight-body-regular);
|
|
23
|
+
line-height: var(--line-height-label);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.promoBannerBgDesignContainer {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.promoBannerBottom {
|
|
34
|
+
border-radius: 16px 16px 100px 0;
|
|
35
|
+
background: linear-gradient(to bottom,
|
|
36
|
+
var(--pathway-card-bg) 0%,
|
|
37
|
+
var(--pathway-card-bg) 60%,
|
|
38
|
+
transparent 60%);
|
|
39
|
+
|
|
40
|
+
.promoBannerBottomLeft {
|
|
41
|
+
color: var(--pathway-card-text);
|
|
42
|
+
padding: 32px 16px;
|
|
43
|
+
|
|
44
|
+
.promoBannerBrandPiller {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
gap: 16px;
|
|
48
|
+
margin: auto;
|
|
49
|
+
font-size: var(--font-size-body-regular);
|
|
50
|
+
|
|
51
|
+
.brandPillerLogo {
|
|
52
|
+
svg {
|
|
53
|
+
width: 32px;
|
|
54
|
+
height: 32px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.promoBannerTitleContainer {
|
|
60
|
+
padding-block: 32px;
|
|
61
|
+
|
|
62
|
+
h1 {
|
|
63
|
+
font-size: var(--font-size-small);
|
|
64
|
+
font-weight: var(--font-weight-body-sm);
|
|
65
|
+
line-height: var(--line-height-h5);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
h2 {
|
|
69
|
+
font-size: var(--font-size-small);
|
|
70
|
+
font-weight: var(--font-weight-bold);
|
|
71
|
+
line-height: var(--line-height-body-regular);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
p {
|
|
76
|
+
font-size: var(--font-size-body-regular);
|
|
77
|
+
font-weight: var(--font-weight-body-regular);
|
|
78
|
+
line-height: var(--line-height-body-regular);
|
|
79
|
+
padding-bottom: 32px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.promoBannerBottomRight {
|
|
84
|
+
img {
|
|
85
|
+
height: 100%;
|
|
86
|
+
width: 100%;
|
|
87
|
+
object-fit: cover;
|
|
88
|
+
border-radius: 0 0 0 16px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media screen and (min-width: 992px) {
|
|
95
|
+
padding: 120px 0;
|
|
96
|
+
|
|
97
|
+
.promoBannerBlockContainer {
|
|
98
|
+
.promoBannerTop {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-grow: 1;
|
|
101
|
+
margin: 0 -72px;
|
|
102
|
+
position: relative;
|
|
103
|
+
|
|
104
|
+
.promoBannerTopLeft {
|
|
105
|
+
padding: 0 72px;
|
|
106
|
+
width: 50%;
|
|
107
|
+
|
|
108
|
+
h1 {
|
|
109
|
+
font-size: var(--font-size-h4);
|
|
110
|
+
line-height: var(--line-height-h4);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.promoBannerTopRight {
|
|
115
|
+
width: 50%;
|
|
116
|
+
padding: 0 72px;
|
|
117
|
+
|
|
118
|
+
h1 {
|
|
119
|
+
font-size: var(--font-size-small);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.promoBannerVerticalLine {
|
|
124
|
+
background: var(--color-text);
|
|
125
|
+
width: 1px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.promoBannerBgDesignContainer {
|
|
129
|
+
display: block;
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: -120px;
|
|
132
|
+
bottom: 0;
|
|
133
|
+
right: -120px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.promoBannerBottom {
|
|
139
|
+
display: flex;
|
|
140
|
+
padding-top: 90px;
|
|
141
|
+
background: transparent;
|
|
142
|
+
|
|
143
|
+
.promoBannerBottomLeft {
|
|
144
|
+
background-color: var(--pathway-card-bg);
|
|
145
|
+
padding: 72px 90px 72px 72px;
|
|
146
|
+
border-radius: 16px 0 0 16px;
|
|
147
|
+
width: 50%;
|
|
148
|
+
|
|
149
|
+
.promoBannerTitleContainer {
|
|
150
|
+
padding-block: 48px;
|
|
151
|
+
|
|
152
|
+
h1 {
|
|
153
|
+
font-size: var(--font-size-h3);
|
|
154
|
+
font-weight: var(--font-weight-h3);
|
|
155
|
+
line-height: var(--line-height-h3);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
h2 {
|
|
159
|
+
font-size: var(--font-size-h3);
|
|
160
|
+
line-height: var(--line-height-h3);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
p {
|
|
165
|
+
padding-bottom: 48px;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.promoBannerBottomRight {
|
|
170
|
+
width: 50%;
|
|
171
|
+
|
|
172
|
+
img {
|
|
173
|
+
border-radius: 0 16px 96px 0;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import React from "react"
|
|
3
|
+
import { Meta, StoryObj } from "@storybook/react-vite";
|
|
4
|
+
import TestimonyCard from "./TestimonyCard";
|
|
5
|
+
import ElementHolder from "../../Shared/ElementHolder/ElementHolder";
|
|
6
|
+
|
|
7
|
+
const meta: Meta = {
|
|
8
|
+
title: "Layout / TestimonyCard",
|
|
9
|
+
component: TestimonyCard,
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: 'fullscreen',
|
|
12
|
+
},
|
|
13
|
+
tags: ["autodocs"]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default meta;
|
|
17
|
+
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
|
|
20
|
+
const TestimonyCardTemplate: Story = {
|
|
21
|
+
render: () => {
|
|
22
|
+
return (
|
|
23
|
+
<>
|
|
24
|
+
<ElementHolder paddingTop="sm" paddingBottom="sm" piller="visit" level="light">
|
|
25
|
+
<TestimonyCard
|
|
26
|
+
testimonies={[
|
|
27
|
+
{
|
|
28
|
+
image: 'https://images.pexels.com/photos/1563356/pexels-photo-1563356.jpeg',
|
|
29
|
+
testimony: 'Living in Selwyn is like waking up in a dream every single day. The community is not only vibrant but also filled with friendly faces and engaging activities that bring everyone together.\n\nThe sunsets here are truly breathtaking, painting the sky in hues of orange, pink, and purple, creating a picturesque backdrop that makes every evening feel special!',
|
|
30
|
+
author: '— Liam & Emma'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
testimony: 'The sense of community here is incredible.',
|
|
34
|
+
author: '— Sarah & James'
|
|
35
|
+
}
|
|
36
|
+
]}
|
|
37
|
+
/>
|
|
38
|
+
</ElementHolder>
|
|
39
|
+
</>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const TestimonyCardComponent = {
|
|
45
|
+
...TestimonyCardTemplate
|
|
46
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import TestimonyCardProps from "./TestimonyCardProps.tsx";
|
|
3
|
+
import styles from './testimonyCard.module.scss';
|
|
4
|
+
import Container from "../../Shared/Container/Container.tsx";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
const TestimonyCard = (props: TestimonyCardProps) => {
|
|
9
|
+
const {
|
|
10
|
+
testimonies,
|
|
11
|
+
pillar = 'visit'
|
|
12
|
+
} = props;
|
|
13
|
+
|
|
14
|
+
const [currentIndex, setCurrentIndex] = useState(0);
|
|
15
|
+
|
|
16
|
+
const defaultImage = 'https://images.pexels.com/photos/1563356/pexels-photo-1563356.jpeg';
|
|
17
|
+
|
|
18
|
+
return <div
|
|
19
|
+
className={`
|
|
20
|
+
${styles.testimonyCard}
|
|
21
|
+
${styles.testimonyCardLarge}
|
|
22
|
+
${pillar ? `${pillar}` : ""}
|
|
23
|
+
`}
|
|
24
|
+
>
|
|
25
|
+
<Container>
|
|
26
|
+
<div className={styles.testimonyCardWrapper}>
|
|
27
|
+
<div className={styles.testimonyCardLeft}>
|
|
28
|
+
<img
|
|
29
|
+
src={testimonies[currentIndex].image || defaultImage}
|
|
30
|
+
alt={`${testimonies[currentIndex].author} testimonial`}
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
<div className={styles.testimonyCardRight}>
|
|
34
|
+
<div className={styles.testimonyContent}>
|
|
35
|
+
<div className={styles.quoteIcon}>
|
|
36
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="56" height="39" viewBox="0 0 56 39" fill="none">
|
|
37
|
+
<path d="M23.1134 27.0562C23.1134 32.4847 18.9331 36 13.4798 36C8.02648 36 4.75277 33.6194 3.3652 27.0562C1.97764 20.493 7.78599 17.227 13.2393 17.227C18.6926 17.227 23.1134 21.6276 23.1134 27.0562Z" fill="#92C134"/>
|
|
38
|
+
<path d="M53.0015 27.0558C53.0015 32.4844 48.8212 35.9997 43.3679 35.9997C37.9145 35.9997 34.6408 33.619 33.2533 27.0558C31.8657 20.4926 37.674 17.2267 43.1274 17.2267C48.5807 17.2267 53.0015 21.6273 53.0015 27.0558Z" fill="#92C134"/>
|
|
39
|
+
<path d="M3.3652 27.0562C4.75277 33.6194 8.02648 36 13.4798 36C18.9331 36 23.1134 32.4847 23.1134 27.0562C23.1134 21.6276 18.6926 17.227 13.2393 17.227C7.78599 17.227 1.97764 20.493 3.3652 27.0562ZM3.3652 27.0562C1.97764 20.493 4.78431 13.7613 7.99019 9.54638C11.1961 5.33146 17.2399 2.24873 21.5318 3.16115M33.2533 27.0558C34.6408 33.619 37.9145 35.9997 43.3679 35.9997C48.8212 35.9997 53.0015 32.4844 53.0015 27.0558C53.0015 21.6273 48.5807 17.2267 43.1274 17.2267C37.674 17.2267 31.8657 20.4926 33.2533 27.0558ZM33.2533 27.0558C31.8657 20.4926 34.6724 13.761 37.8782 9.54606C41.0841 5.33115 47.1279 2.24841 51.4199 3.16083" stroke="#92C134" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
|
40
|
+
</svg>
|
|
41
|
+
</div>
|
|
42
|
+
<h6>{testimonies[currentIndex].testimony}</h6>
|
|
43
|
+
</div>
|
|
44
|
+
<p>{testimonies[currentIndex].author}</p>
|
|
45
|
+
|
|
46
|
+
{testimonies.length > 1 && (
|
|
47
|
+
<div className={styles.pagination}>
|
|
48
|
+
{testimonies.map((_, index) => (
|
|
49
|
+
<button
|
|
50
|
+
key={index}
|
|
51
|
+
className={`${styles.dot} ${index === currentIndex ? styles.active : ''}`}
|
|
52
|
+
onClick={() => setCurrentIndex(index)}
|
|
53
|
+
aria-label={`Go to testimonial ${index + 1}`}
|
|
54
|
+
/>
|
|
55
|
+
))}
|
|
56
|
+
</div>
|
|
57
|
+
)}
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</Container>
|
|
61
|
+
</div>
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export default TestimonyCard;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface Testimony {
|
|
2
|
+
image?: string;
|
|
3
|
+
testimony: string;
|
|
4
|
+
author: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface TestimonyCardProps {
|
|
8
|
+
// testimonySize?: 'large' | 'medium' | 'small';
|
|
9
|
+
testimonies: Testimony[];
|
|
10
|
+
pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste' | 'main';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default TestimonyCardProps;
|