@explorer-1/vue 0.0.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/LICENSE +21 -0
- package/README.md +9 -0
- package/components.d.ts +215 -0
- package/index.html +18 -0
- package/lib/main.ts +78 -0
- package/package.json +54 -0
- package/postcss.config.js +7 -0
- package/public/edu/.gitkeep +0 -0
- package/public/edu/explorer-1/bg-stars-edu.png +0 -0
- package/public/edu/explorer-1/bg-stars.jpg +0 -0
- package/public/explorer-1/bg-stars-edu.png +0 -0
- package/public/explorer-1/bg-stars.jpg +0 -0
- package/src/App.vue +30 -0
- package/src/assets/fonts/README.md +12 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-Bold.woff2 +0 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBold.woff2 +0 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBoldItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-Bold.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-ExtraBold.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-Medium.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-Regular.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-RegularItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-SemiBold.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-SemiBoldItalic.woff2 +0 -0
- package/src/assets/scss/styles.scss +1 -0
- package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.stories.js +156 -0
- package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue +156 -0
- package/src/components/BackToTop/BackToTop.stories.js +24 -0
- package/src/components/BackToTop/BackToTop.vue +76 -0
- package/src/components/BaseAudio/BaseAudio.stories.js +29 -0
- package/src/components/BaseAudio/BaseAudio.vue +359 -0
- package/src/components/BaseButton/BaseButton.stories.ts +65 -0
- package/src/components/BaseButton/BaseButton.vue +114 -0
- package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.mdx +68 -0
- package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue +101 -0
- package/src/components/BaseHeading/BaseHeading.stories.js +75 -0
- package/src/components/BaseHeading/BaseHeading.vue +58 -0
- package/src/components/BaseImage/BaseImage.stories.ts +52 -0
- package/src/components/BaseImage/BaseImage.vue +120 -0
- package/src/components/BaseImageCaption/BaseImageCaption.stories.js +27 -0
- package/src/components/BaseImageCaption/BaseImageCaption.vue +51 -0
- package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.stories.js +73 -0
- package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.vue +90 -0
- package/src/components/BaseLightboxCloseButton/BaseLightboxCloseButton.vue +45 -0
- package/src/components/BaseLightboxOpenButton/BaseLightboxOpenButton.vue +46 -0
- package/src/components/BaseLink/BaseLink.stories.js +47 -0
- package/src/components/BaseLink/BaseLink.vue +227 -0
- package/src/components/BaseModal/BaseModal.stories.js +90 -0
- package/src/components/BaseModal/BaseModal.vue +54 -0
- package/src/components/BaseModal/BaseModalDialog.vue +59 -0
- package/src/components/BasePlaceholder/BasePlaceholder.stories.js +29 -0
- package/src/components/BasePlaceholder/BasePlaceholder.vue +30 -0
- package/src/components/BaseRadioGroup/BaseRadioGroup.stories.mdx +68 -0
- package/src/components/BaseRadioGroup/BaseRadioGroup.vue +102 -0
- package/src/components/BaseSwimlane/BaseSwimlane.stories.mdx +64 -0
- package/src/components/BaseSwimlane/BaseSwimlane.vue +204 -0
- package/src/components/BaseTag/BaseTag.stories.js +34 -0
- package/src/components/BaseTag/BaseTag.vue +36 -0
- package/src/components/BaseTimer/BaseTimer.stories.js +78 -0
- package/src/components/BaseTimer/BaseTimer.test.js +15 -0
- package/src/components/BaseTimer/BaseTimer.vue +270 -0
- package/src/components/BaseUnitToggle/BaseUnitToggle.stories.js +86 -0
- package/src/components/BaseUnitToggle/BaseUnitToggle.test.js +26 -0
- package/src/components/BaseUnitToggle/BaseUnitToggle.vue +255 -0
- package/src/components/BaseVideo/BaseVideo.stories.js +31 -0
- package/src/components/BaseVideo/BaseVideo.vue +73 -0
- package/src/components/BlockAnchor/BlockAnchor.vue +38 -0
- package/src/components/BlockAudio/BlockAudio.stories.js +29 -0
- package/src/components/BlockAudio/BlockAudio.vue +78 -0
- package/src/components/BlockCard/BlockCard.stories.js +24 -0
- package/src/components/BlockCard/BlockCard.vue +88 -0
- package/src/components/BlockCardGroup/BlockCardGroup.stories.js +71 -0
- package/src/components/BlockCardGroup/BlockCardGroup.vue +61 -0
- package/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.js +55 -0
- package/src/components/BlockCircleImageCard/BlockCircleImageCard.vue +120 -0
- package/src/components/BlockCta/BlockCta.stories.js +35 -0
- package/src/components/BlockCta/BlockCta.vue +55 -0
- package/src/components/BlockHeading/BlockHeading.stories.js +22 -0
- package/src/components/BlockHeading/BlockHeading.vue +27 -0
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.stories.js +40 -0
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.vue +84 -0
- package/src/components/BlockImage/BlockImage.stories.js +137 -0
- package/src/components/BlockImage/BlockImage.vue +48 -0
- package/src/components/BlockImage/BlockImageFullBleed.vue +119 -0
- package/src/components/BlockImage/BlockImageStandard.vue +106 -0
- package/src/components/BlockImageCarousel/BlockImageCarousel.stories.js +108 -0
- package/src/components/BlockImageCarousel/BlockImageCarousel.vue +201 -0
- package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.stories.js +63 -0
- package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.vue +120 -0
- package/src/components/BlockImageComparison/BlockImageComparison.stories.js +46 -0
- package/src/components/BlockImageComparison/BlockImageComparison.vue +59 -0
- package/src/components/BlockImageGallery/BlockImageGallery.stories.js +55 -0
- package/src/components/BlockImageGallery/BlockImageGallery.vue +128 -0
- package/src/components/BlockInlineImage/BlockInlineImage.stories.js +68 -0
- package/src/components/BlockInlineImage/BlockInlineImage.vue +124 -0
- package/src/components/BlockKeyPoints/BlockKeyPoints.stories.js +28 -0
- package/src/components/BlockKeyPoints/BlockKeyPoints.vue +48 -0
- package/src/components/BlockLinkCard/BlockLinkCard.stories.js +102 -0
- package/src/components/BlockLinkCard/BlockLinkCard.vue +197 -0
- package/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.js +217 -0
- package/src/components/BlockLinkCarousel/BlockLinkCarousel.vue +68 -0
- package/src/components/BlockLinkTile/BlockLinkTile.stories.js +72 -0
- package/src/components/BlockLinkTile/BlockLinkTile.vue +193 -0
- package/src/components/BlockListCards/BlockListCards.stories.js +69 -0
- package/src/components/BlockListCards/BlockListCards.vue +129 -0
- package/src/components/BlockQuote/BlockQuote.stories.js +84 -0
- package/src/components/BlockQuote/BlockQuote.vue +87 -0
- package/src/components/BlockRelatedLinks/BlockRelatedLinks.stories.js +60 -0
- package/src/components/BlockRelatedLinks/BlockRelatedLinks.vue +77 -0
- package/src/components/BlockRelatedLinks/RelatedLink.vue +85 -0
- package/src/components/BlockStreamfield/BlockStreamfield.stories.js +88 -0
- package/src/components/BlockStreamfield/BlockStreamfield.vue +333 -0
- package/src/components/BlockTable/BlockTable.stories.js +20 -0
- package/src/components/BlockTable/BlockTable.vue +73 -0
- package/src/components/BlockTeaser/BlockTeaser.stories.js +74 -0
- package/src/components/BlockTeaser/BlockTeaser.test.js +12 -0
- package/src/components/BlockTeaser/BlockTeaser.vue +174 -0
- package/src/components/BlockText/BlockText.stories.js +21 -0
- package/src/components/BlockText/BlockText.vue +44 -0
- package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.stories.js +19 -0
- package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.vue +61 -0
- package/src/components/BlockVideo/BlockVideo.stories.js +23 -0
- package/src/components/BlockVideo/BlockVideo.vue +41 -0
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.js +20 -0
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.vue +71 -0
- package/src/components/CalendarButton/CalendarButton.stories.js +36 -0
- package/src/components/CalendarButton/CalendarButton.vue +86 -0
- package/src/components/DetailHeadline/DetailHeadline.stories.js +48 -0
- package/src/components/DetailHeadline/DetailHeadline.vue +143 -0
- package/src/components/DsnWidget/DsnWidget.stories.js +29 -0
- package/src/components/DsnWidget/DsnWidget.vue +96 -0
- package/src/components/EventCard/EventCard.vue +188 -0
- package/src/components/EventDetailHero/EventDetailHero.stories.js +53 -0
- package/src/components/EventDetailHero/EventDetailHero.vue +64 -0
- package/src/components/FormContact/FormContact.stories.js +16 -0
- package/src/components/FormContact/FormContact.vue +202 -0
- package/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.js +16 -0
- package/src/components/FormNewsletterSignup/FormNewsletterSignup.vue +355 -0
- package/src/components/HeroLarge/HeroLarge.stories.js +46 -0
- package/src/components/HeroLarge/HeroLarge.vue +93 -0
- package/src/components/HeroListingIndex/HeroListingIndex.stories.js +156 -0
- package/src/components/HeroListingIndex/HeroListingIndex.vue +80 -0
- package/src/components/HeroMedia/HeroMedia.stories.js +135 -0
- package/src/components/HeroMedia/HeroMedia.vue +174 -0
- package/src/components/HeroMedium/HeroMedium.stories.js +73 -0
- package/src/components/HeroMedium/HeroMedium.vue +166 -0
- package/src/components/HomepageCarousel/HomepageCarousel.stories.js +112 -0
- package/src/components/HomepageCarousel/HomepageCarousel.vue +382 -0
- package/src/components/HomepageCarouselItem/HomepageCarouselItem.stories.js +60 -0
- package/src/components/HomepageCarouselItem/HomepageCarouselItem.vue +168 -0
- package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.stories.js +35 -0
- package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.vue +39 -0
- package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.stories.js +93 -0
- package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.vue +129 -0
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.js +153 -0
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.vue +282 -0
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarouselItem.vue +143 -0
- package/src/components/HomepageStats/HomepageStats.stories.js +155 -0
- package/src/components/HomepageStats/HomepageStats.vue +362 -0
- package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.stories.js +90 -0
- package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.vue +156 -0
- package/src/components/HomepageTeaserBlock/HomepageTeaserBlockCardImage.vue +58 -0
- package/src/components/Icons/Icon360.vue +29 -0
- package/src/components/Icons/IconArrow.vue +26 -0
- package/src/components/Icons/IconArrows.vue +43 -0
- package/src/components/Icons/IconAudio.vue +27 -0
- package/src/components/Icons/IconBook.vue +21 -0
- package/src/components/Icons/IconBookUser.vue +21 -0
- package/src/components/Icons/IconBriefcase.vue +21 -0
- package/src/components/Icons/IconCalendar.vue +25 -0
- package/src/components/Icons/IconCaret.vue +26 -0
- package/src/components/Icons/IconCheckbox.vue +26 -0
- package/src/components/Icons/IconCheckboxSelected.vue +35 -0
- package/src/components/Icons/IconClose.vue +27 -0
- package/src/components/Icons/IconCloseLightbox.vue +25 -0
- package/src/components/Icons/IconDownload.vue +31 -0
- package/src/components/Icons/IconDropdown.vue +25 -0
- package/src/components/Icons/IconEnvelope.vue +21 -0
- package/src/components/Icons/IconExpand.vue +28 -0
- package/src/components/Icons/IconExternal.vue +25 -0
- package/src/components/Icons/IconFilter.vue +25 -0
- package/src/components/Icons/IconForwardTen.vue +38 -0
- package/src/components/Icons/IconGrid.vue +25 -0
- package/src/components/Icons/IconHand.vue +21 -0
- package/src/components/Icons/IconInfo.vue +26 -0
- package/src/components/Icons/IconLink.vue +27 -0
- package/src/components/Icons/IconList.vue +25 -0
- package/src/components/Icons/IconLocation.vue +37 -0
- package/src/components/Icons/IconMagnifyingGlass.vue +21 -0
- package/src/components/Icons/IconMedal.vue +21 -0
- package/src/components/Icons/IconMenu.vue +27 -0
- package/src/components/Icons/IconMinus.vue +26 -0
- package/src/components/Icons/IconMute.vue +27 -0
- package/src/components/Icons/IconNext.vue +25 -0
- package/src/components/Icons/IconPause.vue +28 -0
- package/src/components/Icons/IconPlay.vue +28 -0
- package/src/components/Icons/IconPlus.vue +25 -0
- package/src/components/Icons/IconPrev.vue +25 -0
- package/src/components/Icons/IconRewindTen.vue +42 -0
- package/src/components/Icons/IconSearch.vue +25 -0
- package/src/components/Icons/IconShare.vue +30 -0
- package/src/components/Icons/IconSlideshow.vue +30 -0
- package/src/components/Icons/IconSocialEmail.vue +26 -0
- package/src/components/Icons/IconSocialFacebook.vue +26 -0
- package/src/components/Icons/IconSocialGoogleClassroom.vue +26 -0
- package/src/components/Icons/IconSocialInstagram.vue +35 -0
- package/src/components/Icons/IconSocialPinterest.vue +26 -0
- package/src/components/Icons/IconSocialReddit.vue +25 -0
- package/src/components/Icons/IconSocialTwitter.vue +25 -0
- package/src/components/Icons/IconSocialYoutube.vue +35 -0
- package/src/components/Icons/IconStop.vue +27 -0
- package/src/components/Icons/IconTime.vue +25 -0
- package/src/components/Icons/IconUniversity.vue +21 -0
- package/src/components/Icons/IconUser.vue +26 -0
- package/src/components/Icons/IconVolume.vue +27 -0
- package/src/components/Icons/Icons.stories.ts +440 -0
- package/src/components/ImageDetailContextImage/ImageDetailContextImage.vue +125 -0
- package/src/components/LayoutHelper/LayoutHelper.vue +38 -0
- package/src/components/LoadingTransition/LoadingTransition.vue +48 -0
- package/src/components/LogoCaltech/LogoCaltech.stories.js +39 -0
- package/src/components/LogoCaltech/LogoCaltech.vue +29 -0
- package/src/components/LogoTribrand/LogoTribrand.stories.js +76 -0
- package/src/components/LogoTribrand/LogoTribrand.vue +93 -0
- package/src/components/MissionDetailAbout/MissionDetailAbout.stories.js +70 -0
- package/src/components/MissionDetailAbout/MissionDetailAbout.vue +204 -0
- package/src/components/MissionDetailHero/MissionDetailHero.stories.js +303 -0
- package/src/components/MissionDetailHero/MissionDetailHero.vue +292 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.js +278 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlights.vue +332 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarousel.vue +160 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarouselItem.vue +123 -0
- package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.stories.js +43 -0
- package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.vue +97 -0
- package/src/components/MissionDetailStats/DistanceStats.test.js +133 -0
- package/src/components/MissionDetailStats/DistanceStats.vue +250 -0
- package/src/components/MissionDetailStats/MissionDetailStats.stories.js +95 -0
- package/src/components/MissionDetailStats/MissionDetailStats.test.js +23 -0
- package/src/components/MissionDetailStats/MissionDetailStats.vue +187 -0
- package/src/components/MissionDetailStats/MissionDetailStatsMicro.vue +52 -0
- package/src/components/MissionDetailStats/MissionDetailStatsMini.vue +109 -0
- package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.stories.js +55 -0
- package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.vue +95 -0
- package/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.ts +24 -0
- package/src/components/MixinAnimationCaret/MixinAnimationCaret.vue +81 -0
- package/src/components/MixinCarousel/MixinCarousel.docs.mdx +33 -0
- package/src/components/MixinCarousel/MixinCarousel.stories.js +53 -0
- package/src/components/MixinCarousel/MixinCarousel.vue +236 -0
- package/src/components/MixinDropdownToggle/MixinDropdownToggle.vue +53 -0
- package/src/components/MixinFancybox/MixinFancybox.vue +405 -0
- package/src/components/MixinFancybox/MixinFancyboxOpenButton.vue +35 -0
- package/src/components/MixinVideoBg/MixinVideoBg.stories.js +23 -0
- package/src/components/MixinVideoBg/MixinVideoBg.vue +39 -0
- package/src/components/NavDesktop/NavDesktop.stories.js +254 -0
- package/src/components/NavDesktop/NavDesktop.vue +355 -0
- package/src/components/NavDesktop/NavDesktopDropdown.vue +201 -0
- package/src/components/NavDesktop/NavDesktopDropdownContent.vue +87 -0
- package/src/components/NavDesktop/NavDesktopDropdownMore.vue +112 -0
- package/src/components/NavDesktop/NavDesktopTopHat.vue +56 -0
- package/src/components/NavHeading/NavHeading.stories.js +23 -0
- package/src/components/NavHeading/NavHeading.vue +40 -0
- package/src/components/NavHighlight/NavHighlight.stories.js +42 -0
- package/src/components/NavHighlight/NavHighlight.vue +67 -0
- package/src/components/NavLinkList/NavLinkList.stories.js +46 -0
- package/src/components/NavLinkList/NavLinkList.vue +66 -0
- package/src/components/NavLogoLinks/NavLogoLinks.stories.js +22 -0
- package/src/components/NavLogoLinks/NavLogoLinks.vue +57 -0
- package/src/components/NavMobile/NavMobile.stories.js +231 -0
- package/src/components/NavMobile/NavMobile.vue +280 -0
- package/src/components/NavMobile/NavMobileDropdown.vue +175 -0
- package/src/components/NavMobile/NavMobileLink.vue +69 -0
- package/src/components/NavMobile/NavMobileSecondaryDropdown.vue +124 -0
- package/src/components/NavSearchForm/NavSearchForm.stories.js +13 -0
- package/src/components/NavSearchForm/NavSearchForm.vue +102 -0
- package/src/components/NavSecondary/NavSecondary.stories.js +24 -0
- package/src/components/NavSecondary/NavSecondary.vue +191 -0
- package/src/components/NavSecondary/NavSecondaryDropdown.vue +181 -0
- package/src/components/NavSecondary/NavSecondaryDropdownContent.vue +140 -0
- package/src/components/NavSecondary/NavSecondaryLink.vue +62 -0
- package/src/components/NavSocial/NavSocial.stories.js +20 -0
- package/src/components/NavSocial/NavSocial.vue +97 -0
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.stories.js +60 -0
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.test.js +30 -0
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue +73 -0
- package/src/components/ParallaxContainer/ParallaxContainer.stories.js +47 -0
- package/src/components/ParallaxContainer/ParallaxContainer.vue +76 -0
- package/src/components/ParallaxElement/ParallaxElement.vue +25 -0
- package/src/components/PastEventsCarousel/PastEventsCarousel.vue +86 -0
- package/src/components/PodcastEpisodeCard/PodcastEpisodeCard.vue +251 -0
- package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.stories.js +235 -0
- package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.vue +171 -0
- package/src/components/ProfileDetailSectionGroup/ProfileDetailSectionGroup.vue +84 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.js +97 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.test.js +21 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.vue +217 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStatsMini.vue +182 -0
- package/src/components/SearchFilterGroup/SearchFilterGroup.stories.js +59 -0
- package/src/components/SearchFilterGroup/SearchFilterGroup.vue +221 -0
- package/src/components/SearchInput/SearchInput.stories.js +35 -0
- package/src/components/SearchInput/SearchInput.vue +93 -0
- package/src/components/SearchPagination/SearchPagination.stories.js +55 -0
- package/src/components/SearchPagination/SearchPagination.vue +173 -0
- package/src/components/SearchResultCard/SearchResultCard.stories.js +57 -0
- package/src/components/SearchResultCard/SearchResultCard.vue +282 -0
- package/src/components/SearchResultGridItem/SearchResultGridItem.stories.js +70 -0
- package/src/components/SearchResultGridItem/SearchResultGridItem.vue +140 -0
- package/src/components/SearchResultsList/SearchResultsList.vue +183 -0
- package/src/components/SearchSelectMenu/SearchSelectMenu.stories.js +25 -0
- package/src/components/SearchSelectMenu/SearchSelectMenu.vue +86 -0
- package/src/components/ShareButtons/ShareButtons.stories.js +16 -0
- package/src/components/ShareButtons/ShareButtons.vue +132 -0
- package/src/components/ShareButtonsEdu/ShareButtonsEdu.stories.js +14 -0
- package/src/components/ShareButtonsEdu/ShareButtonsEdu.vue +215 -0
- package/src/components/SkipLink/SkipLink.stories.js +9 -0
- package/src/components/SkipLink/SkipLink.vue +53 -0
- package/src/components/SwimlaneCTA/SwimlaneCTA.stories.mdx +77 -0
- package/src/components/SwimlaneCTA/SwimlaneCTA.vue +281 -0
- package/src/components/TheFooter/TheFooter.stories.js +602 -0
- package/src/components/TheFooter/TheFooter.vue +228 -0
- package/src/components/TheFooter/TheFooterSignUp.vue +61 -0
- package/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.js +106 -0
- package/src/components/ThumbnailCarousel/ThumbnailCarousel.vue +76 -0
- package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.stories.js +93 -0
- package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.vue +68 -0
- package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.js +38 -0
- package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.vue +104 -0
- package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.stories.js +84 -0
- package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.vue +112 -0
- package/src/components/TopicDetailMore/TopicDetailMore.stories.js +221 -0
- package/src/components/TopicDetailMore/TopicDetailMore.vue +124 -0
- package/src/components/TopicDetailMore/TopicDetailMoreVisibility.vue +51 -0
- package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.stories.js +116 -0
- package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.vue +130 -0
- package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.stories.js +34 -0
- package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.vue +98 -0
- package/src/components/YearTicker/YearTicker.stories.js +37 -0
- package/src/components/YearTicker/YearTicker.vue +132 -0
- package/src/docs/foundation/DynamicTokens.vue +106 -0
- package/src/docs/foundation/FontVariants.vue +80 -0
- package/src/docs/foundation/color.docs.mdx +112 -0
- package/src/docs/foundation/grid.docs.mdx +189 -0
- package/src/docs/foundation/grid.stories.js +263 -0
- package/src/docs/foundation/grid_layouthelpers.docs.mdx +78 -0
- package/src/docs/foundation/grid_layouthelpers.stories.js +53 -0
- package/src/docs/foundation/themes.docs.mdx +71 -0
- package/src/docs/foundation/themes.stories.js +63 -0
- package/src/docs/foundation/typography.docs.mdx +50 -0
- package/src/docs/foundation/typography.stories.js +119 -0
- package/src/interfaces.ts +129 -0
- package/src/main.ts +34 -0
- package/src/store/header.ts +40 -0
- package/src/store/theme.ts +27 -0
- package/src/templates/PageContent/PageContent.stories.js +92 -0
- package/src/templates/PageContent/PageContent.vue +140 -0
- package/src/templates/PageEventDetail/PageEventDetail.stories.js +104 -0
- package/src/templates/PageEventDetail/PageEventDetail.vue +358 -0
- package/src/templates/PageNewsDetail/PageNewsDetail.stories.js +158 -0
- package/src/templates/PageNewsDetail/PageNewsDetail.vue +242 -0
- package/src/templates/edu/PageEduNewsDetail.stories.js +64 -0
- package/src/templates/edu/PageEduNewsDetail.vue +155 -0
- package/src/templates/www/HomePage/HomePage.vue +30 -0
- package/src/utils/dayjs.js +32 -0
- package/src/utils/filters.js +33 -0
- package/src/utils/mixins.ts +353 -0
- package/src/vite-env.d.ts +1 -0
- package/tailwind.config.js +24 -0
- package/tsconfig.json +29 -0
- package/tsconfig.node.json +11 -0
- package/vite.config.ts +55 -0
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<img
|
|
4
|
+
:src="iContactTrackingGif"
|
|
5
|
+
alt=""
|
|
6
|
+
/>
|
|
7
|
+
<LayoutHelper indent="col-3">
|
|
8
|
+
<hr
|
|
9
|
+
ref="FormNewsletterSignup"
|
|
10
|
+
class="text-gray-light-mid mb-10"
|
|
11
|
+
/>
|
|
12
|
+
<!-- iContact form -->
|
|
13
|
+
<div
|
|
14
|
+
v-show="!submitted"
|
|
15
|
+
class="mb-10"
|
|
16
|
+
>
|
|
17
|
+
<form
|
|
18
|
+
id="ic_signupform"
|
|
19
|
+
:captcha-key="captchaKey"
|
|
20
|
+
captcha-theme="light"
|
|
21
|
+
new-captcha="true"
|
|
22
|
+
method="POST"
|
|
23
|
+
:action="iContactForm"
|
|
24
|
+
>
|
|
25
|
+
<BaseHeading
|
|
26
|
+
level="h2"
|
|
27
|
+
size="h6"
|
|
28
|
+
>Contact Information</BaseHeading
|
|
29
|
+
>
|
|
30
|
+
<div class="mt-8">
|
|
31
|
+
<label
|
|
32
|
+
id="email_label"
|
|
33
|
+
for="email"
|
|
34
|
+
class="text-gray-dark text-subtitle"
|
|
35
|
+
>
|
|
36
|
+
Email <span class="text-jpl-red">*</span>
|
|
37
|
+
</label>
|
|
38
|
+
<div class="mt-2">
|
|
39
|
+
<input
|
|
40
|
+
id="email"
|
|
41
|
+
v-model="prefilledEmail"
|
|
42
|
+
type="email"
|
|
43
|
+
name="data[email]"
|
|
44
|
+
required
|
|
45
|
+
aria-required="true"
|
|
46
|
+
aria-labelledby="email_label"
|
|
47
|
+
placeholder="enter your email"
|
|
48
|
+
class="w-full px-4 py-3"
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="mt-8">
|
|
53
|
+
<label
|
|
54
|
+
id="first_name_label"
|
|
55
|
+
for="first_name"
|
|
56
|
+
class="text-gray-dark text-subtitle"
|
|
57
|
+
>
|
|
58
|
+
First Name
|
|
59
|
+
</label>
|
|
60
|
+
<div class="mt-2">
|
|
61
|
+
<input
|
|
62
|
+
id="first_name"
|
|
63
|
+
type="text"
|
|
64
|
+
name="data[fname]"
|
|
65
|
+
maxlength="32"
|
|
66
|
+
aria-required="false"
|
|
67
|
+
aria-labelledby="first_name_label"
|
|
68
|
+
placeholder="enter your first name"
|
|
69
|
+
class="w-full px-4 py-3"
|
|
70
|
+
/>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="mt-8">
|
|
74
|
+
<label
|
|
75
|
+
id="last_name_label"
|
|
76
|
+
for="last_name"
|
|
77
|
+
class="text-gray-dark text-subtitle"
|
|
78
|
+
>
|
|
79
|
+
Last Name
|
|
80
|
+
</label>
|
|
81
|
+
<div class="mt-2">
|
|
82
|
+
<input
|
|
83
|
+
id="last_name"
|
|
84
|
+
type="text"
|
|
85
|
+
name="data[lname]"
|
|
86
|
+
maxlength="64"
|
|
87
|
+
aria-required="false"
|
|
88
|
+
aria-labelledby="last_name_label"
|
|
89
|
+
placeholder="enter your last name"
|
|
90
|
+
class="w-full px-4 py-3"
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
<div class="mt-8">
|
|
95
|
+
<label
|
|
96
|
+
id="zip_code_label"
|
|
97
|
+
for="zip_code"
|
|
98
|
+
class="text-gray-dark text-subtitle"
|
|
99
|
+
>
|
|
100
|
+
Zip
|
|
101
|
+
</label>
|
|
102
|
+
<div class="mt-2">
|
|
103
|
+
<input
|
|
104
|
+
id="zip_code"
|
|
105
|
+
type="text"
|
|
106
|
+
name="data[zip]"
|
|
107
|
+
pattern="[0-9]{5-10}"
|
|
108
|
+
maxlength="10"
|
|
109
|
+
title="Five digit zip code"
|
|
110
|
+
aria-required="false"
|
|
111
|
+
aria-labelledby="zip_code_label"
|
|
112
|
+
placeholder="enter your 5-digit zip code"
|
|
113
|
+
class="w-full px-4 py-3"
|
|
114
|
+
/>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
<BaseHeading
|
|
118
|
+
level="h2"
|
|
119
|
+
size="h6"
|
|
120
|
+
class="mt-12"
|
|
121
|
+
>
|
|
122
|
+
Subscribe to Email Groups
|
|
123
|
+
</BaseHeading>
|
|
124
|
+
<div
|
|
125
|
+
dataname="listGroups"
|
|
126
|
+
data-label="Which email groups would you like to join?"
|
|
127
|
+
>
|
|
128
|
+
<div class="mt-8">
|
|
129
|
+
<BaseRadioGroup
|
|
130
|
+
heading="JPL News"
|
|
131
|
+
sub-heading="Choose how frequently you want to receive updates (opt out anytime):"
|
|
132
|
+
group="email"
|
|
133
|
+
title="Email Groups"
|
|
134
|
+
preselected="breaking"
|
|
135
|
+
:options="emailGroups"
|
|
136
|
+
/>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="mt-8">
|
|
139
|
+
<BaseCheckboxGroup
|
|
140
|
+
heading="JPL Education Updates"
|
|
141
|
+
sub-heading="The JPL Education Office also offers email updates about classroom activities and workshops for educators, projects and competitons for K-12 students and internship opportunities at JPL and NASA."
|
|
142
|
+
group="education"
|
|
143
|
+
title="Education Email Groups"
|
|
144
|
+
:options="eduEmailGroups"
|
|
145
|
+
/>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="mt-4 lg:mt-8 submit-container">
|
|
149
|
+
<BaseButton
|
|
150
|
+
type="submit"
|
|
151
|
+
variant="primary"
|
|
152
|
+
>Submit</BaseButton
|
|
153
|
+
>
|
|
154
|
+
</div>
|
|
155
|
+
</form>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<!-- success -->
|
|
159
|
+
<div
|
|
160
|
+
v-show="submitted"
|
|
161
|
+
class="pt-10 text-center"
|
|
162
|
+
>
|
|
163
|
+
<BaseHeading level="h2">Thank you!</BaseHeading>
|
|
164
|
+
<div
|
|
165
|
+
class="text-jpl-aqua h-22 w-22 p-5 mx-auto my-8 text-6xl font-bold border-4 rounded-full"
|
|
166
|
+
>
|
|
167
|
+
✓
|
|
168
|
+
</div>
|
|
169
|
+
<p class="text-h6">Check your inbox to verify your email.</p>
|
|
170
|
+
</div>
|
|
171
|
+
</LayoutHelper>
|
|
172
|
+
<div class="hidden-container"></div>
|
|
173
|
+
</div>
|
|
174
|
+
</template>
|
|
175
|
+
<script lang="ts">
|
|
176
|
+
// @ts-nocheck
|
|
177
|
+
import { defineComponent } from 'vue'
|
|
178
|
+
import qs from 'qs'
|
|
179
|
+
import LayoutHelper from './../LayoutHelper/LayoutHelper.vue'
|
|
180
|
+
import BaseHeading from './../BaseHeading/BaseHeading.vue'
|
|
181
|
+
import BaseButton from './../BaseButton/BaseButton.vue'
|
|
182
|
+
import BaseRadioGroup from './../BaseRadioGroup/BaseRadioGroup.vue'
|
|
183
|
+
import BaseCheckboxGroup from './../BaseCheckboxGroup/BaseCheckboxGroup.vue'
|
|
184
|
+
|
|
185
|
+
const iContactForm =
|
|
186
|
+
'https://app.icontact.com/icp/core/mycontacts/signup/designer/form/?id=5&cid=1389932&lid=11365'
|
|
187
|
+
|
|
188
|
+
const captchaKey = '6LeCZCcUAAAAALhxcQ5fN80W6Wa2K3GqRQK6WRjA'
|
|
189
|
+
|
|
190
|
+
const iContactTrackingGif =
|
|
191
|
+
'https://app.icontact.com/icp/core/signup/tracking.gif?id=5&cid=1389932&lid=11365'
|
|
192
|
+
|
|
193
|
+
const emailGroups = [
|
|
194
|
+
{
|
|
195
|
+
id: 'breaking',
|
|
196
|
+
title: 'Latest News',
|
|
197
|
+
text: 'All JPL News delivered immediately',
|
|
198
|
+
value: '41031',
|
|
199
|
+
alt: 'Lists',
|
|
200
|
+
name: 'data[listGroups][]'
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: 'daily',
|
|
204
|
+
title: 'Day in Review',
|
|
205
|
+
text: 'Daily JPL news summary',
|
|
206
|
+
value: '41032',
|
|
207
|
+
alt: 'Lists',
|
|
208
|
+
name: 'data[listGroups][]'
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: 'weekly',
|
|
212
|
+
title: 'Week in Review',
|
|
213
|
+
text: 'Weekly JPL news summary',
|
|
214
|
+
value: '41033',
|
|
215
|
+
alt: 'Lists',
|
|
216
|
+
name: 'data[listGroups][]'
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: 'monthly',
|
|
220
|
+
title: 'Month in Review',
|
|
221
|
+
text: 'Monthly JPL news summary',
|
|
222
|
+
value: '41034',
|
|
223
|
+
alt: 'Lists',
|
|
224
|
+
name: 'data[listGroups][]'
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
|
|
228
|
+
const eduEmailGroups = [
|
|
229
|
+
{
|
|
230
|
+
id: 'educators',
|
|
231
|
+
title: 'Educators',
|
|
232
|
+
text: null,
|
|
233
|
+
value: '21583',
|
|
234
|
+
alt: 'Lists',
|
|
235
|
+
name: 'data[listGroups][]'
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: 'educator-workshop',
|
|
239
|
+
title: 'Educators Workshops',
|
|
240
|
+
text: 'Southern California',
|
|
241
|
+
value: '51343',
|
|
242
|
+
alt: 'Lists',
|
|
243
|
+
name: 'data[listGroups][]'
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
id: 'students',
|
|
247
|
+
title: 'Students K-12',
|
|
248
|
+
text: null,
|
|
249
|
+
value: '29483',
|
|
250
|
+
alt: 'Lists',
|
|
251
|
+
name: 'data[listGroups][]'
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: 'internships',
|
|
255
|
+
title: 'Internships',
|
|
256
|
+
text: null,
|
|
257
|
+
value: '29484',
|
|
258
|
+
alt: 'Lists',
|
|
259
|
+
name: 'data[listGroups][]'
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
|
|
263
|
+
export default defineComponent({
|
|
264
|
+
name: 'FormNewsletterSignup',
|
|
265
|
+
components: {
|
|
266
|
+
LayoutHelper,
|
|
267
|
+
BaseHeading,
|
|
268
|
+
BaseButton,
|
|
269
|
+
BaseCheckboxGroup,
|
|
270
|
+
BaseRadioGroup
|
|
271
|
+
},
|
|
272
|
+
data() {
|
|
273
|
+
return {
|
|
274
|
+
prefilledEmail: null,
|
|
275
|
+
submitted: false,
|
|
276
|
+
iContactForm,
|
|
277
|
+
iContactTrackingGif,
|
|
278
|
+
captchaKey,
|
|
279
|
+
emailGroups,
|
|
280
|
+
eduEmailGroups
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
mounted() {
|
|
284
|
+
if (this.$route && this.$route.query.email != null) {
|
|
285
|
+
this.prefilledEmail = this.$route.query.email
|
|
286
|
+
}
|
|
287
|
+
const validationScript = document.createElement('script')
|
|
288
|
+
validationScript.setAttribute(
|
|
289
|
+
'src',
|
|
290
|
+
'https://app.icontact.com/icp/static/form/javascripts/validation-captcha.js'
|
|
291
|
+
)
|
|
292
|
+
const trackingScript = document.createElement('script')
|
|
293
|
+
trackingScript.setAttribute(
|
|
294
|
+
'src',
|
|
295
|
+
'https://app.icontact.com/icp/static/form/javascripts/tracking.js'
|
|
296
|
+
)
|
|
297
|
+
document.head.appendChild(validationScript, trackingScript)
|
|
298
|
+
},
|
|
299
|
+
methods: {
|
|
300
|
+
focus(elem) {
|
|
301
|
+
window.scrollTo(0, elem.offsetTop + 100)
|
|
302
|
+
elem.focus()
|
|
303
|
+
},
|
|
304
|
+
validate(e) {
|
|
305
|
+
const fields = ['email']
|
|
306
|
+
const data = {}
|
|
307
|
+
for (const index in fields) {
|
|
308
|
+
const key = fields[index]
|
|
309
|
+
const elem = e.target.elements[key]
|
|
310
|
+
if (elem.value === '') {
|
|
311
|
+
this.focus(elem)
|
|
312
|
+
const name = key.replace('_', ' ')
|
|
313
|
+
alert('Please fill out the ' + name + ' field.')
|
|
314
|
+
return false
|
|
315
|
+
} else {
|
|
316
|
+
data[key] = elem.value
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
return data
|
|
320
|
+
},
|
|
321
|
+
submit(e) {
|
|
322
|
+
const data = this.validate(e)
|
|
323
|
+
if (data !== false) {
|
|
324
|
+
this.reveal()
|
|
325
|
+
const request = {
|
|
326
|
+
method: 'POST',
|
|
327
|
+
headers: {
|
|
328
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
|
329
|
+
},
|
|
330
|
+
body: qs.stringify({
|
|
331
|
+
'data[email]': data.email,
|
|
332
|
+
'data[fname]': data.first_name,
|
|
333
|
+
'data[lname]': data.last_name,
|
|
334
|
+
'data[zip]': data.zip_code,
|
|
335
|
+
'data[listGroups][]': data.listGroups
|
|
336
|
+
})
|
|
337
|
+
}
|
|
338
|
+
fetch(iContactForm, request)
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
reveal() {
|
|
342
|
+
this.submitted = true
|
|
343
|
+
if (this.$refs && this.$refs.FormNewsletterSignup) {
|
|
344
|
+
this.$scrollTo(this.$refs.FormNewsletterSignup, 0, { offset: 100 })
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
})
|
|
349
|
+
</script>
|
|
350
|
+
|
|
351
|
+
<style lang="css">
|
|
352
|
+
html {
|
|
353
|
+
scroll-padding-top: 150px;
|
|
354
|
+
}
|
|
355
|
+
</style>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import HeroLarge from './HeroLarge.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Heroes/HeroLarge',
|
|
5
|
+
component: HeroLarge,
|
|
6
|
+
excludeStories: /.*Data$/,
|
|
7
|
+
parameters: {
|
|
8
|
+
viewMode: 'canvas'
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const HeroLargeData = {
|
|
13
|
+
title: 'FreeClimber: LEMUR 3',
|
|
14
|
+
description:
|
|
15
|
+
'Crawl, walk and even climb rock walls, this robot was designed to operate in extreme terrains.',
|
|
16
|
+
heroImage: {
|
|
17
|
+
// beach
|
|
18
|
+
src: {
|
|
19
|
+
url: 'https://picsum.photos/id/973/1800/1200',
|
|
20
|
+
width: 1800,
|
|
21
|
+
height: 1200
|
|
22
|
+
},
|
|
23
|
+
// lake
|
|
24
|
+
srcSet:
|
|
25
|
+
'https://picsum.photos/id/865/768/548 768w, https://picsum.photos/id/865/1024/684 1024w, https://picsum.photos/id/865/1440/770 1440w, https://picsum.photos/id/865/1800/963 1800w',
|
|
26
|
+
// jungle
|
|
27
|
+
screenMd: {
|
|
28
|
+
url: 'https://picsum.photos/id/921/800/640'
|
|
29
|
+
},
|
|
30
|
+
// desert
|
|
31
|
+
screenSm: {
|
|
32
|
+
url: 'https://picsum.photos/id/247/640/900'
|
|
33
|
+
},
|
|
34
|
+
alt: 'Robotics detail page hero image'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// stories
|
|
39
|
+
export const Hero = {
|
|
40
|
+
name: 'HeroLarge',
|
|
41
|
+
args: {
|
|
42
|
+
eyebrow: 'Robotics at JPL',
|
|
43
|
+
...HeroLargeData,
|
|
44
|
+
image: HeroLargeData.heroImage
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="HeroLarge max-w-screen-3xl relative mx-auto">
|
|
3
|
+
<div class="absolute inset-0 z-10 bg-black">
|
|
4
|
+
<picture v-if="image && image.src">
|
|
5
|
+
<source
|
|
6
|
+
media="(min-width: 768px)"
|
|
7
|
+
:srcset="image.srcSet"
|
|
8
|
+
/>
|
|
9
|
+
<source
|
|
10
|
+
media="(min-width: 420px)"
|
|
11
|
+
:srcset="image.screenMd.url"
|
|
12
|
+
/>
|
|
13
|
+
<source :srcset="image.screenSm.url" />
|
|
14
|
+
<img
|
|
15
|
+
class="md:object-right object-cover object-bottom w-full h-full"
|
|
16
|
+
:src="image.src.url"
|
|
17
|
+
:width="image.src.width"
|
|
18
|
+
:height="image.src.height"
|
|
19
|
+
:alt="image.alt"
|
|
20
|
+
/>
|
|
21
|
+
</picture>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="content-wrapper lg:flex lg:items-center relative z-20 w-full h-full">
|
|
24
|
+
<div
|
|
25
|
+
class="bg-gradient-to-t lg:bg-gradient-to-l from-transparent-w25 lg:from-transparent-w50 to-transparent-black-50 lg:to-transparent-black-50 absolute inset-0"
|
|
26
|
+
></div>
|
|
27
|
+
<div class="text-contrast relative w-full text-white">
|
|
28
|
+
<div class="lg:py-0 pb-80 container pt-8 mx-auto">
|
|
29
|
+
<div
|
|
30
|
+
class="lg:px-10 2xl:px-0 lg:pt-6 lg:pb-18 px-4"
|
|
31
|
+
:class="{ 'pt-10': hasOverlay }"
|
|
32
|
+
>
|
|
33
|
+
<div
|
|
34
|
+
v-if="eyebrow"
|
|
35
|
+
class="lg:mb-6 font-secondary mb-4 text-base font-semibold tracking-wider no-underline uppercase"
|
|
36
|
+
>
|
|
37
|
+
{{ eyebrow }}
|
|
38
|
+
<span class="sr-only">.</span>
|
|
39
|
+
</div>
|
|
40
|
+
<h1
|
|
41
|
+
v-if="title"
|
|
42
|
+
class="lg:w-3/4 xl:w-3/5 xl:text-10xl lg:text-9xl md:text-8xl text-7xl lg:tracking-tightest lg:leading-tighter mb-5 font-bold leading-tight uppercase"
|
|
43
|
+
>
|
|
44
|
+
{{ title }}
|
|
45
|
+
</h1>
|
|
46
|
+
<p
|
|
47
|
+
v-if="summary"
|
|
48
|
+
class="lg:w-1/2 2xl:w-2/5 xl:text-6xl lg:text-4xl md:text-2xl lg:leading-tight text-lg font-medium"
|
|
49
|
+
>
|
|
50
|
+
{{ summary }}
|
|
51
|
+
</p>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
<script lang="ts">
|
|
59
|
+
import { defineComponent } from 'vue'
|
|
60
|
+
import { mixinTransparentHeader } from './../../utils/mixins'
|
|
61
|
+
export default defineComponent({
|
|
62
|
+
name: 'HeroLarge',
|
|
63
|
+
props: {
|
|
64
|
+
eyebrow: {
|
|
65
|
+
type: String,
|
|
66
|
+
required: false
|
|
67
|
+
},
|
|
68
|
+
title: {
|
|
69
|
+
type: String,
|
|
70
|
+
required: false
|
|
71
|
+
},
|
|
72
|
+
summary: {
|
|
73
|
+
type: String,
|
|
74
|
+
required: false
|
|
75
|
+
},
|
|
76
|
+
image: {
|
|
77
|
+
type: Object,
|
|
78
|
+
required: false
|
|
79
|
+
},
|
|
80
|
+
// If secondary nav is also on this page, will add more space above hero text
|
|
81
|
+
hasOverlay: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: false
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
mounted() {
|
|
87
|
+
mixinTransparentHeader()
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
</script>
|
|
91
|
+
<style lang="scss" scoped>
|
|
92
|
+
@import '@explorer-1/common/src/scss/components/HeroLarge';
|
|
93
|
+
</style>
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import videoMp4 from '@explorer-1/common-storybook/src/videos/NASA-Mars-Helicopter-IngenuityAnimations-7sec.mp4'
|
|
2
|
+
import videoWebm from '@explorer-1/common-storybook/src/videos/NASA-Mars-Helicopter-IngenuityAnimations-7sec.webm'
|
|
3
|
+
import HeroListingIndex from './HeroListingIndex.vue'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Components/Heroes/HeroListingIndex',
|
|
7
|
+
component: HeroListingIndex,
|
|
8
|
+
parameters: {
|
|
9
|
+
viewMode: 'canvas'
|
|
10
|
+
},
|
|
11
|
+
excludeStories: /.*Data$/
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// data
|
|
15
|
+
export const HeroListingIndexData = {
|
|
16
|
+
listingPage: {
|
|
17
|
+
featured: {
|
|
18
|
+
topicLabel: 'Mars',
|
|
19
|
+
url: '/news/new-maps-open-roads-to-research/',
|
|
20
|
+
title: 'Creating Robots to go Where Humans Can’t',
|
|
21
|
+
image: {
|
|
22
|
+
src: {
|
|
23
|
+
url: 'https://picsum.photos/id/973/1800/1200',
|
|
24
|
+
width: 1800,
|
|
25
|
+
height: 1200
|
|
26
|
+
},
|
|
27
|
+
srcSet:
|
|
28
|
+
'https://picsum.photos/id/865/768/548 768w, https://picsum.photos/id/865/1024/684 1024w, https://picsum.photos/id/865/1440/770 1440w, https://picsum.photos/id/865/1800/963 1800w',
|
|
29
|
+
screenMd: {
|
|
30
|
+
url: 'https://picsum.photos/id/921/800/640'
|
|
31
|
+
},
|
|
32
|
+
screenSm: {
|
|
33
|
+
url: 'https://picsum.photos/id/247/640/900'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// templates
|
|
41
|
+
|
|
42
|
+
export const Default = {
|
|
43
|
+
args: {
|
|
44
|
+
customLabel: 'Featured',
|
|
45
|
+
pageData: HeroListingIndexData.listingPage
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const NewsImageHero = {
|
|
50
|
+
args: {
|
|
51
|
+
customLabel: 'Featured',
|
|
52
|
+
pageData: {
|
|
53
|
+
featured: {
|
|
54
|
+
topicLabel: 'Mars',
|
|
55
|
+
url: '/news/new-maps-open-roads-to-research/',
|
|
56
|
+
title: 'Creating Robots to go Where Humans Can’t',
|
|
57
|
+
heroBlocks: [
|
|
58
|
+
{
|
|
59
|
+
blockType: 'ImageChooserBlock',
|
|
60
|
+
listingPageHeroImage: {
|
|
61
|
+
src: {
|
|
62
|
+
url: 'https://picsum.photos/id/973/1800/1200',
|
|
63
|
+
width: 1800,
|
|
64
|
+
height: 1200
|
|
65
|
+
},
|
|
66
|
+
srcSet:
|
|
67
|
+
'https://picsum.photos/id/865/768/548 768w, https://picsum.photos/id/865/1024/684 1024w, https://picsum.photos/id/865/1440/770 1440w, https://picsum.photos/id/865/1800/963 1800w',
|
|
68
|
+
screenMd: {
|
|
69
|
+
url: 'https://picsum.photos/id/921/800/640'
|
|
70
|
+
},
|
|
71
|
+
screenSm: {
|
|
72
|
+
url: 'https://picsum.photos/id/247/640/900'
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const NewsVideoHero = {
|
|
83
|
+
args: {
|
|
84
|
+
customLabel: 'Featured',
|
|
85
|
+
pageData: {
|
|
86
|
+
featured: {
|
|
87
|
+
topicLabel: 'Mars',
|
|
88
|
+
url: '/news/new-maps-open-roads-to-research/',
|
|
89
|
+
title: 'Creating Robots to go Where Humans Can’t',
|
|
90
|
+
heroBlocks: [
|
|
91
|
+
{
|
|
92
|
+
blockType: 'VideoBlock',
|
|
93
|
+
video: {
|
|
94
|
+
file: videoMp4,
|
|
95
|
+
fileWebm: videoWebm
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export const NewsCarouselHero = {
|
|
105
|
+
args: {
|
|
106
|
+
customLabel: 'Featured',
|
|
107
|
+
pageData: {
|
|
108
|
+
featured: {
|
|
109
|
+
topicLabel: 'Mars',
|
|
110
|
+
url: '/news/new-maps-open-roads-to-research/',
|
|
111
|
+
title: 'Creating Robots to go Where Humans Can’t',
|
|
112
|
+
heroBlocks: [
|
|
113
|
+
{
|
|
114
|
+
blockType: 'CarouselBlock',
|
|
115
|
+
blocks: [
|
|
116
|
+
{
|
|
117
|
+
listingPageHeroImage: {
|
|
118
|
+
src: {
|
|
119
|
+
url: 'https://picsum.photos/id/973/1800/1200',
|
|
120
|
+
width: 1800,
|
|
121
|
+
height: 1200
|
|
122
|
+
},
|
|
123
|
+
srcSet:
|
|
124
|
+
'https://picsum.photos/id/865/768/548 768w, https://picsum.photos/id/865/1024/684 1024w, https://picsum.photos/id/865/1440/770 1440w, https://picsum.photos/id/865/1800/963 1800w',
|
|
125
|
+
screenMd: {
|
|
126
|
+
url: 'https://picsum.photos/id/921/800/640'
|
|
127
|
+
},
|
|
128
|
+
screenSm: {
|
|
129
|
+
url: 'https://picsum.photos/id/247/640/900'
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
listingPageHeroImage: {
|
|
135
|
+
src: {
|
|
136
|
+
url: 'https://picsum.photos/id/973/1800/1200',
|
|
137
|
+
width: 1800,
|
|
138
|
+
height: 1200
|
|
139
|
+
},
|
|
140
|
+
srcSet:
|
|
141
|
+
'https://picsum.photos/id/865/768/548 768w, https://picsum.photos/id/865/1024/684 1024w, https://picsum.photos/id/865/1440/770 1440w, https://picsum.photos/id/865/1800/963 1800w',
|
|
142
|
+
screenMd: {
|
|
143
|
+
url: 'https://picsum.photos/id/921/800/640'
|
|
144
|
+
},
|
|
145
|
+
screenSm: {
|
|
146
|
+
url: 'https://picsum.photos/id/247/640/900'
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|