@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,228 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<footer class="TheFooter bg-dark-blue edu:bg-stars edu:bg-primary text-white relative z-20">
|
|
3
|
+
<div class="footer-main lg:BaseGrid 3xl:px-0 lg:pt-20 container px-4 pt-10 mx-auto">
|
|
4
|
+
<div class="footer-navigation lg:block lg:col-span-9 hidden col-span-12">
|
|
5
|
+
<!-- footerNavigation -->
|
|
6
|
+
<div
|
|
7
|
+
v-if="data && data.footerNavigation"
|
|
8
|
+
class="sm:grid grid-cols-9 gap-6"
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
v-for="(item, index) in data.footerNavigation"
|
|
12
|
+
:key="index"
|
|
13
|
+
class="sm:mb-3 xl:col-span-2 md:col-span-3 col-span-4 mb-8"
|
|
14
|
+
>
|
|
15
|
+
<div class="text-subtitle text-blue edu:text-white mb-3">
|
|
16
|
+
{{ getLinkText(item.titleLink) }}
|
|
17
|
+
</div>
|
|
18
|
+
<BaseLink
|
|
19
|
+
v-for="(link, index_links) in item.links"
|
|
20
|
+
:key="index_links"
|
|
21
|
+
variant="none"
|
|
22
|
+
link-class="can-hover:hover:underline inline-block px-4 py-1 -ml-4"
|
|
23
|
+
:href="link.path && !getRouterLink(link) ? link.path : null"
|
|
24
|
+
:to="getRouterLink(link) ? getRouterLink(link) : null"
|
|
25
|
+
>
|
|
26
|
+
{{ getLinkText(link) }}
|
|
27
|
+
</BaseLink>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<!-- footer extras -->
|
|
32
|
+
<div class="footer-extras lg:col-span-3 col-span-12">
|
|
33
|
+
<!-- email sign up -->
|
|
34
|
+
<div class="text-subtitle text-blue edu:text-white lg:mb-5 mb-3">
|
|
35
|
+
Get the Latest from JPL
|
|
36
|
+
</div>
|
|
37
|
+
<TheFooterSignUp class="lg:mb-10 mb-8" />
|
|
38
|
+
<!-- social media -->
|
|
39
|
+
<div class="text-subtitle text-blue edu:text-white lg:mb-5 mb-3">Follow Us</div>
|
|
40
|
+
<NavSocial
|
|
41
|
+
class="lg:mb-14 mb-12"
|
|
42
|
+
dark
|
|
43
|
+
/>
|
|
44
|
+
<!-- caltech aside -->
|
|
45
|
+
<BaseLink
|
|
46
|
+
variant="none"
|
|
47
|
+
href="https://caltech.edu"
|
|
48
|
+
aria-label="Caltech"
|
|
49
|
+
class="lg:mb-8 mb-5"
|
|
50
|
+
link-class="inline-block"
|
|
51
|
+
>
|
|
52
|
+
<LogoCaltech class="lg:text-base text-sm text-white" />
|
|
53
|
+
</BaseLink>
|
|
54
|
+
<p class="mb-12">
|
|
55
|
+
JPL is a federally funded research and development center managed for NASA by Caltech.
|
|
56
|
+
</p>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
<!-- more from JPL buttons / links -->
|
|
60
|
+
<div
|
|
61
|
+
v-if="data && data.footerMoreFromJpl"
|
|
62
|
+
class="3xl:px-0 container px-4 mx-auto mt-5"
|
|
63
|
+
>
|
|
64
|
+
<div class="text-subtitle text-blue edu:text-white mb-5">More from JPL</div>
|
|
65
|
+
<div class="lg:block hidden">
|
|
66
|
+
<BaseButton
|
|
67
|
+
v-for="(item, index) in data.footerMoreFromJpl"
|
|
68
|
+
:key="index"
|
|
69
|
+
:href="item.path"
|
|
70
|
+
:to="item.linkPage ? item.linkPage.url : ''"
|
|
71
|
+
:target="item.path ? '_blank' : '_self'"
|
|
72
|
+
variant="dark"
|
|
73
|
+
class="mb-5 mr-8"
|
|
74
|
+
>
|
|
75
|
+
{{ getLinkText(item) }}
|
|
76
|
+
</BaseButton>
|
|
77
|
+
</div>
|
|
78
|
+
<!-- Repeated as BaseLink because the style is so drastically different between desktop and mobile -->
|
|
79
|
+
<!-- TODO: achieve this completely with CSS and not two different components (much refactor) -->
|
|
80
|
+
<div class="lg:hidden auto-col-2">
|
|
81
|
+
<BaseLink
|
|
82
|
+
v-for="(item, index) in data.footerMoreFromJpl"
|
|
83
|
+
:key="index"
|
|
84
|
+
variant="none"
|
|
85
|
+
link-class="can-hover:hover:underline inline-block px-4 py-1 -ml-4"
|
|
86
|
+
:href="item.path ? item.path : null"
|
|
87
|
+
:to="item.linkPage ? item.linkPage.url : null"
|
|
88
|
+
>
|
|
89
|
+
{{ getLinkText(item) }}
|
|
90
|
+
</BaseLink>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<!-- Dark section of footer -->
|
|
94
|
+
<div class="bg-opacity-15 lg:py-16 lg:mt-10 pt-10 pb-3 mt-8 bg-black">
|
|
95
|
+
<div class="3xl:px-0 container px-4 mx-auto">
|
|
96
|
+
<div v-if="data && data.relatedNasaSites">
|
|
97
|
+
<div class="text-subtitle text-blue edu:text-white mb-5">Related NASA Sites</div>
|
|
98
|
+
<div class="auto-col-4">
|
|
99
|
+
<BaseLink
|
|
100
|
+
v-for="(item, index) in data.relatedNasaSites"
|
|
101
|
+
:key="index"
|
|
102
|
+
variant="none"
|
|
103
|
+
link-class="can-hover:hover:underline inline-block px-4 py-1 -ml-4"
|
|
104
|
+
:href="item.path ? item.path : null"
|
|
105
|
+
:to="item.linkPage ? item.linkPage.url : null"
|
|
106
|
+
>
|
|
107
|
+
{{ getLinkText(item) }}
|
|
108
|
+
</BaseLink>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
<!-- footer meta. complex layout markup bc of differences between mobile / desktop -->
|
|
114
|
+
<div
|
|
115
|
+
class="bg-opacity-15 border-opacity-40 lg:border-t pt-5 pb-3 text-sm bg-black border-black"
|
|
116
|
+
>
|
|
117
|
+
<div class="3xl:px-0 lg:flex lg:flex-wrap lg:px-4 lg:container justify-between mx-auto">
|
|
118
|
+
<div
|
|
119
|
+
v-if="data && data.footerLinks"
|
|
120
|
+
class="divide-opacity-40 lg:justify-start lg:-ml-4 flex flex-wrap justify-center mb-2 divide-x divide-white"
|
|
121
|
+
>
|
|
122
|
+
<BaseLink
|
|
123
|
+
v-for="(item, index) in data.footerLinks"
|
|
124
|
+
:key="index"
|
|
125
|
+
variant="none"
|
|
126
|
+
class="lg:mb-2 mb-5"
|
|
127
|
+
link-class="can-hover:hover:underline inline-block px-4 py-1 font-bold leading-none"
|
|
128
|
+
:href="item.path ? item.path : null"
|
|
129
|
+
:to="item.linkPage ? item.linkPage.url : null"
|
|
130
|
+
>
|
|
131
|
+
{{ getLinkText(item) }}
|
|
132
|
+
</BaseLink>
|
|
133
|
+
</div>
|
|
134
|
+
<div
|
|
135
|
+
v-if="data && data.footerMeta"
|
|
136
|
+
class="lg:text-left lg:border-0 border-opacity-40 lg:pt-0 lg:px-0 px-4 pt-5 mb-4 text-center border-t border-black"
|
|
137
|
+
>
|
|
138
|
+
<div
|
|
139
|
+
v-if="commitSha"
|
|
140
|
+
class="lg:inline-block lg:mb-0 block px-3 mb-2"
|
|
141
|
+
>
|
|
142
|
+
<span class="text-gray-light font-bold">Version:</span>
|
|
143
|
+
<span>{{ commitSha }}</span>
|
|
144
|
+
</div>
|
|
145
|
+
<div
|
|
146
|
+
v-for="(item, index) in data.footerMeta"
|
|
147
|
+
:key="index"
|
|
148
|
+
class="lg:inline-block lg:mb-0 block mb-2"
|
|
149
|
+
:class="{ 'ml-5': index !== 0 }"
|
|
150
|
+
>
|
|
151
|
+
<span class="font-bold">{{ item.label }}:</span>
|
|
152
|
+
<span>{{ item.text }}</span>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
<div v-else>
|
|
156
|
+
<div
|
|
157
|
+
v-if="commitSha != null"
|
|
158
|
+
class="lg:inline-block lg:mb-0 block px-3 mb-2"
|
|
159
|
+
>
|
|
160
|
+
<span class="text-gray-light font-bold">Version:</span>
|
|
161
|
+
<span>{{ commitSha }}</span>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
</footer>
|
|
167
|
+
</template>
|
|
168
|
+
<script lang="ts">
|
|
169
|
+
// @ts-nocheck
|
|
170
|
+
import { defineComponent } from 'vue'
|
|
171
|
+
import { mixinGetRouterLink, mixinGetLinkText } from './../../utils/mixins'
|
|
172
|
+
import BaseLink from './../BaseLink/BaseLink.vue'
|
|
173
|
+
import BaseButton from './../BaseButton/BaseButton.vue'
|
|
174
|
+
import NavSocial from './../NavSocial/NavSocial.vue'
|
|
175
|
+
import TheFooterSignUp from './../TheFooter/TheFooterSignUp.vue'
|
|
176
|
+
import LogoCaltech from './../LogoCaltech/LogoCaltech.vue'
|
|
177
|
+
|
|
178
|
+
export default defineComponent({
|
|
179
|
+
name: 'TheFooter',
|
|
180
|
+
components: {
|
|
181
|
+
BaseLink,
|
|
182
|
+
BaseButton,
|
|
183
|
+
NavSocial,
|
|
184
|
+
TheFooterSignUp,
|
|
185
|
+
LogoCaltech
|
|
186
|
+
},
|
|
187
|
+
props: {
|
|
188
|
+
data: {
|
|
189
|
+
type: Object || null,
|
|
190
|
+
required: false,
|
|
191
|
+
default: null
|
|
192
|
+
},
|
|
193
|
+
commitSha: {
|
|
194
|
+
type: String,
|
|
195
|
+
required: false
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
methods: {
|
|
199
|
+
getLinkText(link) {
|
|
200
|
+
return mixinGetLinkText(link)
|
|
201
|
+
},
|
|
202
|
+
getRouterLink(link) {
|
|
203
|
+
return mixinGetRouterLink(link)
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
})
|
|
207
|
+
</script>
|
|
208
|
+
<style lang="scss">
|
|
209
|
+
.TheFooter {
|
|
210
|
+
.auto-col-2 {
|
|
211
|
+
@screen sm {
|
|
212
|
+
column-count: 2;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.auto-col-4 {
|
|
217
|
+
@screen sm {
|
|
218
|
+
column-count: 2;
|
|
219
|
+
}
|
|
220
|
+
@screen lg {
|
|
221
|
+
column-count: 3;
|
|
222
|
+
}
|
|
223
|
+
@screen 2xl {
|
|
224
|
+
column-count: 4;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
</style>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<form class="TheFooterSignup">
|
|
3
|
+
<div class="border-opacity-40 relative flex items-center border border-white">
|
|
4
|
+
<input
|
|
5
|
+
v-model="email"
|
|
6
|
+
class="EmailInput border-0 text-opacity-90 pl-14 relative z-10 w-full py-3 pr-3 text-sm text-white bg-transparent"
|
|
7
|
+
type="email"
|
|
8
|
+
name="email"
|
|
9
|
+
required
|
|
10
|
+
placeholder="Enter your email address"
|
|
11
|
+
aria-label="Email"
|
|
12
|
+
/>
|
|
13
|
+
<div class="absolute inset-0 flex items-center">
|
|
14
|
+
<button
|
|
15
|
+
type="submit"
|
|
16
|
+
class="relative z-20 p-3 pl-5"
|
|
17
|
+
aria-label="Submit"
|
|
18
|
+
@click.prevent="submit"
|
|
19
|
+
>
|
|
20
|
+
<IconSocialEmail class="text-xl text-white" />
|
|
21
|
+
</button>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</form>
|
|
25
|
+
</template>
|
|
26
|
+
<script lang="ts">
|
|
27
|
+
import { defineComponent } from 'vue'
|
|
28
|
+
import IconSocialEmail from './../Icons/IconSocialEmail.vue'
|
|
29
|
+
|
|
30
|
+
export default defineComponent({
|
|
31
|
+
name: 'TheFooterSignUp',
|
|
32
|
+
components: {
|
|
33
|
+
IconSocialEmail
|
|
34
|
+
},
|
|
35
|
+
data() {
|
|
36
|
+
return {
|
|
37
|
+
email: null
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
methods: {
|
|
41
|
+
submit() {
|
|
42
|
+
// TODO: Make it work w/ Router Push and get callback from iContact API
|
|
43
|
+
// this.$router.push({
|
|
44
|
+
// name: 'JPL Newsletter Signup',
|
|
45
|
+
// path: '/newsletter-signup',
|
|
46
|
+
// query: {
|
|
47
|
+
// email: this.email,
|
|
48
|
+
// },
|
|
49
|
+
// })
|
|
50
|
+
window.location.href = '/newsletter-signup?email=' + this.email
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
</script>
|
|
55
|
+
<style lang="scss">
|
|
56
|
+
.TheFooterSignup {
|
|
57
|
+
.EmailInput::placeholder {
|
|
58
|
+
@apply text-white text-opacity-40;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import ThumbnailCarousel from './ThumbnailCarousel.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/ThumbnailCarousel',
|
|
5
|
+
component: ThumbnailCarousel,
|
|
6
|
+
parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
description: {
|
|
9
|
+
component:
|
|
10
|
+
'Ideal for use in a tabbed carousel. See `PodcastSeriesCarousel` and `PageImageDetail` for usage examples. Styled with three cards and a basic card style with a square image.'
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
excludeStories: /.*Data$/
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const ThumbnailCarouselData = {
|
|
18
|
+
slides: [
|
|
19
|
+
{
|
|
20
|
+
url: '/podcasts/on-a-mission/season-1/episode-1',
|
|
21
|
+
title: 'Episode 1',
|
|
22
|
+
thumbnailImage: {
|
|
23
|
+
src: {
|
|
24
|
+
url: 'https://picsum.photos/430/430',
|
|
25
|
+
width: 430,
|
|
26
|
+
height: 430
|
|
27
|
+
},
|
|
28
|
+
alt: 'Alt text'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
url: '/podcasts/on-a-mission/season-1/episode-2',
|
|
33
|
+
title: 'Episode 2',
|
|
34
|
+
thumbnailImage: {
|
|
35
|
+
src: {
|
|
36
|
+
url: 'https://picsum.photos/430/430',
|
|
37
|
+
width: 430,
|
|
38
|
+
height: 430
|
|
39
|
+
},
|
|
40
|
+
alt: 'Alt text'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
url: '/podcasts/on-a-mission/season-1/episode-3',
|
|
45
|
+
title: 'Episode 3',
|
|
46
|
+
thumbnailImage: {
|
|
47
|
+
src: {
|
|
48
|
+
url: 'https://picsum.photos/430/430',
|
|
49
|
+
width: 430,
|
|
50
|
+
height: 430
|
|
51
|
+
},
|
|
52
|
+
alt: 'Alt text'
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
url: '/podcasts/on-a-mission/season-1/episode-4',
|
|
57
|
+
title: 'Episode 4',
|
|
58
|
+
thumbnailImage: {
|
|
59
|
+
src: {
|
|
60
|
+
url: 'https://picsum.photos/430/430',
|
|
61
|
+
width: 430,
|
|
62
|
+
height: 430
|
|
63
|
+
},
|
|
64
|
+
alt: 'Alt text'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
url: '/podcasts/on-a-mission/season-1/episode-5',
|
|
69
|
+
title: 'Episode 5',
|
|
70
|
+
thumbnailImage: {
|
|
71
|
+
src: {
|
|
72
|
+
url: 'https://picsum.photos/430/430',
|
|
73
|
+
width: 430,
|
|
74
|
+
height: 430
|
|
75
|
+
},
|
|
76
|
+
alt: 'Alt text'
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
url: '/podcasts/on-a-mission/season-1/episode-6',
|
|
81
|
+
title: 'Episode 6',
|
|
82
|
+
thumbnailImage: {
|
|
83
|
+
src: {
|
|
84
|
+
url: 'https://picsum.photos/430/430',
|
|
85
|
+
width: 430,
|
|
86
|
+
height: 430
|
|
87
|
+
},
|
|
88
|
+
alt: 'Alt text'
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
url: '/podcasts/on-a-mission/season-1/episode-7',
|
|
93
|
+
title: 'Episode 7',
|
|
94
|
+
thumbnailImage: {
|
|
95
|
+
src: {
|
|
96
|
+
url: 'https://picsum.photos/430/430',
|
|
97
|
+
width: 430,
|
|
98
|
+
height: 430
|
|
99
|
+
},
|
|
100
|
+
alt: 'Alt text'
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export const Default = { args: ThumbnailCarouselData }
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<MixinCarousel
|
|
3
|
+
v-if="slides"
|
|
4
|
+
class="ThumbnailCarousel"
|
|
5
|
+
:initial-slide="initialSlide"
|
|
6
|
+
:slides-per-view="3"
|
|
7
|
+
>
|
|
8
|
+
<!-- Slides -->
|
|
9
|
+
<SearchResultGridItem
|
|
10
|
+
v-for="(item, index) in slides"
|
|
11
|
+
:key="index"
|
|
12
|
+
:url="item.url"
|
|
13
|
+
:title="item.title"
|
|
14
|
+
:image="item.thumbnailImage"
|
|
15
|
+
class="swiper-slide"
|
|
16
|
+
/>
|
|
17
|
+
</MixinCarousel>
|
|
18
|
+
</template>
|
|
19
|
+
<script lang="ts">
|
|
20
|
+
import { defineComponent } from 'vue'
|
|
21
|
+
import type { PropType } from 'vue'
|
|
22
|
+
import type { ImageObject } from '../../interfaces'
|
|
23
|
+
import MixinCarousel from './../MixinCarousel/MixinCarousel.vue'
|
|
24
|
+
import SearchResultGridItem from './../SearchResultGridItem/SearchResultGridItem.vue'
|
|
25
|
+
|
|
26
|
+
interface Slide {
|
|
27
|
+
url: string
|
|
28
|
+
title: string
|
|
29
|
+
thumbnailImage: Partial<ImageObject>
|
|
30
|
+
}
|
|
31
|
+
export default defineComponent({
|
|
32
|
+
name: 'ThumbnailCarousel',
|
|
33
|
+
components: {
|
|
34
|
+
MixinCarousel,
|
|
35
|
+
SearchResultGridItem
|
|
36
|
+
},
|
|
37
|
+
props: {
|
|
38
|
+
slides: {
|
|
39
|
+
type: Array as PropType<Partial<Slide>[]>,
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
initialSlide: {
|
|
43
|
+
type: Number,
|
|
44
|
+
required: false,
|
|
45
|
+
default: 0
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
})
|
|
49
|
+
</script>
|
|
50
|
+
<style lang="scss">
|
|
51
|
+
.ThumbnailCarousel {
|
|
52
|
+
&.-cards {
|
|
53
|
+
.swiper {
|
|
54
|
+
.swiper-navigation {
|
|
55
|
+
padding-top: 29.5%;
|
|
56
|
+
|
|
57
|
+
.swiper-prev,
|
|
58
|
+
.swiper-next {
|
|
59
|
+
@apply transform -translate-y-1/2;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.nuxt-link-exact-active {
|
|
66
|
+
> p {
|
|
67
|
+
@apply font-semibold;
|
|
68
|
+
|
|
69
|
+
span {
|
|
70
|
+
padding-bottom: 0.2rem;
|
|
71
|
+
@apply border-b-2 border-jpl-red;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
</style>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import TopicDetailMissionCarousel from './TopicDetailMissionCarousel.vue'
|
|
2
|
+
export default {
|
|
3
|
+
title: 'WWW/TopicDetail/MissionCarousel/TopicDetailMissionCarousel',
|
|
4
|
+
component: TopicDetailMissionCarousel,
|
|
5
|
+
excludeStories: /.*Data$/
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const TopicDetailMissionCarouselData = [
|
|
9
|
+
{
|
|
10
|
+
clockType: 'time_in_orbit',
|
|
11
|
+
showClock: true,
|
|
12
|
+
startDateTime: '2018-10-22T19:00:00+00:00',
|
|
13
|
+
status: 'current',
|
|
14
|
+
thumbnailImage: {
|
|
15
|
+
src: {
|
|
16
|
+
url: 'https://picsum.photos/560/620',
|
|
17
|
+
width: 560,
|
|
18
|
+
height: 620
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
title: 'Gravity Recovery and Climate Experiment Follow-On',
|
|
22
|
+
url: '/missions/gravity-recovery-and-climate-experiment-follow-on-grace-fo/'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
clockType: 'time_on_mars',
|
|
26
|
+
showClock: true,
|
|
27
|
+
startDateTime: '2018-05-05T15:00:00+00:00',
|
|
28
|
+
status: 'current',
|
|
29
|
+
thumbnailImage: {
|
|
30
|
+
src: {
|
|
31
|
+
url: 'https://picsum.photos/560/620',
|
|
32
|
+
width: 560,
|
|
33
|
+
height: 620
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
title: 'InSight',
|
|
37
|
+
url: '/missions/insight/'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
clockType: 'countdown',
|
|
41
|
+
showClock: false,
|
|
42
|
+
startDateTime: null,
|
|
43
|
+
status: 'current',
|
|
44
|
+
thumbnailImage: {
|
|
45
|
+
src: {
|
|
46
|
+
url: 'https://picsum.photos/560/620',
|
|
47
|
+
width: 560,
|
|
48
|
+
height: 620
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
title: 'Atmospheric Infrared Sounder',
|
|
52
|
+
url: '/missions/atmospheric-infrared-sounder-airs/'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
clockType: 'countdown',
|
|
56
|
+
showClock: false,
|
|
57
|
+
startDateTime: null,
|
|
58
|
+
status: 'past',
|
|
59
|
+
thumbnailImage: {
|
|
60
|
+
src: {
|
|
61
|
+
url: 'https://picsum.photos/560/620',
|
|
62
|
+
width: 560,
|
|
63
|
+
height: 620
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
title: 'Dawn',
|
|
67
|
+
url: '/missions/dawn/'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
clockType: 'countdown',
|
|
71
|
+
showClock: false,
|
|
72
|
+
startDateTime: null,
|
|
73
|
+
status: 'current',
|
|
74
|
+
thumbnailImage: {
|
|
75
|
+
src: {
|
|
76
|
+
url: 'https://picsum.photos/560/620',
|
|
77
|
+
width: 560,
|
|
78
|
+
height: 620
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
title: 'Deep Space Atomic Clock',
|
|
82
|
+
url: '/missions/deep-space-atomic-clock-dsac/'
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
// stories
|
|
86
|
+
export const Default = {
|
|
87
|
+
args: {
|
|
88
|
+
title: 'Mars',
|
|
89
|
+
relatedMissionsLinkUrl: 'http://localhost:3000/missions?mission_target=Mars',
|
|
90
|
+
relatedMissionsLinkText: 'All Mars missions',
|
|
91
|
+
items: TopicDetailMissionCarouselData
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="hasContent"
|
|
4
|
+
class="TopicDetailMissionCarousel overflow-hidden"
|
|
5
|
+
>
|
|
6
|
+
<div class="MixedBleedGrid 2xl:pl-0 pl-5 mb-10">
|
|
7
|
+
<div
|
|
8
|
+
class="col-start-indent-col-2 2xl:col-start-indent-col-3 col-end-bleed bg-gray-light lg:pl-0 lg:py-10 py-8 pl-5"
|
|
9
|
+
>
|
|
10
|
+
<!-- TODO: on mission listings page, use query params to filter search -->
|
|
11
|
+
<MixinCarousel
|
|
12
|
+
heading="Missions"
|
|
13
|
+
variant="tiles"
|
|
14
|
+
class="pb-5"
|
|
15
|
+
:center="false"
|
|
16
|
+
:slides-per-view="3"
|
|
17
|
+
:link="relatedMissionsLinkUrl ? relatedMissionsLinkUrl : undefined"
|
|
18
|
+
:link-title="relatedMissionsLinkText"
|
|
19
|
+
>
|
|
20
|
+
<!-- Slides -->
|
|
21
|
+
<TopicDetailMissionCarouselItem
|
|
22
|
+
v-for="(item, index) in items"
|
|
23
|
+
:key="index"
|
|
24
|
+
:data="item"
|
|
25
|
+
class="swiper-slide"
|
|
26
|
+
/>
|
|
27
|
+
</MixinCarousel>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
<script lang="ts">
|
|
33
|
+
import { defineComponent } from 'vue'
|
|
34
|
+
import type { PropType } from 'vue'
|
|
35
|
+
import type { Slide } from './../TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.vue'
|
|
36
|
+
import MixinCarousel from './../MixinCarousel/MixinCarousel.vue'
|
|
37
|
+
import TopicDetailMissionCarouselItem from './../TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.vue'
|
|
38
|
+
|
|
39
|
+
export default defineComponent({
|
|
40
|
+
name: 'TopicDetailMissionCarousel',
|
|
41
|
+
components: {
|
|
42
|
+
MixinCarousel,
|
|
43
|
+
TopicDetailMissionCarouselItem
|
|
44
|
+
},
|
|
45
|
+
props: {
|
|
46
|
+
relatedMissionsLinkUrl: {
|
|
47
|
+
type: String,
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
relatedMissionsLinkText: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: false
|
|
53
|
+
},
|
|
54
|
+
items: {
|
|
55
|
+
type: Array as PropType<Slide[]>,
|
|
56
|
+
required: false
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
computed: {
|
|
60
|
+
hasContent() {
|
|
61
|
+
if (this.items && this.items.length) {
|
|
62
|
+
return true
|
|
63
|
+
}
|
|
64
|
+
return false
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
})
|
|
68
|
+
</script>
|
package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// the base component should really be a single vue component with a "type" prop where the user can select between card and list, but this works well enough for a demo atm.
|
|
2
|
+
|
|
3
|
+
import TopicDetailMissionCarouselItem from './TopicDetailMissionCarouselItem.vue'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'WWW/TopicDetail/MissionCarousel/TopicDetailMissionCarouselItem',
|
|
7
|
+
component: TopicDetailMissionCarouselItem,
|
|
8
|
+
decorators: [
|
|
9
|
+
() => ({
|
|
10
|
+
template: `<div id="storyDecorator" class="relative lg:w-1/3"><story/></div>`
|
|
11
|
+
})
|
|
12
|
+
],
|
|
13
|
+
parameters: {
|
|
14
|
+
html: {
|
|
15
|
+
root: '#storyDecorator'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
excludeStories: /.*Data$/
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// shared data
|
|
22
|
+
export const TopicDetailMissionCarouselItemData = {
|
|
23
|
+
clockType: 'time_in_orbit',
|
|
24
|
+
showClock: true,
|
|
25
|
+
startDateTime: '2018-10-22T19:00:00+00:00',
|
|
26
|
+
status: 'current',
|
|
27
|
+
thumbnailImage: {
|
|
28
|
+
src: {
|
|
29
|
+
url: 'https://picsum.photos/560/620',
|
|
30
|
+
width: 560,
|
|
31
|
+
height: 620
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
title: 'Gravity Recovery and Climate Experiment Follow-On',
|
|
35
|
+
url: '/missions/gravity-recovery-and-climate-experiment-follow-on-grace-fo/'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const SingleItem = { args: { data: TopicDetailMissionCarouselItemData } }
|