@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,96 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="data"
|
|
4
|
+
class="lg:col-span-3 sm:col-span-5 col-span-full"
|
|
5
|
+
>
|
|
6
|
+
<template v-if="data.link">
|
|
7
|
+
<BaseLink
|
|
8
|
+
variant="none"
|
|
9
|
+
:target="data.linkTarget ? '_blank' : '_self'"
|
|
10
|
+
:href="data.link"
|
|
11
|
+
link-class="block"
|
|
12
|
+
>
|
|
13
|
+
<p
|
|
14
|
+
v-if="data.heading"
|
|
15
|
+
class="text-subtitle text-jpl-red mb-4"
|
|
16
|
+
>
|
|
17
|
+
{{ data.heading }}
|
|
18
|
+
</p>
|
|
19
|
+
</BaseLink>
|
|
20
|
+
</template>
|
|
21
|
+
<template v-else>
|
|
22
|
+
<p
|
|
23
|
+
v-if="data.heading"
|
|
24
|
+
class="text-subtitle text-jpl-red mb-4"
|
|
25
|
+
>
|
|
26
|
+
{{ data.heading }}
|
|
27
|
+
</p>
|
|
28
|
+
</template>
|
|
29
|
+
<!-- if no data, spacecraftName will be null -->
|
|
30
|
+
<template v-if="data.spacecraftName">
|
|
31
|
+
<p
|
|
32
|
+
v-if="data.transmitTitle"
|
|
33
|
+
class="text-body-sm mb-4"
|
|
34
|
+
>
|
|
35
|
+
{{ data.transmitTitle }}
|
|
36
|
+
</p>
|
|
37
|
+
<p
|
|
38
|
+
v-if="data.spacecraftName"
|
|
39
|
+
class="text-stats-lg"
|
|
40
|
+
>
|
|
41
|
+
{{ data.spacecraftName }}
|
|
42
|
+
</p>
|
|
43
|
+
<div class="text-gray-mid-dark flex flex-nowrap items-center justify-start mt-2 text-sm">
|
|
44
|
+
<span
|
|
45
|
+
v-if="data.transmitStatus === 'both' || data.transmitStatus === 'sending'"
|
|
46
|
+
class="animate-pulse mr-1"
|
|
47
|
+
>
|
|
48
|
+
<span class="sr-only">
|
|
49
|
+
{{ data.spacecraftName }} is sending to {{ data.location }}.
|
|
50
|
+
</span>
|
|
51
|
+
<IconArrows class="-ml-1" />
|
|
52
|
+
</span>
|
|
53
|
+
<span
|
|
54
|
+
v-if="data.location"
|
|
55
|
+
class="mr-1"
|
|
56
|
+
aria-hidden="true"
|
|
57
|
+
>
|
|
58
|
+
{{ data.location }}
|
|
59
|
+
</span>
|
|
60
|
+
<span
|
|
61
|
+
v-if="data.transmitStatus === 'both' || data.transmitStatus === 'receiving'"
|
|
62
|
+
class="animate-pulse"
|
|
63
|
+
>
|
|
64
|
+
<span class="sr-only">
|
|
65
|
+
{{ data.spacecraftName }} is receiving from {{ data.location }}.
|
|
66
|
+
</span>
|
|
67
|
+
<IconArrows />
|
|
68
|
+
</span>
|
|
69
|
+
</div>
|
|
70
|
+
</template>
|
|
71
|
+
<template v-else>
|
|
72
|
+
<p class="text-body-sm">Data currently unavailable</p>
|
|
73
|
+
</template>
|
|
74
|
+
</div>
|
|
75
|
+
</template>
|
|
76
|
+
<script lang="ts">
|
|
77
|
+
import { defineComponent } from 'vue'
|
|
78
|
+
import BaseLink from './../BaseLink/BaseLink.vue'
|
|
79
|
+
import IconArrows from './../Icons/IconArrows.vue'
|
|
80
|
+
/**
|
|
81
|
+
* Displays dsn widget data. API is parsed by the backend. Frontend retrieves via a graphQL query.
|
|
82
|
+
*/
|
|
83
|
+
export default defineComponent({
|
|
84
|
+
name: 'DsnWidget',
|
|
85
|
+
components: {
|
|
86
|
+
BaseLink,
|
|
87
|
+
IconArrows
|
|
88
|
+
},
|
|
89
|
+
props: {
|
|
90
|
+
data: {
|
|
91
|
+
type: Object,
|
|
92
|
+
required: false
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
</script>
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<BaseLink
|
|
3
|
+
variant="none"
|
|
4
|
+
:to="url"
|
|
5
|
+
class="SearchResultCard EventCard"
|
|
6
|
+
link-class="block"
|
|
7
|
+
>
|
|
8
|
+
<div
|
|
9
|
+
class="border-gray-light-mid lg:pb-10 lg:mb-10 relative grid grid-cols-9 gap-7 pb-6 mb-6 border-b"
|
|
10
|
+
>
|
|
11
|
+
<div class="col-span-6 md:order-last">
|
|
12
|
+
<BaseHeading
|
|
13
|
+
v-if="title"
|
|
14
|
+
:level="headingLevel"
|
|
15
|
+
size="h3"
|
|
16
|
+
class="mb-4"
|
|
17
|
+
>{{ title }}
|
|
18
|
+
</BaseHeading>
|
|
19
|
+
<p
|
|
20
|
+
v-if="summary"
|
|
21
|
+
class="text-gray-dark text-body-sm mb-3 hidden md:block"
|
|
22
|
+
>
|
|
23
|
+
{{ summary }}
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
<div class="md:mt-10 text-xl md:flex">
|
|
27
|
+
<div class="EventCard__Metadata flex text-primary text-body-sm">
|
|
28
|
+
<IconCalendar class="relative mr-3" />
|
|
29
|
+
<span> {{ formattedEventDates }}</span>
|
|
30
|
+
</div>
|
|
31
|
+
<div
|
|
32
|
+
v-show="displayTime"
|
|
33
|
+
class="EventCard__Metadata hidden md:flex text-primary text-body-sm"
|
|
34
|
+
>
|
|
35
|
+
<IconTime class="relative mr-3" />
|
|
36
|
+
<span>{{ displayTime }}</span>
|
|
37
|
+
</div>
|
|
38
|
+
<div
|
|
39
|
+
v-if="location"
|
|
40
|
+
class="EventCard__Metadata flex text-primary text-body-sm"
|
|
41
|
+
>
|
|
42
|
+
<IconLocation class="relative mr-3" />
|
|
43
|
+
<span>{{ location }}</span>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div
|
|
48
|
+
v-if="image"
|
|
49
|
+
class="SearchResultCard-image col-span-3 md:order-first"
|
|
50
|
+
>
|
|
51
|
+
<BaseImagePlaceholder
|
|
52
|
+
aspect-ratio="square"
|
|
53
|
+
responsive-aspect-ratio="md:aspect-ratio-four-three"
|
|
54
|
+
>
|
|
55
|
+
<BaseImage
|
|
56
|
+
v-if="image.src"
|
|
57
|
+
:src="image.src.url"
|
|
58
|
+
:width="image.src.width"
|
|
59
|
+
:height="image.src.height"
|
|
60
|
+
alt=""
|
|
61
|
+
object-fit-class="cover"
|
|
62
|
+
loading="lazy"
|
|
63
|
+
/>
|
|
64
|
+
<div
|
|
65
|
+
v-if="splitDate"
|
|
66
|
+
class="hidden md:block absolute top-0 left-0 z-10 px-4 py-4 text-center text-white bg-primary"
|
|
67
|
+
>
|
|
68
|
+
<div class="font-extrabold text-6xl leading-tight tracking-wider">
|
|
69
|
+
{{ splitDate.day }}
|
|
70
|
+
</div>
|
|
71
|
+
<div class="text-subtitle">
|
|
72
|
+
{{ splitDate.monthAndYear }}
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</BaseImagePlaceholder>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</BaseLink>
|
|
79
|
+
</template>
|
|
80
|
+
|
|
81
|
+
<script lang="ts">
|
|
82
|
+
import type { PropType } from 'vue'
|
|
83
|
+
import { defineComponent } from 'vue'
|
|
84
|
+
import {
|
|
85
|
+
mixinFormatEventDates,
|
|
86
|
+
mixinFormatSplitEventDates,
|
|
87
|
+
mixinFormatEventTimeInHoursAndMinutes
|
|
88
|
+
} from './../../utils/mixins'
|
|
89
|
+
import BaseLink from './../BaseLink/BaseLink.vue'
|
|
90
|
+
import BaseHeading from './../BaseHeading/BaseHeading.vue'
|
|
91
|
+
import BaseImage from './../BaseImage/BaseImage.vue'
|
|
92
|
+
import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
|
|
93
|
+
import type { HeadingLevel } from './../BaseHeading/BaseHeading.vue'
|
|
94
|
+
|
|
95
|
+
export default defineComponent({
|
|
96
|
+
name: 'EventCard',
|
|
97
|
+
components: {
|
|
98
|
+
BaseLink,
|
|
99
|
+
BaseHeading,
|
|
100
|
+
BaseImage,
|
|
101
|
+
BaseImagePlaceholder
|
|
102
|
+
},
|
|
103
|
+
props: {
|
|
104
|
+
url: {
|
|
105
|
+
type: String,
|
|
106
|
+
required: false,
|
|
107
|
+
default: '#'
|
|
108
|
+
},
|
|
109
|
+
title: {
|
|
110
|
+
type: String,
|
|
111
|
+
required: false
|
|
112
|
+
},
|
|
113
|
+
summary: {
|
|
114
|
+
type: String,
|
|
115
|
+
required: false
|
|
116
|
+
},
|
|
117
|
+
startTime: {
|
|
118
|
+
type: String,
|
|
119
|
+
required: false
|
|
120
|
+
},
|
|
121
|
+
startDate: {
|
|
122
|
+
type: String,
|
|
123
|
+
required: false
|
|
124
|
+
},
|
|
125
|
+
endTime: {
|
|
126
|
+
type: String,
|
|
127
|
+
required: false
|
|
128
|
+
},
|
|
129
|
+
endDate: {
|
|
130
|
+
type: String,
|
|
131
|
+
required: false
|
|
132
|
+
},
|
|
133
|
+
location: {
|
|
134
|
+
type: String,
|
|
135
|
+
required: false
|
|
136
|
+
},
|
|
137
|
+
image: {
|
|
138
|
+
type: Object,
|
|
139
|
+
required: false
|
|
140
|
+
},
|
|
141
|
+
headingLevel: {
|
|
142
|
+
type: (String as PropType<HeadingLevel>) || null,
|
|
143
|
+
required: false,
|
|
144
|
+
default: 'h5'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
computed: {
|
|
148
|
+
splitDate(): { day: string; monthAndYear: string } | null {
|
|
149
|
+
if (this.startDate) {
|
|
150
|
+
return mixinFormatSplitEventDates(this.startDate, this.endDate)
|
|
151
|
+
}
|
|
152
|
+
return null
|
|
153
|
+
},
|
|
154
|
+
displayTime(): string | undefined {
|
|
155
|
+
if (this.startDate) {
|
|
156
|
+
return mixinFormatEventTimeInHoursAndMinutes(this.startDate, this.endDate, this.endTime)
|
|
157
|
+
}
|
|
158
|
+
return undefined
|
|
159
|
+
},
|
|
160
|
+
formattedEventDates() {
|
|
161
|
+
return this.startDate ? mixinFormatEventDates(this.startDate, this.endDate) : undefined
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
})
|
|
165
|
+
</script>
|
|
166
|
+
<style lang="scss">
|
|
167
|
+
.EventCard {
|
|
168
|
+
.EventCard__Metadata {
|
|
169
|
+
@apply items-baseline;
|
|
170
|
+
@apply mr-0;
|
|
171
|
+
@apply mb-4;
|
|
172
|
+
@apply md:mb-0;
|
|
173
|
+
@apply md:mr-3;
|
|
174
|
+
@apply lg:mr-6;
|
|
175
|
+
|
|
176
|
+
span {
|
|
177
|
+
max-width: 230px;
|
|
178
|
+
min-width: 110px;
|
|
179
|
+
@apply text-gray-dark;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
svg {
|
|
183
|
+
min-width: 1.25rem;
|
|
184
|
+
@apply top-0.5;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
</style>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import EventDetailHero from './EventDetailHero.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'WWW/EventDetail/EventDetailHero',
|
|
5
|
+
component: EventDetailHero,
|
|
6
|
+
decorators: [
|
|
7
|
+
() => ({
|
|
8
|
+
template: `<div id="storyDecorator" class="max-w-screen-3xl mx-auto"><story/></div>`
|
|
9
|
+
})
|
|
10
|
+
],
|
|
11
|
+
parameters: {
|
|
12
|
+
html: {
|
|
13
|
+
root: '#storyDecorator'
|
|
14
|
+
},
|
|
15
|
+
themes: {
|
|
16
|
+
clearable: false,
|
|
17
|
+
list: [
|
|
18
|
+
{
|
|
19
|
+
name: 'FullWidthDocs',
|
|
20
|
+
class: 'sbdocs-preview-full-width',
|
|
21
|
+
default: true,
|
|
22
|
+
visible: false
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
viewMode: 'docs'
|
|
27
|
+
},
|
|
28
|
+
excludeStories: /.*Data$/
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const EventDetailHeroData = {
|
|
32
|
+
heroImage: {
|
|
33
|
+
srcSet: 'https://picsum.photos/320/200 320w, https://picsum.photos/1920/1200 1440w',
|
|
34
|
+
src: {
|
|
35
|
+
url: 'https://picsum.photos/1920/1200',
|
|
36
|
+
width: 1920,
|
|
37
|
+
height: 1200
|
|
38
|
+
},
|
|
39
|
+
alt: 'The hero image'
|
|
40
|
+
},
|
|
41
|
+
startDateSplit: {
|
|
42
|
+
day: '25',
|
|
43
|
+
monthAndYear: 'Jan. 2020'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// stories
|
|
48
|
+
export const Default = {
|
|
49
|
+
args: {
|
|
50
|
+
image: EventDetailHeroData.heroImage,
|
|
51
|
+
startDateSplit: EventDetailHeroData.startDateSplit
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="image"
|
|
4
|
+
class="HeroMedia mb-10 md:mb-10 lg:mb-14 -mx-4 lg:mx-0"
|
|
5
|
+
>
|
|
6
|
+
<div class="bg-gray-light">
|
|
7
|
+
<div class="relative flex items-center mx-auto overflow-hidden vh-crop max-w-screen-3xl">
|
|
8
|
+
<div class="hero">
|
|
9
|
+
<img
|
|
10
|
+
v-if="image.src"
|
|
11
|
+
class="object-cover object-center w-full h-full"
|
|
12
|
+
:srcset="getSrcSet"
|
|
13
|
+
:src="image.src.url"
|
|
14
|
+
:width="image.src.width"
|
|
15
|
+
:height="image.src.height"
|
|
16
|
+
:alt="image.alt"
|
|
17
|
+
/>
|
|
18
|
+
<div
|
|
19
|
+
v-if="startDateSplit"
|
|
20
|
+
class="absolute top-0 left-0 z-10 px-4 py-4 text-center text-white bg-primary"
|
|
21
|
+
>
|
|
22
|
+
<div class="font-extrabold text-6xl leading-tight tracking-wider">
|
|
23
|
+
{{ startDateSplit.day }}
|
|
24
|
+
</div>
|
|
25
|
+
<div class="text-subtitle">
|
|
26
|
+
{{ startDateSplit.monthAndYear }}
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
<script lang="ts">
|
|
35
|
+
import { defineComponent } from 'vue'
|
|
36
|
+
import { mixinGetSrcSet, type EventDateObject } from './../../utils/mixins'
|
|
37
|
+
import type { PropType } from 'vue'
|
|
38
|
+
|
|
39
|
+
export default defineComponent({
|
|
40
|
+
name: 'EventDetailHero',
|
|
41
|
+
props: {
|
|
42
|
+
data: {
|
|
43
|
+
type: Object,
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
startDateSplit: {
|
|
47
|
+
type: Object as PropType<EventDateObject>,
|
|
48
|
+
required: true
|
|
49
|
+
},
|
|
50
|
+
image: {
|
|
51
|
+
type: Object,
|
|
52
|
+
required: false
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
computed: {
|
|
56
|
+
getSrcSet() {
|
|
57
|
+
return this.image ? mixinGetSrcSet(this.image) : undefined
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
</script>
|
|
62
|
+
<style lang="scss">
|
|
63
|
+
@import '@explorer-1/common/src/scss/components/HeroMedia';
|
|
64
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import FormContact from './FormContact.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/FormContact',
|
|
5
|
+
component: FormContact
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// template
|
|
9
|
+
const FormContactTemplate = () => ({
|
|
10
|
+
components: { FormContact },
|
|
11
|
+
template: `<FormContact />`
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
// stories
|
|
15
|
+
export const Contact = FormContactTemplate.bind({})
|
|
16
|
+
Contact.storyName = 'FormContact'
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<LayoutHelper indent="col-3">
|
|
3
|
+
<hr
|
|
4
|
+
ref="FormContact"
|
|
5
|
+
class="text-gray-light-mid mb-10"
|
|
6
|
+
/>
|
|
7
|
+
<div
|
|
8
|
+
v-show="!submitted"
|
|
9
|
+
class="mb-10"
|
|
10
|
+
>
|
|
11
|
+
<form @submit.prevent="submit">
|
|
12
|
+
<BaseHeading
|
|
13
|
+
level="h2"
|
|
14
|
+
size="h6"
|
|
15
|
+
>Contact Information</BaseHeading
|
|
16
|
+
>
|
|
17
|
+
<div class="mt-8">
|
|
18
|
+
<label
|
|
19
|
+
id="full_name_label"
|
|
20
|
+
for="full_name"
|
|
21
|
+
class="text-gray-dark text-subtitle"
|
|
22
|
+
>
|
|
23
|
+
Name <span class="text-jpl-red">*</span>
|
|
24
|
+
</label>
|
|
25
|
+
<div class="mt-2">
|
|
26
|
+
<input
|
|
27
|
+
id="full_name"
|
|
28
|
+
type="text"
|
|
29
|
+
name="full_name"
|
|
30
|
+
required
|
|
31
|
+
aria-required="true"
|
|
32
|
+
aria-labelledby="full_name_label"
|
|
33
|
+
placeholder="enter your first and last name"
|
|
34
|
+
class="w-full px-4 py-3"
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="mt-8">
|
|
39
|
+
<label
|
|
40
|
+
id="email_label"
|
|
41
|
+
for="email"
|
|
42
|
+
class="text-gray-dark text-subtitle"
|
|
43
|
+
>
|
|
44
|
+
Email <span class="text-jpl-red">*</span>
|
|
45
|
+
</label>
|
|
46
|
+
<div class="mt-2">
|
|
47
|
+
<input
|
|
48
|
+
id="email"
|
|
49
|
+
type="text"
|
|
50
|
+
name="email"
|
|
51
|
+
required
|
|
52
|
+
aria-required="true"
|
|
53
|
+
aria-labelledby="email_label"
|
|
54
|
+
placeholder="enter your email"
|
|
55
|
+
class="w-full px-4 py-3"
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
<BaseHeading
|
|
60
|
+
level="h2"
|
|
61
|
+
size="h6"
|
|
62
|
+
class="mt-12"
|
|
63
|
+
>Write Us</BaseHeading
|
|
64
|
+
>
|
|
65
|
+
<div class="mt-8">
|
|
66
|
+
<label
|
|
67
|
+
id="subject_label"
|
|
68
|
+
for="subject"
|
|
69
|
+
class="text-gray-dark text-subtitle"
|
|
70
|
+
>
|
|
71
|
+
Subject <span class="text-jpl-red">*</span>
|
|
72
|
+
</label>
|
|
73
|
+
<div class="mt-2">
|
|
74
|
+
<input
|
|
75
|
+
id="subject"
|
|
76
|
+
type="text"
|
|
77
|
+
name="subject"
|
|
78
|
+
required
|
|
79
|
+
aria-required="true"
|
|
80
|
+
aria-labelledby="subject_label"
|
|
81
|
+
placeholder="write a subject"
|
|
82
|
+
class="w-full px-4 py-3"
|
|
83
|
+
/>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="mt-8">
|
|
87
|
+
<label
|
|
88
|
+
id="message_label"
|
|
89
|
+
for="message"
|
|
90
|
+
class="text-subtitle text-gray-dark"
|
|
91
|
+
>
|
|
92
|
+
Message <span class="text-jpl-red">*</span>
|
|
93
|
+
</label>
|
|
94
|
+
<div class="mt-2">
|
|
95
|
+
<textarea
|
|
96
|
+
id="message"
|
|
97
|
+
name="message"
|
|
98
|
+
required
|
|
99
|
+
aria-required="true"
|
|
100
|
+
aria-labelledby="message_label"
|
|
101
|
+
placeholder="write your message..."
|
|
102
|
+
rows="4"
|
|
103
|
+
class="w-full px-4 py-3"
|
|
104
|
+
></textarea>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="mt-4">
|
|
108
|
+
<BaseButton
|
|
109
|
+
type="submit"
|
|
110
|
+
variant="primary"
|
|
111
|
+
>Submit</BaseButton
|
|
112
|
+
>
|
|
113
|
+
</div>
|
|
114
|
+
</form>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<!-- success -->
|
|
118
|
+
<div
|
|
119
|
+
v-show="submitted"
|
|
120
|
+
class="pt-10 text-center"
|
|
121
|
+
>
|
|
122
|
+
<BaseHeading level="h2">Thank you!</BaseHeading>
|
|
123
|
+
<div
|
|
124
|
+
class="text-jpl-aqua h-22 w-22 p-5 mx-auto my-8 text-6xl font-bold border-4 rounded-full"
|
|
125
|
+
>
|
|
126
|
+
✓
|
|
127
|
+
</div>
|
|
128
|
+
<p class="text-h5">Your feedback has been sent.</p>
|
|
129
|
+
</div>
|
|
130
|
+
</LayoutHelper>
|
|
131
|
+
</template>
|
|
132
|
+
<script lang="ts">
|
|
133
|
+
// @ts-nocheck
|
|
134
|
+
import { defineComponent } from 'vue'
|
|
135
|
+
import qs from 'qs'
|
|
136
|
+
import LayoutHelper from './../LayoutHelper/LayoutHelper.vue'
|
|
137
|
+
import BaseHeading from './../BaseHeading/BaseHeading.vue'
|
|
138
|
+
import BaseButton from './../BaseButton/BaseButton.vue'
|
|
139
|
+
|
|
140
|
+
export default defineComponent({
|
|
141
|
+
name: 'FormContact',
|
|
142
|
+
components: {
|
|
143
|
+
LayoutHelper,
|
|
144
|
+
BaseHeading,
|
|
145
|
+
BaseButton
|
|
146
|
+
},
|
|
147
|
+
data() {
|
|
148
|
+
return {
|
|
149
|
+
submitted: false
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
methods: {
|
|
153
|
+
focus(elem) {
|
|
154
|
+
window.scrollTo(0, elem.offsetTop + 100)
|
|
155
|
+
elem.focus()
|
|
156
|
+
},
|
|
157
|
+
validate(e) {
|
|
158
|
+
const fields = ['full_name', 'email', 'subject', 'message']
|
|
159
|
+
const data = {}
|
|
160
|
+
for (const index in fields) {
|
|
161
|
+
const key = fields[index]
|
|
162
|
+
const elem = e.target.elements[key]
|
|
163
|
+
if (elem.value === '') {
|
|
164
|
+
this.focus(elem)
|
|
165
|
+
const name = key.replace('_', ' ')
|
|
166
|
+
alert('Please fill out the ' + name + ' field.')
|
|
167
|
+
return false
|
|
168
|
+
} else {
|
|
169
|
+
data[key] = elem.value
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return data
|
|
173
|
+
},
|
|
174
|
+
submit(e) {
|
|
175
|
+
const data = this.validate(e)
|
|
176
|
+
if (data !== false) {
|
|
177
|
+
this.reveal()
|
|
178
|
+
const url = 'https://formspree.io/f/xpzvnnzn'
|
|
179
|
+
const request = {
|
|
180
|
+
method: 'POST',
|
|
181
|
+
headers: {
|
|
182
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
|
183
|
+
},
|
|
184
|
+
body: qs.stringify({
|
|
185
|
+
full_name: data.full_name,
|
|
186
|
+
email: data.email,
|
|
187
|
+
subject: data.subject,
|
|
188
|
+
message: data.message
|
|
189
|
+
})
|
|
190
|
+
}
|
|
191
|
+
fetch(url, request)
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
reveal() {
|
|
195
|
+
this.submitted = true
|
|
196
|
+
if (this.$refs && this.$refs.FormContact) {
|
|
197
|
+
this.$scrollTo(this.$refs.FormContact, 0, { offset: -100 })
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
})
|
|
202
|
+
</script>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import FormNewsletterSignup from './FormNewsletterSignup.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/FormNewsletterSignup',
|
|
5
|
+
component: FormNewsletterSignup
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// template
|
|
9
|
+
const FormNewsletterSignupTemplate = () => ({
|
|
10
|
+
components: { FormNewsletterSignup },
|
|
11
|
+
template: `<FormNewsletterSignup />`
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
// stories
|
|
15
|
+
export const NewsletterSignup = FormNewsletterSignupTemplate.bind({})
|
|
16
|
+
NewsletterSignup.storyName = 'FormNewsletterSignup'
|