@codecademy/brand 2.0.0-alpha.4e24057d69.0 → 2.0.0-alpha.5000e6813b.0
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 +1 -1
- package/dist/AbbreviatedCommunityEventCard/index.js +98 -0
- package/dist/AppBar/AppBarSection.js +41 -0
- package/dist/AppBar/index.js +20 -0
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.js +25 -0
- package/dist/AppBarDeprecated/index.js +26 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +98 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.js +63 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +440 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.js +157 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.js +25 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.js +26 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.js +1 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.js +2 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.js +26 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.js +70 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +53 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.js +32 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js +57 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.js +88 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.js +50 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.js +38 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.js +36 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.js +19 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +113 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.js +194 -0
- package/dist/AppHeader/Search/DefaultResults.js +112 -0
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js +80 -0
- package/dist/AppHeader/Search/SearchButton.js +58 -0
- package/dist/AppHeader/Search/SearchPane.js +518 -0
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.js +35 -0
- package/dist/AppHeader/Search/SearchWorker/index.js +24 -0
- package/dist/AppHeader/Search/SearchWorker/src.js +307 -0
- package/dist/AppHeader/Search/SearchWorker/types.js +5 -0
- package/dist/AppHeader/Search/SearchWorker/worker.js +31 -0
- package/dist/AppHeader/Search/consts.js +40 -0
- package/dist/AppHeader/Search/hooks/useUrlChangeDetection.js +14 -0
- package/dist/AppHeader/Search/safelyRedirect.js +49 -0
- package/dist/AppHeader/Search/types.js +1 -0
- package/dist/AppHeader/Search/useHeaderSearch.js +39 -0
- package/dist/AppHeader/index.js +77 -0
- package/dist/AppHeader/shared/elements.js +151 -0
- package/dist/AppHeader/shared/index.js +4 -0
- package/dist/AppHeader/shared/keyboardNav.js +67 -0
- package/dist/AppHeader/shared/mockAppHeaderItems.js +10 -0
- package/dist/AppHeader/shared/testTypes.js +0 -0
- package/dist/AppHeader/shared/types.js +1 -0
- package/dist/AppHeader/shared/utils.js +103 -0
- package/dist/AppHeader/utils/types.js +1 -0
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.js +77 -0
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.js +111 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.js +30 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +104 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.js +60 -0
- package/dist/AppHeaderMobile/index.js +226 -0
- package/dist/Avatar/Avatar.stories.js +15 -0
- package/dist/Avatar/index.js +45 -0
- package/dist/AvatarChooser/index.js +105 -0
- package/dist/BackToTopAnchor/index.js +38 -0
- package/dist/Banner/index.js +102 -0
- package/dist/BetaSticker/index.js +57 -0
- package/dist/CareerPathCard/index.js +41 -0
- package/dist/Carousel/elements.js +14 -0
- package/dist/Carousel/index.js +242 -0
- package/dist/CertificationPathCard/index.js +42 -0
- package/dist/CommunityEventCard/EventTypeIcon.js +59 -0
- package/dist/CommunityEventCard/index.js +305 -0
- package/dist/CommunityEventToast/index.js +32 -0
- package/dist/ContentGroupBaseCard/helpers.js +12 -0
- package/dist/ContentGroupBaseCard/index.js +178 -0
- package/dist/ContentGroupBaseCard/shared.js +76 -0
- package/dist/ContentGroupBaseCard/types.js +12 -0
- package/dist/CourseCard/index.js +47 -0
- package/dist/CurriculumCard/BottomTag/index.js +26 -0
- package/dist/CurriculumCard/Difficulty/helpers.js +13 -0
- package/dist/CurriculumCard/Difficulty/index.js +47 -0
- package/dist/CurriculumCard/Difficulty/types.js +20 -0
- package/dist/CurriculumCard/Footer/index.js +54 -0
- package/dist/CurriculumCard/Image/index.js +56 -0
- package/dist/CurriculumCard/Subtitle/helpers.js +8 -0
- package/dist/CurriculumCard/Subtitle/index.js +34 -0
- package/dist/CurriculumCard/index.js +129 -0
- package/dist/DropdownButton/DropdownList.js +73 -0
- package/dist/DropdownButton/index.js +169 -0
- package/dist/DropdownButton/useDynamicPopoverPosition.js +55 -0
- package/dist/DropdownButton/useDynamicPopoverPosition.test.js +85 -0
- package/dist/EditorialImage/index.js +22 -0
- package/dist/EmptySection/index.js +183 -0
- package/dist/ErrorContents/index.js +48 -0
- package/dist/FeatureList/index.js +41 -0
- package/dist/GlobalFooter/FooterHeading.js +30 -0
- package/dist/GlobalFooter/FooterLegal/LegalLinks.js +43 -0
- package/dist/GlobalFooter/FooterLegal/MadeIn.js +64 -0
- package/dist/GlobalFooter/FooterLegal/index.js +22 -0
- package/dist/GlobalFooter/FooterLinks.js +53 -0
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +298 -0
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +299 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +268 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.js +29 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.js +74 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.js +86 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.js +1 -0
- package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.js +50 -0
- package/dist/GlobalFooter/FooterNavLinks/index.js +45 -0
- package/dist/GlobalFooter/FooterSubHeading.js +22 -0
- package/dist/GlobalFooter/index.js +39 -0
- package/dist/GlobalFooter/types.js +1 -0
- package/dist/GlobalHeader/GlobalHeaderItems.js +405 -0
- package/dist/GlobalHeader/GlobalHeaderVariants.js +211 -0
- package/dist/GlobalHeader/index.js +101 -0
- package/dist/GlobalHeader/types.js +1 -0
- package/dist/GlobalHeader/urlHelpers.js +21 -0
- package/dist/GlobalPage/index.js +53 -0
- package/dist/Grid/GridCollapse.js +199 -0
- package/dist/Grid/GridCollapse.test.js +96 -0
- package/dist/Grid/Subgrid.js +37 -0
- package/dist/Grid/getCSSFromColumnCount.js +7 -0
- package/dist/Grid/index.js +3 -0
- package/dist/HeaderHeightArea/index.js +40 -0
- package/dist/HeaderHeightArea/useIsInHeaderRegion.js +15 -0
- package/dist/HorizontalScrollMenu/index.js +75 -0
- package/dist/HubCard/index.js +38 -0
- package/dist/InfoCard/index.js +157 -0
- package/dist/Konamimojisplosion/Konamimojisplosion.js +7 -0
- package/dist/Konamimojisplosion/index.js +2 -0
- package/dist/Konamimojisplosion/useKonamimojisplosion.js +34 -0
- package/dist/LandingPage/CTA.js +11 -0
- package/dist/LandingPage/Description.js +14 -0
- package/dist/LandingPage/Feature.js +96 -0
- package/dist/LandingPage/PageFAQs.js +42 -0
- package/dist/LandingPage/PageFeatures.js +112 -0
- package/dist/LandingPage/PageFeaturesEnhanced.js +159 -0
- package/dist/LandingPage/PageFeaturesWithReferences.js +136 -0
- package/dist/LandingPage/PageHero.js +22 -0
- package/dist/LandingPage/PagePrefooter.js +74 -0
- package/dist/LandingPage/PageSingleFeature.js +128 -0
- package/dist/LandingPage/PageTestimonials.js +113 -0
- package/dist/LandingPage/PageVideoGallery.js +49 -0
- package/dist/LandingPage/Title.js +28 -0
- package/dist/LandingPage/TitleWithEyebrow.js +40 -0
- package/dist/LandingPage/index.js +14 -0
- package/dist/LandingPage/types.js +1 -0
- package/dist/LayoutMenu/AccordionMenu.js +68 -0
- package/dist/LayoutMenu/LayoutMenu.js +96 -0
- package/dist/LayoutMenu/LayoutMenuSection.js +34 -0
- package/dist/LayoutMenu/SectionItemLink.js +16 -0
- package/dist/LayoutMenu/SelectedSectionItem.js +17 -0
- package/dist/LayoutMenu/index.js +3 -0
- package/dist/LayoutMenuVariant/AccordionMenu.js +85 -0
- package/dist/LayoutMenuVariant/LayoutMenu.js +92 -0
- package/dist/LayoutMenuVariant/LayoutMenuSection.js +42 -0
- package/dist/LayoutMenuVariant/SectionItemLink.js +17 -0
- package/dist/LayoutMenuVariant/index.js +2 -0
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +55 -0
- package/dist/LearningOutcomeAssessmentScores/index.js +24 -0
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.js +57 -0
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.js +35 -0
- package/dist/LearningOutcomeBadges/index.js +2 -0
- package/dist/LearningOutcomeCard/index.js +178 -0
- package/dist/LearningOutcomeFlyout/index.js +168 -0
- package/dist/LearningOutcomePopover/index.js +125 -0
- package/dist/LearningOutcomeTile/Tile.js +79 -0
- package/dist/LearningOutcomeTile/index.js +114 -0
- package/dist/LearningOutcomeTile/types.js +11 -0
- package/dist/ListSection/index.js +64 -0
- package/dist/Loading/index.js +82 -0
- package/dist/LoadingCurriculumCard/index.js +82 -0
- package/dist/Logo/CodecademyLogo.js +19 -0
- package/dist/Logo/CodecademyPremiumLogo.js +35 -0
- package/dist/Logo/CodecademyProAltLogo.js +19 -0
- package/dist/Logo/CodecademyProLockupLogo.js +13 -0
- package/dist/Logo/CodecademyProLogo.js +21 -0
- package/dist/Logo/CodecademyProMonoLogo.js +22 -0
- package/dist/Logo/CodecademyProgramLogo.js +14 -0
- package/dist/Logo/CodecademyTeamsLogo.js +41 -0
- package/dist/Logo/index.js +30 -0
- package/dist/LogoFromSkillsoft/index.js +55 -0
- package/dist/LogoLXStudio/index.js +47 -0
- package/dist/LogoProCutout/index.js +31 -0
- package/dist/LogoProCutoutTransparent/index.js +31 -0
- package/dist/MarketingToaster/index.js +67 -0
- package/dist/NotFoundContent/index.js +55 -0
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +23 -0
- package/dist/NotificationList/EmptyNotification/index.js +38 -0
- package/dist/NotificationList/NotificationItem.js +151 -0
- package/dist/NotificationList/index.js +46 -0
- package/dist/NotificationList/typings.js +1 -0
- package/dist/Notifications/NotificationBell.js +72 -0
- package/dist/Notifications/NotificationsContents.js +85 -0
- package/dist/Notifications/NotificationsDropdown.js +25 -0
- package/dist/Notifications/__fixtures__/NotificationTestComponent.js +12 -0
- package/dist/Notifications/__fixtures__/stubs.js +8 -0
- package/dist/Notifications/constants.js +4 -0
- package/dist/Notifications/elements.js +21 -0
- package/dist/Notifications/types.js +1 -0
- package/dist/Notifications/useHeaderNotifications.js +37 -0
- package/dist/Notifications/useNotificationButtons.js +56 -0
- package/dist/PageAlerts/PageAlerts.js +75 -0
- package/dist/PageAlerts/PageAlertsProvider.js +34 -0
- package/dist/PageAlerts/index.js +3 -0
- package/dist/PageAlerts/types.js +1 -0
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +53 -0
- package/dist/PageLayoutWithSidebarMenu/index.js +1 -0
- package/dist/PageSection/index.js +67 -0
- package/dist/PastDue/PastDueModalContents/index.js +30 -0
- package/dist/PastDue/index.js +2 -0
- package/dist/PastDue/pastDueMessages.js +48 -0
- package/dist/PausableImage/BaseImage/index.js +54 -0
- package/dist/PausableImage/index.js +37 -0
- package/dist/PlanCard/PlanCardBanner.js +28 -0
- package/dist/PlanCard/PlanFeature.js +83 -0
- package/dist/PlanCard/PopularBadge.js +13 -0
- package/dist/PlanCard/PricingAmount.js +117 -0
- package/dist/PlanCard/RecommendedBadge.js +24 -0
- package/dist/PlanCard/consts.js +135 -0
- package/dist/PlanCard/index.js +370 -0
- package/dist/PlanCard/types.js +62 -0
- package/dist/PlanCardTeams/consts.js +8 -0
- package/dist/PlanCardTeams/index.js +167 -0
- package/dist/PricingSection/PlanFeature.js +88 -0
- package/dist/PricingSection/PricingCard/PricingAmount.js +84 -0
- package/dist/PricingSection/PricingCard/RecommendedBadge.js +24 -0
- package/dist/PricingSection/PricingCard/consts.js +85 -0
- package/dist/PricingSection/PricingCard/index.js +241 -0
- package/dist/PricingSection/ProductCTA.js +44 -0
- package/dist/PricingSection/Products.js +74 -0
- package/dist/PricingSection/config.js +36 -0
- package/dist/PricingSection/index.js +58 -0
- package/dist/PricingSection/types.js +8 -0
- package/dist/ProLabel/index.js +59 -0
- package/dist/ProLogo/index.js +27 -0
- package/dist/ProLogoAlt/index.js +26 -0
- package/dist/ProductFeatureShowcase/index.js +120 -0
- package/dist/QuizScore/index.js +84 -0
- package/dist/RatingsBar/index.js +32 -0
- package/dist/ResourceCard/index.js +59 -0
- package/dist/ScoreSummary/SubScores.js +165 -0
- package/dist/ScoreSummary/helpers.js +20 -0
- package/dist/ScoreSummary/index.js +108 -0
- package/dist/ScoreSummary/types.js +1 -0
- package/dist/SkillPathCard/index.js +38 -0
- package/dist/SocialMediaSharing/SocialShareIconLink.js +49 -0
- package/dist/SocialMediaSharing/index.js +116 -0
- package/dist/SocialMediaSharingDropdown/index.js +111 -0
- package/dist/Testimonial/index.js +163 -0
- package/dist/index.js +87 -0
- package/dist/lib/breakpointHooks/index.js +60 -0
- package/dist/lib/catalogList/index.js +173 -0
- package/dist/lib/resourcesList/index.js +232 -0
- package/dist/remoteAssets/components.js +1 -0
- package/dist/stories/Atoms/Avatar.stories.js +16 -0
- package/dist/stories/Atoms/BetaSticker.stories.js +22 -0
- package/dist/stories/Atoms/Logos/Logo.stories.js +78 -0
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +15 -0
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +11 -0
- package/dist/stories/Atoms/Logos/ProLabel.stories.js +16 -0
- package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +24 -0
- package/dist/stories/Atoms/RatingsBar.stories.js +16 -0
- package/dist/stories/Atoms/Subgrid.stories.js +87 -0
- package/dist/stories/Molecules/AppBar.stories.js +32 -0
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +84 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +67 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +52 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +44 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +34 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +40 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +25 -0
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +176 -0
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +84 -0
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +90 -0
- package/dist/stories/Molecules/AvatarChooser.stories.js +22 -0
- package/dist/stories/Molecules/BackToTopAnchor.stories.js +51 -0
- package/dist/stories/Molecules/Banner.stories.js +115 -0
- package/dist/stories/Molecules/Carousel.stories.js +47 -0
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +173 -0
- package/dist/stories/Molecules/CurriculumCard.stories.js +208 -0
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +92 -0
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +65 -0
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +83 -0
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +20 -0
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +90 -0
- package/dist/stories/Molecules/DropdownButton.stories.js +207 -0
- package/dist/stories/Molecules/EditorialImage.stories.js +17 -0
- package/dist/stories/Molecules/EmptySection.stories.js +168 -0
- package/dist/stories/Molecules/ErrorContents.stories.js +19 -0
- package/dist/stories/Molecules/GridCollapse.stories.js +42 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +67 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +11 -0
- package/dist/stories/Molecules/HubCard.stories.js +28 -0
- package/dist/stories/Molecules/InfoCard.stories.js +30 -0
- package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +23 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.js +75 -0
- package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +35 -0
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +20 -0
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +10 -0
- package/dist/stories/Molecules/LearningOutcomePopover.stories.js +39 -0
- package/dist/stories/Molecules/LearningOutcomeTile.stories.js +276 -0
- package/dist/stories/Molecules/ListSection.stories.js +97 -0
- package/dist/stories/Molecules/Loading.stories.js +10 -0
- package/dist/stories/Molecules/NotificationList.stories.js +100 -0
- package/dist/stories/Molecules/PageSection.stories.js +67 -0
- package/dist/stories/Molecules/PastDueModalContents.stories.js +62 -0
- package/dist/stories/Molecules/PausableImage.stories.js +16 -0
- package/dist/stories/Molecules/ResourceCard.stories.js +18 -0
- package/dist/stories/Molecules/SocialMediaSharing.stories.js +20 -0
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +20 -0
- package/dist/stories/Molecules/Testimonial.stories.js +63 -0
- package/dist/stories/Organisms/GlobalFooter.stories.js +29 -0
- package/dist/stories/Organisms/GlobalHeader/About.stories.js +136 -0
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +73 -0
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +32 -0
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +108 -0
- package/dist/stories/Organisms/GlobalHeader/Free.stories.js +133 -0
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +199 -0
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +31 -0
- package/dist/stories/Organisms/GlobalPage.stories.js +142 -0
- package/dist/stories/Organisms/LayoutMenu.stories.js +242 -0
- package/dist/stories/Organisms/LayoutMenuVariant.stories.js +224 -0
- package/dist/stories/Organisms/PageAlerts.example.js +42 -0
- package/dist/stories/Organisms/PageAlerts.stories.js +15 -0
- package/dist/stories/Organisms/PageFeatures.stories.js +183 -0
- package/dist/stories/Organisms/PageHero.stories.js +145 -0
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +34 -0
- package/dist/stories/Organisms/PagePrefooter.stories.js +62 -0
- package/dist/stories/Organisms/PageSingleFeature.stories.js +158 -0
- package/dist/stories/Organisms/PageVideoGallery.stories.js +70 -0
- package/dist/stories/Organisms/PlanCard.stories.js +98 -0
- package/dist/stories/Organisms/PlanCardTeams.stories.js +27 -0
- package/dist/stories/Organisms/ScoreSummary.stories.js +299 -0
- package/package.json +2 -2
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
2
|
+
import { PageHero } from '../../index';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const ctaArgs = {
|
|
5
|
+
text: 'Click Me',
|
|
6
|
+
href: 'https://open.spotify.com/album/10aiDpdFGyfCFEcqpx6XTq?si=xR1nDqVqROK6KYM8J-l_rw'
|
|
7
|
+
};
|
|
8
|
+
const meta = {
|
|
9
|
+
component: PageHero,
|
|
10
|
+
args: {
|
|
11
|
+
title: 'Welcome to Codecademy',
|
|
12
|
+
desc: 'feat. [Rob Thomas of Matchbox Twenty](https://en.wikipedia.org/wiki/Rob_Thomas_(musician)) off the multi-platinum album',
|
|
13
|
+
onAnchorClick: () =>
|
|
14
|
+
// eslint-disable-next-line no-console
|
|
15
|
+
console.log('You clicked me an anchor tag inside Markdown!'),
|
|
16
|
+
cta: {
|
|
17
|
+
...ctaArgs,
|
|
18
|
+
onClick: () => {
|
|
19
|
+
// eslint-disable-next-line no-console
|
|
20
|
+
console.log('You could add event tracking here');
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
media: {
|
|
24
|
+
type: 'image',
|
|
25
|
+
src: 'https://cdn.mos.cms.futurecdn.net/wtqqnkYDYi2ifsWZVW2MT4-1200-80.jpg',
|
|
26
|
+
alt: 'beach'
|
|
27
|
+
},
|
|
28
|
+
textLength: 'long'
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
export const Default = {
|
|
33
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
34
|
+
...args
|
|
35
|
+
}),
|
|
36
|
+
name: 'Page Hero'
|
|
37
|
+
};
|
|
38
|
+
export const Video = {
|
|
39
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
40
|
+
...args,
|
|
41
|
+
media: {
|
|
42
|
+
type: 'video',
|
|
43
|
+
videoUrl: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
|
|
44
|
+
videoTitle: 'Workout with Rick Sanchez',
|
|
45
|
+
placeholderImage: 'https://placekitten.com/400/300',
|
|
46
|
+
autoplay: true
|
|
47
|
+
},
|
|
48
|
+
title: "What's it like to be a Software Engineer"
|
|
49
|
+
}),
|
|
50
|
+
name: 'Video'
|
|
51
|
+
};
|
|
52
|
+
export const ShortText = {
|
|
53
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
54
|
+
...args,
|
|
55
|
+
textLength: "short"
|
|
56
|
+
}),
|
|
57
|
+
name: 'Short Text'
|
|
58
|
+
};
|
|
59
|
+
export const RegularButton = {
|
|
60
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
61
|
+
...args,
|
|
62
|
+
cta: {
|
|
63
|
+
...ctaArgs,
|
|
64
|
+
buttonType: 'fill'
|
|
65
|
+
}
|
|
66
|
+
}),
|
|
67
|
+
name: 'Regular Button'
|
|
68
|
+
};
|
|
69
|
+
export const WithoutButton = {
|
|
70
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
71
|
+
...args,
|
|
72
|
+
cta: undefined
|
|
73
|
+
}),
|
|
74
|
+
name: 'Without Button'
|
|
75
|
+
};
|
|
76
|
+
export const WithoutDescription = {
|
|
77
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
78
|
+
...args,
|
|
79
|
+
desc: undefined
|
|
80
|
+
}),
|
|
81
|
+
name: 'Without Description'
|
|
82
|
+
};
|
|
83
|
+
export const Eyebrow = {
|
|
84
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
85
|
+
...args,
|
|
86
|
+
eyebrow: {
|
|
87
|
+
text: 'Hello there'
|
|
88
|
+
},
|
|
89
|
+
textLength: "short"
|
|
90
|
+
}),
|
|
91
|
+
name: 'Eyebrow'
|
|
92
|
+
};
|
|
93
|
+
export const AccentEyebrow = {
|
|
94
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
95
|
+
...args,
|
|
96
|
+
eyebrow: {
|
|
97
|
+
text: 'Hello there',
|
|
98
|
+
accent: true
|
|
99
|
+
},
|
|
100
|
+
textLength: "short"
|
|
101
|
+
}),
|
|
102
|
+
name: 'Accent Eyebrow'
|
|
103
|
+
};
|
|
104
|
+
export const ShowImageOnMobile = {
|
|
105
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
106
|
+
...args,
|
|
107
|
+
showImageOnMobile: true,
|
|
108
|
+
textLength: "short"
|
|
109
|
+
}),
|
|
110
|
+
name: 'Show Image On Mobile'
|
|
111
|
+
};
|
|
112
|
+
export const WithoutMedia = {
|
|
113
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
114
|
+
...args,
|
|
115
|
+
media: undefined
|
|
116
|
+
}),
|
|
117
|
+
name: 'Without Media'
|
|
118
|
+
};
|
|
119
|
+
export const DarkMode = {
|
|
120
|
+
render: args => /*#__PURE__*/_jsx(Background, {
|
|
121
|
+
bg: "navy",
|
|
122
|
+
p: 16,
|
|
123
|
+
children: /*#__PURE__*/_jsx(PageHero, {
|
|
124
|
+
...args,
|
|
125
|
+
eyebrow: {
|
|
126
|
+
text: 'Hello there'
|
|
127
|
+
}
|
|
128
|
+
})
|
|
129
|
+
}),
|
|
130
|
+
name: 'Dark Mode'
|
|
131
|
+
};
|
|
132
|
+
export const PausableImage = {
|
|
133
|
+
render: args => /*#__PURE__*/_jsx(PageHero, {
|
|
134
|
+
...args,
|
|
135
|
+
media: {
|
|
136
|
+
type: 'image',
|
|
137
|
+
src: '//images.ctfassets.net/go6kr6r0ykrq/2vjTCK9DmJ6BOd5NtFxNIG/e5ced4209aef5241cd581841fa6e2511/learn-css_box-model_06.16.gif',
|
|
138
|
+
alt: 'learning envuironment demonstration'
|
|
139
|
+
},
|
|
140
|
+
eyebrow: {
|
|
141
|
+
text: 'Codecademy'
|
|
142
|
+
}
|
|
143
|
+
}),
|
|
144
|
+
name: 'PausableImage'
|
|
145
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PageLayoutWithSidebarMenu } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: PageLayoutWithSidebarMenu,
|
|
5
|
+
args: {
|
|
6
|
+
pageName: 'myPage',
|
|
7
|
+
leftSidebar: {
|
|
8
|
+
content: /*#__PURE__*/_jsx("div", {
|
|
9
|
+
children: "Menu goes here"
|
|
10
|
+
}),
|
|
11
|
+
cols: 3
|
|
12
|
+
},
|
|
13
|
+
trackUserClick: () => {},
|
|
14
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
15
|
+
children: "Main page content goes here"
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
export const Default = {
|
|
21
|
+
render: args => /*#__PURE__*/_jsx(PageLayoutWithSidebarMenu, {
|
|
22
|
+
...args
|
|
23
|
+
}),
|
|
24
|
+
name: 'PageLayoutWithSidebarMenu'
|
|
25
|
+
};
|
|
26
|
+
export const HasBackToTop = {
|
|
27
|
+
render: args => /*#__PURE__*/_jsx(PageLayoutWithSidebarMenu, {
|
|
28
|
+
...args
|
|
29
|
+
}),
|
|
30
|
+
name: 'Has Back to Top',
|
|
31
|
+
args: {
|
|
32
|
+
hasBackToTop: true
|
|
33
|
+
}
|
|
34
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
2
|
+
import { PagePrefooter } from '../../index';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const ctaArgs = {
|
|
5
|
+
text: 'Supernatural',
|
|
6
|
+
href: 'https://open.spotify.com/album/10aiDpdFGyfCFEcqpx6XTq?si=xR1nDqVqROK6KYM8J-l_rw'
|
|
7
|
+
};
|
|
8
|
+
const meta = {
|
|
9
|
+
component: PagePrefooter,
|
|
10
|
+
args: {
|
|
11
|
+
title: "I'd rather be listening to Grammy-Award winning 1999 hit Smooth by Santana",
|
|
12
|
+
desc: 'feat. [Rob Thomas of Matchbox Twenty](https://en.wikipedia.org/wiki/Rob_Thomas_(musician)) off the multi-platinum album',
|
|
13
|
+
cta: {
|
|
14
|
+
...ctaArgs,
|
|
15
|
+
onClick: () => {
|
|
16
|
+
// eslint-disable-next-line no-console
|
|
17
|
+
console.log('You could add event tracking here');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
export const Default = {
|
|
24
|
+
render: args => /*#__PURE__*/_jsx(PagePrefooter, {
|
|
25
|
+
...args
|
|
26
|
+
}),
|
|
27
|
+
name: 'Prefooter'
|
|
28
|
+
};
|
|
29
|
+
export const RegularButton = {
|
|
30
|
+
render: args => /*#__PURE__*/_jsx(PagePrefooter, {
|
|
31
|
+
...args,
|
|
32
|
+
cta: {
|
|
33
|
+
...ctaArgs,
|
|
34
|
+
buttonType: 'fill'
|
|
35
|
+
}
|
|
36
|
+
}),
|
|
37
|
+
name: 'Regular Button'
|
|
38
|
+
};
|
|
39
|
+
export const WithoutButton = {
|
|
40
|
+
render: args => /*#__PURE__*/_jsx(PagePrefooter, {
|
|
41
|
+
...args,
|
|
42
|
+
cta: undefined
|
|
43
|
+
}),
|
|
44
|
+
name: 'Without Button'
|
|
45
|
+
};
|
|
46
|
+
export const WithoutDescription = {
|
|
47
|
+
render: args => /*#__PURE__*/_jsx(PagePrefooter, {
|
|
48
|
+
...args,
|
|
49
|
+
desc: undefined
|
|
50
|
+
}),
|
|
51
|
+
name: 'Without Description'
|
|
52
|
+
};
|
|
53
|
+
export const DarkMode = {
|
|
54
|
+
render: args => /*#__PURE__*/_jsx(Background, {
|
|
55
|
+
bg: "navy",
|
|
56
|
+
p: 16,
|
|
57
|
+
children: /*#__PURE__*/_jsx(PagePrefooter, {
|
|
58
|
+
...args
|
|
59
|
+
})
|
|
60
|
+
}),
|
|
61
|
+
name: 'Dark Mode'
|
|
62
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
2
|
+
import { PageSingleFeature } from '../../index';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const meta = {
|
|
5
|
+
component: PageSingleFeature,
|
|
6
|
+
args: {
|
|
7
|
+
title: 'Build a Better Future',
|
|
8
|
+
desc: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Amet dolor in porta adipiscing euismod id sodales velit. Consequat, nibh quam suscipit pharetra, lacus nam. Elit ullamcorper magna ultricies cursus tempus amet. Urna, sagittis lobortis sit quis nibh facilisis euismod dolor. Dolor iaculis congue sit pharetra. A lorem sed dapibus est vel eros mauris malesuada tortor.',
|
|
9
|
+
onAnchorClick: () =>
|
|
10
|
+
// eslint-disable-next-line no-console
|
|
11
|
+
console.log('You clicked me an anchor tag inside Markdown!'),
|
|
12
|
+
cta: {
|
|
13
|
+
text: 'Click Me',
|
|
14
|
+
href: 'https://open.spotify.com/album/10aiDpdFGyfCFEcqpx6XTq?si=xR1nDqVqROK6KYM8J-l_rw',
|
|
15
|
+
onClick: () => {
|
|
16
|
+
// eslint-disable-next-line no-console
|
|
17
|
+
console.log('You could add event tracking here');
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
media: {
|
|
21
|
+
type: 'image',
|
|
22
|
+
src: 'https://cdn.mos.cms.futurecdn.net/wtqqnkYDYi2ifsWZVW2MT4-1200-80.jpg',
|
|
23
|
+
alt: 'beach'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
export const SingleFeature = {
|
|
29
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
30
|
+
...args
|
|
31
|
+
}),
|
|
32
|
+
name: 'Single Feature'
|
|
33
|
+
};
|
|
34
|
+
export const Video = {
|
|
35
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
36
|
+
...args,
|
|
37
|
+
media: {
|
|
38
|
+
type: 'video',
|
|
39
|
+
videoUrl: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
|
|
40
|
+
videoTitle: 'Workout with Rick Sanchez',
|
|
41
|
+
placeholderImage: 'https://placekitten.com/400/300',
|
|
42
|
+
autoplay: true
|
|
43
|
+
},
|
|
44
|
+
title: "What's it like to be a Software Engineer"
|
|
45
|
+
}),
|
|
46
|
+
name: 'Video'
|
|
47
|
+
};
|
|
48
|
+
export const AdjustTheMediaWidth = {
|
|
49
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
50
|
+
...args,
|
|
51
|
+
mediaWidth: 5
|
|
52
|
+
}),
|
|
53
|
+
name: 'Adjust the Media Width'
|
|
54
|
+
};
|
|
55
|
+
export const RegularButton = {
|
|
56
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
57
|
+
...args,
|
|
58
|
+
cta: {
|
|
59
|
+
text: 'Click Me',
|
|
60
|
+
href: 'https://open.spotify.com/album/10aiDpdFGyfCFEcqpx6XTq?si=xR1nDqVqROK6KYM8J-l_rw',
|
|
61
|
+
buttonType: 'fill'
|
|
62
|
+
},
|
|
63
|
+
mediaWidth: 4
|
|
64
|
+
}),
|
|
65
|
+
name: 'Regular Button'
|
|
66
|
+
};
|
|
67
|
+
export const WithoutButton = {
|
|
68
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
69
|
+
...args,
|
|
70
|
+
cta: undefined,
|
|
71
|
+
mediaWidth: 3
|
|
72
|
+
}),
|
|
73
|
+
name: 'Without Button'
|
|
74
|
+
};
|
|
75
|
+
export const WithoutDescription = {
|
|
76
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
77
|
+
...args,
|
|
78
|
+
desc: undefined,
|
|
79
|
+
mediaWidth: 4
|
|
80
|
+
}),
|
|
81
|
+
name: 'Without Description'
|
|
82
|
+
};
|
|
83
|
+
export const Eyebrow = {
|
|
84
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
85
|
+
...args,
|
|
86
|
+
eyebrow: {
|
|
87
|
+
text: 'Codecademy'
|
|
88
|
+
}
|
|
89
|
+
}),
|
|
90
|
+
name: 'Eyebrow'
|
|
91
|
+
};
|
|
92
|
+
export const AccentEyebrow = {
|
|
93
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
94
|
+
...args,
|
|
95
|
+
eyebrow: {
|
|
96
|
+
text: 'Codecademy',
|
|
97
|
+
accent: true
|
|
98
|
+
}
|
|
99
|
+
}),
|
|
100
|
+
name: 'Accent Eyebrow'
|
|
101
|
+
};
|
|
102
|
+
export const HideImageOnMobile = {
|
|
103
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
104
|
+
...args,
|
|
105
|
+
hideImageOnMobile: true,
|
|
106
|
+
mediaWidth: 5
|
|
107
|
+
}),
|
|
108
|
+
name: 'Hide Image on Mobile'
|
|
109
|
+
};
|
|
110
|
+
export const WithoutMedia = {
|
|
111
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
112
|
+
...args,
|
|
113
|
+
media: undefined
|
|
114
|
+
}),
|
|
115
|
+
name: 'Without Media'
|
|
116
|
+
};
|
|
117
|
+
export const DarkMode = {
|
|
118
|
+
render: args => /*#__PURE__*/_jsx(Background, {
|
|
119
|
+
bg: "navy",
|
|
120
|
+
p: 16,
|
|
121
|
+
children: /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
122
|
+
...args,
|
|
123
|
+
eyebrow: {
|
|
124
|
+
text: 'Codecademy'
|
|
125
|
+
}
|
|
126
|
+
})
|
|
127
|
+
}),
|
|
128
|
+
name: 'Dark Mode'
|
|
129
|
+
};
|
|
130
|
+
export const PausableImage = {
|
|
131
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
132
|
+
...args,
|
|
133
|
+
media: {
|
|
134
|
+
type: 'image',
|
|
135
|
+
src: '//images.ctfassets.net/go6kr6r0ykrq/2vjTCK9DmJ6BOd5NtFxNIG/e5ced4209aef5241cd581841fa6e2511/learn-css_box-model_06.16.gif',
|
|
136
|
+
alt: 'learning environment demonstration'
|
|
137
|
+
},
|
|
138
|
+
eyebrow: {
|
|
139
|
+
text: 'Codecademy'
|
|
140
|
+
}
|
|
141
|
+
}),
|
|
142
|
+
name: 'PausableImage'
|
|
143
|
+
};
|
|
144
|
+
export const LinkableImage = {
|
|
145
|
+
render: args => /*#__PURE__*/_jsx(PageSingleFeature, {
|
|
146
|
+
...args,
|
|
147
|
+
media: {
|
|
148
|
+
type: 'image',
|
|
149
|
+
src: 'https://cdn.mos.cms.futurecdn.net/wtqqnkYDYi2ifsWZVW2MT4-1200-80.jpg',
|
|
150
|
+
alt: 'beach',
|
|
151
|
+
linkUrl: 'https://open.spotify.com/album/10aiDpdFGyfCFEcqpx6XTq?si=xR1nDqVqROK6KYM8J-l_rw'
|
|
152
|
+
},
|
|
153
|
+
eyebrow: {
|
|
154
|
+
text: 'Codecademy'
|
|
155
|
+
}
|
|
156
|
+
}),
|
|
157
|
+
name: 'Linkable Image'
|
|
158
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
2
|
+
import { PageVideoGallery } from '../../index';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const ctaArgs = {
|
|
5
|
+
text: 'Same as it ever was',
|
|
6
|
+
href: 'https://codecademy.com'
|
|
7
|
+
};
|
|
8
|
+
const meta = {
|
|
9
|
+
component: PageVideoGallery,
|
|
10
|
+
args: {
|
|
11
|
+
videos: [{
|
|
12
|
+
title: 'Steppin on the M83',
|
|
13
|
+
url: 'https://www.youtube.com/watch?v=-m2fVWj99x4',
|
|
14
|
+
placeholderImage: 'https://i.kym-cdn.com/entries/icons/mobile/000/010/275/x1080.jpg'
|
|
15
|
+
}, {
|
|
16
|
+
title: 'Once in a Lifetime performed by Kermit the Frog',
|
|
17
|
+
url: 'https://www.youtube.com/watch?v=PCY0aeUx-Ns',
|
|
18
|
+
placeholderImage: 'https://i.kinja-img.com/gawker-media/image/upload/c_fill,f_auto,fl_progressive,g_center,h_675,pg_1,q_80,w_1200/slvzej9jmwy1ze8nknmr.jpg'
|
|
19
|
+
}, {
|
|
20
|
+
title: 'Spooky Scary Skeletons',
|
|
21
|
+
url: 'https://www.youtube.com/watch?v=K2rwxs1gH9w',
|
|
22
|
+
placeholderImage: 'https://image.pbs.org/video-assets/UWTcFJA-asset-mezzanine-16x9-NfmXh7O.jpg'
|
|
23
|
+
}],
|
|
24
|
+
title: 'You may find yourself living in a shotgun shack',
|
|
25
|
+
desc: 'And you may find yourself in another part of the world, and you may find yourself behind the wheel of a large automobile',
|
|
26
|
+
cta: {
|
|
27
|
+
...ctaArgs
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
export const VideoGallery = {
|
|
33
|
+
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
34
|
+
...args
|
|
35
|
+
}),
|
|
36
|
+
name: 'Video Gallery'
|
|
37
|
+
};
|
|
38
|
+
export const RegularButton = {
|
|
39
|
+
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
40
|
+
...args,
|
|
41
|
+
cta: {
|
|
42
|
+
...ctaArgs,
|
|
43
|
+
buttonType: 'fill'
|
|
44
|
+
}
|
|
45
|
+
}),
|
|
46
|
+
name: 'Regular Button'
|
|
47
|
+
};
|
|
48
|
+
export const WithoutDescription = {
|
|
49
|
+
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
50
|
+
...args,
|
|
51
|
+
desc: undefined
|
|
52
|
+
}),
|
|
53
|
+
name: 'Without Description'
|
|
54
|
+
};
|
|
55
|
+
export const GalleryOnly = {
|
|
56
|
+
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
57
|
+
videos: args.videos
|
|
58
|
+
}),
|
|
59
|
+
name: 'Gallery Only'
|
|
60
|
+
};
|
|
61
|
+
export const DarkMode = {
|
|
62
|
+
render: args => /*#__PURE__*/_jsx(Background, {
|
|
63
|
+
bg: "navy",
|
|
64
|
+
p: 16,
|
|
65
|
+
children: /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
66
|
+
...args
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
69
|
+
name: 'Dark Mode'
|
|
70
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { GridBox } from '@codecademy/gamut';
|
|
2
|
+
import { ColorMode } from '@codecademy/gamut-styles';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { Currency, PlanCard } from '../../index';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const meta = {
|
|
7
|
+
component: PlanCard,
|
|
8
|
+
args: {
|
|
9
|
+
isSelected: false,
|
|
10
|
+
price: '17.49',
|
|
11
|
+
currency: Currency.USD,
|
|
12
|
+
termMonths: 1,
|
|
13
|
+
planType: 'pro-silver',
|
|
14
|
+
isMultiple: true,
|
|
15
|
+
inUpsellModal: false,
|
|
16
|
+
isIndiaUser: false,
|
|
17
|
+
ctaHref: 'www.email.com',
|
|
18
|
+
ctaLabel: 'Click Me'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
export const Default = {
|
|
23
|
+
render: args => /*#__PURE__*/_jsx(PlanCard, {
|
|
24
|
+
...args
|
|
25
|
+
}),
|
|
26
|
+
name: 'Plan Card'
|
|
27
|
+
};
|
|
28
|
+
export const Radio = {
|
|
29
|
+
render: function Render(_args) {
|
|
30
|
+
const [selected, setSelected] = useState('plus');
|
|
31
|
+
return /*#__PURE__*/_jsxs(GridBox, {
|
|
32
|
+
role: "radiogroup",
|
|
33
|
+
gridTemplateColumns: {
|
|
34
|
+
_: '1fr',
|
|
35
|
+
sm: '1fr 1fr'
|
|
36
|
+
},
|
|
37
|
+
gap: 24,
|
|
38
|
+
children: [/*#__PURE__*/_jsx(PlanCard, {
|
|
39
|
+
isSelected: selected === 'plus',
|
|
40
|
+
price: "17.49",
|
|
41
|
+
currency: Currency.USD,
|
|
42
|
+
termMonths: 1,
|
|
43
|
+
onChange: () => {
|
|
44
|
+
setSelected('plus');
|
|
45
|
+
},
|
|
46
|
+
planType: "pro-silver"
|
|
47
|
+
}), /*#__PURE__*/_jsx(PlanCard, {
|
|
48
|
+
isSelected: selected === 'pro',
|
|
49
|
+
price: "29.99",
|
|
50
|
+
currency: Currency.USD,
|
|
51
|
+
termMonths: 1,
|
|
52
|
+
onChange: () => {
|
|
53
|
+
setSelected('pro');
|
|
54
|
+
},
|
|
55
|
+
planType: "pro-gold"
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
name: 'Interactive Plan Card'
|
|
60
|
+
};
|
|
61
|
+
export const DarkModeCard = {
|
|
62
|
+
render: () => /*#__PURE__*/_jsx(ColorMode, {
|
|
63
|
+
mode: "dark",
|
|
64
|
+
children: /*#__PURE__*/_jsx(GridBox, {
|
|
65
|
+
role: "radiogroup",
|
|
66
|
+
gridTemplateColumns: {
|
|
67
|
+
_: '1fr',
|
|
68
|
+
sm: '1fr 1fr'
|
|
69
|
+
},
|
|
70
|
+
gap: 24,
|
|
71
|
+
children: /*#__PURE__*/_jsx(PlanCard, {
|
|
72
|
+
isSelected: false,
|
|
73
|
+
price: "59.99",
|
|
74
|
+
currency: Currency.USD,
|
|
75
|
+
termMonths: 1,
|
|
76
|
+
onChange: () => {},
|
|
77
|
+
planType: "pro-gold"
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
}),
|
|
81
|
+
name: 'Monthly Pro Card'
|
|
82
|
+
};
|
|
83
|
+
export const HorizontalPlanCard = {
|
|
84
|
+
render: () => /*#__PURE__*/_jsx(GridBox, {
|
|
85
|
+
role: "radiogroup",
|
|
86
|
+
gridTemplateColumns: "1fr",
|
|
87
|
+
children: /*#__PURE__*/_jsx(PlanCard, {
|
|
88
|
+
isSelected: true,
|
|
89
|
+
price: "17.49",
|
|
90
|
+
currency: Currency.USD,
|
|
91
|
+
termMonths: 12,
|
|
92
|
+
onChange: () => {},
|
|
93
|
+
planType: "pro-silver",
|
|
94
|
+
isMultiple: false
|
|
95
|
+
})
|
|
96
|
+
}),
|
|
97
|
+
name: 'Horizontal Plus Card'
|
|
98
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Currency, PlanCardTeams } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: PlanCardTeams,
|
|
5
|
+
args: {
|
|
6
|
+
price: '299',
|
|
7
|
+
currency: Currency.USD
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const Default = {
|
|
12
|
+
render: function Render(args) {
|
|
13
|
+
return /*#__PURE__*/_jsx(PlanCardTeams, {
|
|
14
|
+
...args
|
|
15
|
+
});
|
|
16
|
+
},
|
|
17
|
+
name: 'Plan Card Teams'
|
|
18
|
+
};
|
|
19
|
+
export const PlanCardTeamsGBP = {
|
|
20
|
+
render: () => {
|
|
21
|
+
return /*#__PURE__*/_jsx(PlanCardTeams, {
|
|
22
|
+
price: "200",
|
|
23
|
+
currency: Currency.GBP
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
name: 'Plan Card Teams - GBP'
|
|
27
|
+
};
|