@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.
Files changed (371) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/components.d.ts +215 -0
  4. package/index.html +18 -0
  5. package/lib/main.ts +78 -0
  6. package/package.json +54 -0
  7. package/postcss.config.js +7 -0
  8. package/public/edu/.gitkeep +0 -0
  9. package/public/edu/explorer-1/bg-stars-edu.png +0 -0
  10. package/public/edu/explorer-1/bg-stars.jpg +0 -0
  11. package/public/explorer-1/bg-stars-edu.png +0 -0
  12. package/public/explorer-1/bg-stars.jpg +0 -0
  13. package/src/App.vue +30 -0
  14. package/src/assets/fonts/README.md +12 -0
  15. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-Bold.woff2 +0 -0
  16. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-BoldItalic.woff2 +0 -0
  17. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBold.woff2 +0 -0
  18. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBoldItalic.woff2 +0 -0
  19. package/src/assets/fonts/metropolis/Metropolis-Bold.woff2 +0 -0
  20. package/src/assets/fonts/metropolis/Metropolis-BoldItalic.woff2 +0 -0
  21. package/src/assets/fonts/metropolis/Metropolis-ExtraBold.woff2 +0 -0
  22. package/src/assets/fonts/metropolis/Metropolis-Medium.woff2 +0 -0
  23. package/src/assets/fonts/metropolis/Metropolis-MediumItalic.woff2 +0 -0
  24. package/src/assets/fonts/metropolis/Metropolis-Regular.woff2 +0 -0
  25. package/src/assets/fonts/metropolis/Metropolis-RegularItalic.woff2 +0 -0
  26. package/src/assets/fonts/metropolis/Metropolis-SemiBold.woff2 +0 -0
  27. package/src/assets/fonts/metropolis/Metropolis-SemiBoldItalic.woff2 +0 -0
  28. package/src/assets/scss/styles.scss +1 -0
  29. package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.stories.js +156 -0
  30. package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue +156 -0
  31. package/src/components/BackToTop/BackToTop.stories.js +24 -0
  32. package/src/components/BackToTop/BackToTop.vue +76 -0
  33. package/src/components/BaseAudio/BaseAudio.stories.js +29 -0
  34. package/src/components/BaseAudio/BaseAudio.vue +359 -0
  35. package/src/components/BaseButton/BaseButton.stories.ts +65 -0
  36. package/src/components/BaseButton/BaseButton.vue +114 -0
  37. package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.mdx +68 -0
  38. package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue +101 -0
  39. package/src/components/BaseHeading/BaseHeading.stories.js +75 -0
  40. package/src/components/BaseHeading/BaseHeading.vue +58 -0
  41. package/src/components/BaseImage/BaseImage.stories.ts +52 -0
  42. package/src/components/BaseImage/BaseImage.vue +120 -0
  43. package/src/components/BaseImageCaption/BaseImageCaption.stories.js +27 -0
  44. package/src/components/BaseImageCaption/BaseImageCaption.vue +51 -0
  45. package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.stories.js +73 -0
  46. package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.vue +90 -0
  47. package/src/components/BaseLightboxCloseButton/BaseLightboxCloseButton.vue +45 -0
  48. package/src/components/BaseLightboxOpenButton/BaseLightboxOpenButton.vue +46 -0
  49. package/src/components/BaseLink/BaseLink.stories.js +47 -0
  50. package/src/components/BaseLink/BaseLink.vue +227 -0
  51. package/src/components/BaseModal/BaseModal.stories.js +90 -0
  52. package/src/components/BaseModal/BaseModal.vue +54 -0
  53. package/src/components/BaseModal/BaseModalDialog.vue +59 -0
  54. package/src/components/BasePlaceholder/BasePlaceholder.stories.js +29 -0
  55. package/src/components/BasePlaceholder/BasePlaceholder.vue +30 -0
  56. package/src/components/BaseRadioGroup/BaseRadioGroup.stories.mdx +68 -0
  57. package/src/components/BaseRadioGroup/BaseRadioGroup.vue +102 -0
  58. package/src/components/BaseSwimlane/BaseSwimlane.stories.mdx +64 -0
  59. package/src/components/BaseSwimlane/BaseSwimlane.vue +204 -0
  60. package/src/components/BaseTag/BaseTag.stories.js +34 -0
  61. package/src/components/BaseTag/BaseTag.vue +36 -0
  62. package/src/components/BaseTimer/BaseTimer.stories.js +78 -0
  63. package/src/components/BaseTimer/BaseTimer.test.js +15 -0
  64. package/src/components/BaseTimer/BaseTimer.vue +270 -0
  65. package/src/components/BaseUnitToggle/BaseUnitToggle.stories.js +86 -0
  66. package/src/components/BaseUnitToggle/BaseUnitToggle.test.js +26 -0
  67. package/src/components/BaseUnitToggle/BaseUnitToggle.vue +255 -0
  68. package/src/components/BaseVideo/BaseVideo.stories.js +31 -0
  69. package/src/components/BaseVideo/BaseVideo.vue +73 -0
  70. package/src/components/BlockAnchor/BlockAnchor.vue +38 -0
  71. package/src/components/BlockAudio/BlockAudio.stories.js +29 -0
  72. package/src/components/BlockAudio/BlockAudio.vue +78 -0
  73. package/src/components/BlockCard/BlockCard.stories.js +24 -0
  74. package/src/components/BlockCard/BlockCard.vue +88 -0
  75. package/src/components/BlockCardGroup/BlockCardGroup.stories.js +71 -0
  76. package/src/components/BlockCardGroup/BlockCardGroup.vue +61 -0
  77. package/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.js +55 -0
  78. package/src/components/BlockCircleImageCard/BlockCircleImageCard.vue +120 -0
  79. package/src/components/BlockCta/BlockCta.stories.js +35 -0
  80. package/src/components/BlockCta/BlockCta.vue +55 -0
  81. package/src/components/BlockHeading/BlockHeading.stories.js +22 -0
  82. package/src/components/BlockHeading/BlockHeading.vue +27 -0
  83. package/src/components/BlockIframeEmbed/BlockIframeEmbed.stories.js +40 -0
  84. package/src/components/BlockIframeEmbed/BlockIframeEmbed.vue +84 -0
  85. package/src/components/BlockImage/BlockImage.stories.js +137 -0
  86. package/src/components/BlockImage/BlockImage.vue +48 -0
  87. package/src/components/BlockImage/BlockImageFullBleed.vue +119 -0
  88. package/src/components/BlockImage/BlockImageStandard.vue +106 -0
  89. package/src/components/BlockImageCarousel/BlockImageCarousel.stories.js +108 -0
  90. package/src/components/BlockImageCarousel/BlockImageCarousel.vue +201 -0
  91. package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.stories.js +63 -0
  92. package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.vue +120 -0
  93. package/src/components/BlockImageComparison/BlockImageComparison.stories.js +46 -0
  94. package/src/components/BlockImageComparison/BlockImageComparison.vue +59 -0
  95. package/src/components/BlockImageGallery/BlockImageGallery.stories.js +55 -0
  96. package/src/components/BlockImageGallery/BlockImageGallery.vue +128 -0
  97. package/src/components/BlockInlineImage/BlockInlineImage.stories.js +68 -0
  98. package/src/components/BlockInlineImage/BlockInlineImage.vue +124 -0
  99. package/src/components/BlockKeyPoints/BlockKeyPoints.stories.js +28 -0
  100. package/src/components/BlockKeyPoints/BlockKeyPoints.vue +48 -0
  101. package/src/components/BlockLinkCard/BlockLinkCard.stories.js +102 -0
  102. package/src/components/BlockLinkCard/BlockLinkCard.vue +197 -0
  103. package/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.js +217 -0
  104. package/src/components/BlockLinkCarousel/BlockLinkCarousel.vue +68 -0
  105. package/src/components/BlockLinkTile/BlockLinkTile.stories.js +72 -0
  106. package/src/components/BlockLinkTile/BlockLinkTile.vue +193 -0
  107. package/src/components/BlockListCards/BlockListCards.stories.js +69 -0
  108. package/src/components/BlockListCards/BlockListCards.vue +129 -0
  109. package/src/components/BlockQuote/BlockQuote.stories.js +84 -0
  110. package/src/components/BlockQuote/BlockQuote.vue +87 -0
  111. package/src/components/BlockRelatedLinks/BlockRelatedLinks.stories.js +60 -0
  112. package/src/components/BlockRelatedLinks/BlockRelatedLinks.vue +77 -0
  113. package/src/components/BlockRelatedLinks/RelatedLink.vue +85 -0
  114. package/src/components/BlockStreamfield/BlockStreamfield.stories.js +88 -0
  115. package/src/components/BlockStreamfield/BlockStreamfield.vue +333 -0
  116. package/src/components/BlockTable/BlockTable.stories.js +20 -0
  117. package/src/components/BlockTable/BlockTable.vue +73 -0
  118. package/src/components/BlockTeaser/BlockTeaser.stories.js +74 -0
  119. package/src/components/BlockTeaser/BlockTeaser.test.js +12 -0
  120. package/src/components/BlockTeaser/BlockTeaser.vue +174 -0
  121. package/src/components/BlockText/BlockText.stories.js +21 -0
  122. package/src/components/BlockText/BlockText.vue +44 -0
  123. package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.stories.js +19 -0
  124. package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.vue +61 -0
  125. package/src/components/BlockVideo/BlockVideo.stories.js +23 -0
  126. package/src/components/BlockVideo/BlockVideo.vue +41 -0
  127. package/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.js +20 -0
  128. package/src/components/BlockVideoEmbed/BlockVideoEmbed.vue +71 -0
  129. package/src/components/CalendarButton/CalendarButton.stories.js +36 -0
  130. package/src/components/CalendarButton/CalendarButton.vue +86 -0
  131. package/src/components/DetailHeadline/DetailHeadline.stories.js +48 -0
  132. package/src/components/DetailHeadline/DetailHeadline.vue +143 -0
  133. package/src/components/DsnWidget/DsnWidget.stories.js +29 -0
  134. package/src/components/DsnWidget/DsnWidget.vue +96 -0
  135. package/src/components/EventCard/EventCard.vue +188 -0
  136. package/src/components/EventDetailHero/EventDetailHero.stories.js +53 -0
  137. package/src/components/EventDetailHero/EventDetailHero.vue +64 -0
  138. package/src/components/FormContact/FormContact.stories.js +16 -0
  139. package/src/components/FormContact/FormContact.vue +202 -0
  140. package/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.js +16 -0
  141. package/src/components/FormNewsletterSignup/FormNewsletterSignup.vue +355 -0
  142. package/src/components/HeroLarge/HeroLarge.stories.js +46 -0
  143. package/src/components/HeroLarge/HeroLarge.vue +93 -0
  144. package/src/components/HeroListingIndex/HeroListingIndex.stories.js +156 -0
  145. package/src/components/HeroListingIndex/HeroListingIndex.vue +80 -0
  146. package/src/components/HeroMedia/HeroMedia.stories.js +135 -0
  147. package/src/components/HeroMedia/HeroMedia.vue +174 -0
  148. package/src/components/HeroMedium/HeroMedium.stories.js +73 -0
  149. package/src/components/HeroMedium/HeroMedium.vue +166 -0
  150. package/src/components/HomepageCarousel/HomepageCarousel.stories.js +112 -0
  151. package/src/components/HomepageCarousel/HomepageCarousel.vue +382 -0
  152. package/src/components/HomepageCarouselItem/HomepageCarouselItem.stories.js +60 -0
  153. package/src/components/HomepageCarouselItem/HomepageCarouselItem.vue +168 -0
  154. package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.stories.js +35 -0
  155. package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.vue +39 -0
  156. package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.stories.js +93 -0
  157. package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.vue +129 -0
  158. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.js +153 -0
  159. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.vue +282 -0
  160. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarouselItem.vue +143 -0
  161. package/src/components/HomepageStats/HomepageStats.stories.js +155 -0
  162. package/src/components/HomepageStats/HomepageStats.vue +362 -0
  163. package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.stories.js +90 -0
  164. package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.vue +156 -0
  165. package/src/components/HomepageTeaserBlock/HomepageTeaserBlockCardImage.vue +58 -0
  166. package/src/components/Icons/Icon360.vue +29 -0
  167. package/src/components/Icons/IconArrow.vue +26 -0
  168. package/src/components/Icons/IconArrows.vue +43 -0
  169. package/src/components/Icons/IconAudio.vue +27 -0
  170. package/src/components/Icons/IconBook.vue +21 -0
  171. package/src/components/Icons/IconBookUser.vue +21 -0
  172. package/src/components/Icons/IconBriefcase.vue +21 -0
  173. package/src/components/Icons/IconCalendar.vue +25 -0
  174. package/src/components/Icons/IconCaret.vue +26 -0
  175. package/src/components/Icons/IconCheckbox.vue +26 -0
  176. package/src/components/Icons/IconCheckboxSelected.vue +35 -0
  177. package/src/components/Icons/IconClose.vue +27 -0
  178. package/src/components/Icons/IconCloseLightbox.vue +25 -0
  179. package/src/components/Icons/IconDownload.vue +31 -0
  180. package/src/components/Icons/IconDropdown.vue +25 -0
  181. package/src/components/Icons/IconEnvelope.vue +21 -0
  182. package/src/components/Icons/IconExpand.vue +28 -0
  183. package/src/components/Icons/IconExternal.vue +25 -0
  184. package/src/components/Icons/IconFilter.vue +25 -0
  185. package/src/components/Icons/IconForwardTen.vue +38 -0
  186. package/src/components/Icons/IconGrid.vue +25 -0
  187. package/src/components/Icons/IconHand.vue +21 -0
  188. package/src/components/Icons/IconInfo.vue +26 -0
  189. package/src/components/Icons/IconLink.vue +27 -0
  190. package/src/components/Icons/IconList.vue +25 -0
  191. package/src/components/Icons/IconLocation.vue +37 -0
  192. package/src/components/Icons/IconMagnifyingGlass.vue +21 -0
  193. package/src/components/Icons/IconMedal.vue +21 -0
  194. package/src/components/Icons/IconMenu.vue +27 -0
  195. package/src/components/Icons/IconMinus.vue +26 -0
  196. package/src/components/Icons/IconMute.vue +27 -0
  197. package/src/components/Icons/IconNext.vue +25 -0
  198. package/src/components/Icons/IconPause.vue +28 -0
  199. package/src/components/Icons/IconPlay.vue +28 -0
  200. package/src/components/Icons/IconPlus.vue +25 -0
  201. package/src/components/Icons/IconPrev.vue +25 -0
  202. package/src/components/Icons/IconRewindTen.vue +42 -0
  203. package/src/components/Icons/IconSearch.vue +25 -0
  204. package/src/components/Icons/IconShare.vue +30 -0
  205. package/src/components/Icons/IconSlideshow.vue +30 -0
  206. package/src/components/Icons/IconSocialEmail.vue +26 -0
  207. package/src/components/Icons/IconSocialFacebook.vue +26 -0
  208. package/src/components/Icons/IconSocialGoogleClassroom.vue +26 -0
  209. package/src/components/Icons/IconSocialInstagram.vue +35 -0
  210. package/src/components/Icons/IconSocialPinterest.vue +26 -0
  211. package/src/components/Icons/IconSocialReddit.vue +25 -0
  212. package/src/components/Icons/IconSocialTwitter.vue +25 -0
  213. package/src/components/Icons/IconSocialYoutube.vue +35 -0
  214. package/src/components/Icons/IconStop.vue +27 -0
  215. package/src/components/Icons/IconTime.vue +25 -0
  216. package/src/components/Icons/IconUniversity.vue +21 -0
  217. package/src/components/Icons/IconUser.vue +26 -0
  218. package/src/components/Icons/IconVolume.vue +27 -0
  219. package/src/components/Icons/Icons.stories.ts +440 -0
  220. package/src/components/ImageDetailContextImage/ImageDetailContextImage.vue +125 -0
  221. package/src/components/LayoutHelper/LayoutHelper.vue +38 -0
  222. package/src/components/LoadingTransition/LoadingTransition.vue +48 -0
  223. package/src/components/LogoCaltech/LogoCaltech.stories.js +39 -0
  224. package/src/components/LogoCaltech/LogoCaltech.vue +29 -0
  225. package/src/components/LogoTribrand/LogoTribrand.stories.js +76 -0
  226. package/src/components/LogoTribrand/LogoTribrand.vue +93 -0
  227. package/src/components/MissionDetailAbout/MissionDetailAbout.stories.js +70 -0
  228. package/src/components/MissionDetailAbout/MissionDetailAbout.vue +204 -0
  229. package/src/components/MissionDetailHero/MissionDetailHero.stories.js +303 -0
  230. package/src/components/MissionDetailHero/MissionDetailHero.vue +292 -0
  231. package/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.js +278 -0
  232. package/src/components/MissionDetailHighlights/MissionDetailHighlights.vue +332 -0
  233. package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarousel.vue +160 -0
  234. package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarouselItem.vue +123 -0
  235. package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.stories.js +43 -0
  236. package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.vue +97 -0
  237. package/src/components/MissionDetailStats/DistanceStats.test.js +133 -0
  238. package/src/components/MissionDetailStats/DistanceStats.vue +250 -0
  239. package/src/components/MissionDetailStats/MissionDetailStats.stories.js +95 -0
  240. package/src/components/MissionDetailStats/MissionDetailStats.test.js +23 -0
  241. package/src/components/MissionDetailStats/MissionDetailStats.vue +187 -0
  242. package/src/components/MissionDetailStats/MissionDetailStatsMicro.vue +52 -0
  243. package/src/components/MissionDetailStats/MissionDetailStatsMini.vue +109 -0
  244. package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.stories.js +55 -0
  245. package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.vue +95 -0
  246. package/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.ts +24 -0
  247. package/src/components/MixinAnimationCaret/MixinAnimationCaret.vue +81 -0
  248. package/src/components/MixinCarousel/MixinCarousel.docs.mdx +33 -0
  249. package/src/components/MixinCarousel/MixinCarousel.stories.js +53 -0
  250. package/src/components/MixinCarousel/MixinCarousel.vue +236 -0
  251. package/src/components/MixinDropdownToggle/MixinDropdownToggle.vue +53 -0
  252. package/src/components/MixinFancybox/MixinFancybox.vue +405 -0
  253. package/src/components/MixinFancybox/MixinFancyboxOpenButton.vue +35 -0
  254. package/src/components/MixinVideoBg/MixinVideoBg.stories.js +23 -0
  255. package/src/components/MixinVideoBg/MixinVideoBg.vue +39 -0
  256. package/src/components/NavDesktop/NavDesktop.stories.js +254 -0
  257. package/src/components/NavDesktop/NavDesktop.vue +355 -0
  258. package/src/components/NavDesktop/NavDesktopDropdown.vue +201 -0
  259. package/src/components/NavDesktop/NavDesktopDropdownContent.vue +87 -0
  260. package/src/components/NavDesktop/NavDesktopDropdownMore.vue +112 -0
  261. package/src/components/NavDesktop/NavDesktopTopHat.vue +56 -0
  262. package/src/components/NavHeading/NavHeading.stories.js +23 -0
  263. package/src/components/NavHeading/NavHeading.vue +40 -0
  264. package/src/components/NavHighlight/NavHighlight.stories.js +42 -0
  265. package/src/components/NavHighlight/NavHighlight.vue +67 -0
  266. package/src/components/NavLinkList/NavLinkList.stories.js +46 -0
  267. package/src/components/NavLinkList/NavLinkList.vue +66 -0
  268. package/src/components/NavLogoLinks/NavLogoLinks.stories.js +22 -0
  269. package/src/components/NavLogoLinks/NavLogoLinks.vue +57 -0
  270. package/src/components/NavMobile/NavMobile.stories.js +231 -0
  271. package/src/components/NavMobile/NavMobile.vue +280 -0
  272. package/src/components/NavMobile/NavMobileDropdown.vue +175 -0
  273. package/src/components/NavMobile/NavMobileLink.vue +69 -0
  274. package/src/components/NavMobile/NavMobileSecondaryDropdown.vue +124 -0
  275. package/src/components/NavSearchForm/NavSearchForm.stories.js +13 -0
  276. package/src/components/NavSearchForm/NavSearchForm.vue +102 -0
  277. package/src/components/NavSecondary/NavSecondary.stories.js +24 -0
  278. package/src/components/NavSecondary/NavSecondary.vue +191 -0
  279. package/src/components/NavSecondary/NavSecondaryDropdown.vue +181 -0
  280. package/src/components/NavSecondary/NavSecondaryDropdownContent.vue +140 -0
  281. package/src/components/NavSecondary/NavSecondaryLink.vue +62 -0
  282. package/src/components/NavSocial/NavSocial.stories.js +20 -0
  283. package/src/components/NavSocial/NavSocial.vue +97 -0
  284. package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.stories.js +60 -0
  285. package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.test.js +30 -0
  286. package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue +73 -0
  287. package/src/components/ParallaxContainer/ParallaxContainer.stories.js +47 -0
  288. package/src/components/ParallaxContainer/ParallaxContainer.vue +76 -0
  289. package/src/components/ParallaxElement/ParallaxElement.vue +25 -0
  290. package/src/components/PastEventsCarousel/PastEventsCarousel.vue +86 -0
  291. package/src/components/PodcastEpisodeCard/PodcastEpisodeCard.vue +251 -0
  292. package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.stories.js +235 -0
  293. package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.vue +171 -0
  294. package/src/components/ProfileDetailSectionGroup/ProfileDetailSectionGroup.vue +84 -0
  295. package/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.js +97 -0
  296. package/src/components/RoboticsDetailStats/RoboticsDetailStats.test.js +21 -0
  297. package/src/components/RoboticsDetailStats/RoboticsDetailStats.vue +217 -0
  298. package/src/components/RoboticsDetailStats/RoboticsDetailStatsMini.vue +182 -0
  299. package/src/components/SearchFilterGroup/SearchFilterGroup.stories.js +59 -0
  300. package/src/components/SearchFilterGroup/SearchFilterGroup.vue +221 -0
  301. package/src/components/SearchInput/SearchInput.stories.js +35 -0
  302. package/src/components/SearchInput/SearchInput.vue +93 -0
  303. package/src/components/SearchPagination/SearchPagination.stories.js +55 -0
  304. package/src/components/SearchPagination/SearchPagination.vue +173 -0
  305. package/src/components/SearchResultCard/SearchResultCard.stories.js +57 -0
  306. package/src/components/SearchResultCard/SearchResultCard.vue +282 -0
  307. package/src/components/SearchResultGridItem/SearchResultGridItem.stories.js +70 -0
  308. package/src/components/SearchResultGridItem/SearchResultGridItem.vue +140 -0
  309. package/src/components/SearchResultsList/SearchResultsList.vue +183 -0
  310. package/src/components/SearchSelectMenu/SearchSelectMenu.stories.js +25 -0
  311. package/src/components/SearchSelectMenu/SearchSelectMenu.vue +86 -0
  312. package/src/components/ShareButtons/ShareButtons.stories.js +16 -0
  313. package/src/components/ShareButtons/ShareButtons.vue +132 -0
  314. package/src/components/ShareButtonsEdu/ShareButtonsEdu.stories.js +14 -0
  315. package/src/components/ShareButtonsEdu/ShareButtonsEdu.vue +215 -0
  316. package/src/components/SkipLink/SkipLink.stories.js +9 -0
  317. package/src/components/SkipLink/SkipLink.vue +53 -0
  318. package/src/components/SwimlaneCTA/SwimlaneCTA.stories.mdx +77 -0
  319. package/src/components/SwimlaneCTA/SwimlaneCTA.vue +281 -0
  320. package/src/components/TheFooter/TheFooter.stories.js +602 -0
  321. package/src/components/TheFooter/TheFooter.vue +228 -0
  322. package/src/components/TheFooter/TheFooterSignUp.vue +61 -0
  323. package/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.js +106 -0
  324. package/src/components/ThumbnailCarousel/ThumbnailCarousel.vue +76 -0
  325. package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.stories.js +93 -0
  326. package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.vue +68 -0
  327. package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.js +38 -0
  328. package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.vue +104 -0
  329. package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.stories.js +84 -0
  330. package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.vue +112 -0
  331. package/src/components/TopicDetailMore/TopicDetailMore.stories.js +221 -0
  332. package/src/components/TopicDetailMore/TopicDetailMore.vue +124 -0
  333. package/src/components/TopicDetailMore/TopicDetailMoreVisibility.vue +51 -0
  334. package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.stories.js +116 -0
  335. package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.vue +130 -0
  336. package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.stories.js +34 -0
  337. package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.vue +98 -0
  338. package/src/components/YearTicker/YearTicker.stories.js +37 -0
  339. package/src/components/YearTicker/YearTicker.vue +132 -0
  340. package/src/docs/foundation/DynamicTokens.vue +106 -0
  341. package/src/docs/foundation/FontVariants.vue +80 -0
  342. package/src/docs/foundation/color.docs.mdx +112 -0
  343. package/src/docs/foundation/grid.docs.mdx +189 -0
  344. package/src/docs/foundation/grid.stories.js +263 -0
  345. package/src/docs/foundation/grid_layouthelpers.docs.mdx +78 -0
  346. package/src/docs/foundation/grid_layouthelpers.stories.js +53 -0
  347. package/src/docs/foundation/themes.docs.mdx +71 -0
  348. package/src/docs/foundation/themes.stories.js +63 -0
  349. package/src/docs/foundation/typography.docs.mdx +50 -0
  350. package/src/docs/foundation/typography.stories.js +119 -0
  351. package/src/interfaces.ts +129 -0
  352. package/src/main.ts +34 -0
  353. package/src/store/header.ts +40 -0
  354. package/src/store/theme.ts +27 -0
  355. package/src/templates/PageContent/PageContent.stories.js +92 -0
  356. package/src/templates/PageContent/PageContent.vue +140 -0
  357. package/src/templates/PageEventDetail/PageEventDetail.stories.js +104 -0
  358. package/src/templates/PageEventDetail/PageEventDetail.vue +358 -0
  359. package/src/templates/PageNewsDetail/PageNewsDetail.stories.js +158 -0
  360. package/src/templates/PageNewsDetail/PageNewsDetail.vue +242 -0
  361. package/src/templates/edu/PageEduNewsDetail.stories.js +64 -0
  362. package/src/templates/edu/PageEduNewsDetail.vue +155 -0
  363. package/src/templates/www/HomePage/HomePage.vue +30 -0
  364. package/src/utils/dayjs.js +32 -0
  365. package/src/utils/filters.js +33 -0
  366. package/src/utils/mixins.ts +353 -0
  367. package/src/vite-env.d.ts +1 -0
  368. package/tailwind.config.js +24 -0
  369. package/tsconfig.json +29 -0
  370. package/tsconfig.node.json +11 -0
  371. package/vite.config.ts +55 -0
@@ -0,0 +1,362 @@
1
+ <template>
2
+ <section
3
+ v-if="statistics || dsn || asteroidWatch || missionCount"
4
+ aria-label="Featured mission statistics"
5
+ class="HomepageStats -mt-14 relative z-20 overflow-hidden"
6
+ >
7
+ <div class="MixedBleedGrid lg:pl-0 pl-4">
8
+ <div
9
+ class="bg-gray-light text-gray-dark col-start-container col-end-container lg:py-18 lg:px-0 text-body-lg px-8 py-10 pr-0"
10
+ >
11
+ <div class="gap-y-10 lg:col-end-9 grid grid-cols-12 gap-6">
12
+ <div class="lg:block hidden"></div>
13
+ <!-- mission count -->
14
+ <div
15
+ v-if="dataMissionStatsBlock"
16
+ class="lg:col-span-2 sm:col-span-5 col-span-full"
17
+ >
18
+ <template v-if="dataMissionStatsBlock.link">
19
+ <BaseLink
20
+ variant="none"
21
+ :target="dataMissionStatsBlock.linkTarget ? '_blank' : '_self'"
22
+ :href="dataMissionStatsBlock.link"
23
+ link-class="block"
24
+ >
25
+ <p
26
+ v-if="dataMissionStatsBlock.heading"
27
+ class="text-subtitle text-jpl-red mb-4"
28
+ >
29
+ {{ dataMissionStatsBlock.heading }}
30
+ </p>
31
+ </BaseLink>
32
+ </template>
33
+ <template v-else>
34
+ <p
35
+ v-if="dataMissionStatsBlock.heading"
36
+ class="text-subtitle text-jpl-red mb-4"
37
+ >
38
+ {{ dataMissionStatsBlock.heading }}
39
+ </p>
40
+ </template>
41
+ <p
42
+ v-if="dataMissionStatsBlock.title"
43
+ class="text-body-sm mb-4"
44
+ >
45
+ {{ dataMissionStatsBlock.title }}
46
+ </p>
47
+ <p
48
+ v-if="missionCount"
49
+ class="text-stats-xl"
50
+ >
51
+ {{ missionCount }}
52
+ </p>
53
+ </div>
54
+ <!-- generic stats -->
55
+ <div
56
+ v-if="dataGenericStatsBlock"
57
+ class="lg:col-span-3 sm:col-span-6 col-span-full"
58
+ >
59
+ <template v-if="dataGenericStatsBlock.link">
60
+ <BaseLink
61
+ variant="none"
62
+ :target="dataGenericStatsBlock.linkTarget ? '_blank' : '_self'"
63
+ :href="dataGenericStatsBlock.link"
64
+ link-class="block"
65
+ >
66
+ <p
67
+ v-if="dataGenericStatsBlock.heading"
68
+ class="text-subtitle text-jpl-red mb-4"
69
+ >
70
+ {{ dataGenericStatsBlock.heading }}
71
+ </p>
72
+ </BaseLink>
73
+ </template>
74
+ <template v-else>
75
+ <p
76
+ v-if="dataGenericStatsBlock.heading"
77
+ class="text-subtitle text-jpl-red mb-4"
78
+ >
79
+ {{ dataGenericStatsBlock.heading }}
80
+ </p>
81
+ </template>
82
+ <p
83
+ v-if="dataGenericStatsBlock.title"
84
+ class="text-body-sm mb-4"
85
+ >
86
+ {{ dataGenericStatsBlock.title }}
87
+ </p>
88
+ <div
89
+ v-if="
90
+ dataGenericStatsBlock.dateDisplay === 'countdown' ||
91
+ dataGenericStatsBlock.dateDisplay === 'time_elapsed'
92
+ "
93
+ >
94
+ <BaseTimer
95
+ :target-date-time="dataGenericStatsBlock.date"
96
+ :countdown="dataGenericStatsBlock.dateDisplay === 'countdown'"
97
+ />
98
+ </div>
99
+ <p
100
+ v-else-if="dataGenericStatsBlock.dateDisplay === 'static'"
101
+ class="text-stats-lg"
102
+ >
103
+ {{
104
+ // @ts-ignore
105
+ $filters.displayDate(dataGenericStatsBlock.date)
106
+ }}
107
+ </p>
108
+ <template v-else-if="dataGenericStatsBlock.dateDisplay === 'live'">
109
+ <component
110
+ :is="hasFeaturedEmbed ? 'a' : 'div'"
111
+ v-scroll-to="hasFeaturedEmbed ? '#featuredEmbed' : null"
112
+ :href="hasFeaturedEmbed ? '#featuredEmbed' : null"
113
+ class="group block"
114
+ :class="{ 'cursor-pointer': hasFeaturedEmbed }"
115
+ @click="playVideo"
116
+ >
117
+ <p class="text-stats-lg flex items-center">
118
+ <span class="relative flex w-3 h-3 mr-3">
119
+ <span
120
+ class="motion-safe:animate-ping bg-green absolute inline-flex w-full h-full rounded-full opacity-75"
121
+ ></span>
122
+ <span class="bg-green relative inline-flex w-3 h-3 rounded-full"></span>
123
+ </span>
124
+ <span>Watch Live</span>
125
+ </p>
126
+ <p class="text-gray-mid-dark flex flex-wrap mt-2 text-sm">
127
+ <span class="mr-1 -mb-3">Estimated:</span>
128
+ <span class="sm:whitespace-nowrap">
129
+ {{
130
+ // @ts-ignore
131
+ $filters.displayDate(dataGenericStatsBlock.date, 'DateTime')
132
+ }}
133
+ UTC
134
+ </span>
135
+ </p>
136
+
137
+ <div
138
+ v-if="hasFeaturedEmbed"
139
+ class="lg:-mb-8 can-hover:group-hover:ml-3 text-jpl-red-light text-7xl ml-0 transition-all duration-200 ease-in"
140
+ >
141
+ <IconArrow />
142
+ </div>
143
+ </component>
144
+ </template>
145
+ </div>
146
+ <!-- DSN Widget -->
147
+ <DsnWidget />
148
+ <!-- asteroid watch -->
149
+ <div
150
+ v-if="asteroidWatch"
151
+ class="lg:col-span-3 sm:col-span-6 col-span-full"
152
+ >
153
+ <template v-if="asteroidWatch.link">
154
+ <BaseLink
155
+ variant="none"
156
+ :target="asteroidWatch.linkTarget ? '_blank' : '_self'"
157
+ :href="asteroidWatch.link"
158
+ link-class="block"
159
+ >
160
+ <p
161
+ v-if="asteroidWatch.heading"
162
+ class="text-subtitle text-jpl-red mb-4"
163
+ >
164
+ {{ asteroidWatch.heading }}
165
+ </p>
166
+ </BaseLink>
167
+ </template>
168
+ <template v-else>
169
+ <p
170
+ v-if="asteroidWatch.heading"
171
+ class="text-subtitle text-jpl-red mb-4"
172
+ >
173
+ {{ asteroidWatch.heading }}
174
+ </p>
175
+ </template>
176
+ <p
177
+ v-if="asteroidWatch.title"
178
+ class="text-body-sm mb-4"
179
+ >
180
+ {{ asteroidWatch.title }}
181
+ </p>
182
+ <template v-if="asteroidWatch.asteroidApproach">
183
+ <p
184
+ v-if="asteroidWatch.asteroidApproach.date"
185
+ class="text-stats-lg"
186
+ >
187
+ {{
188
+ // @ts-ignore
189
+ $filters.displayDate(asteroidWatch.asteroidApproach.date)
190
+ }}
191
+ </p>
192
+ <BaseUnitToggle
193
+ v-slot="slotProps"
194
+ :unit-pair="'MI_KM'"
195
+ :value="parseFloat(asteroidWatch.asteroidApproach.distanceMiles)"
196
+ :second-value="parseFloat(asteroidWatch.asteroidApproach.distanceKilometers)"
197
+ :value-system="'imperial'"
198
+ inline
199
+ class="text-gray-mid-dark mt-2"
200
+ >
201
+ <span class="text-sm"> Proximity {{ slotProps.formattedValue }} </span>
202
+ </BaseUnitToggle>
203
+ <BaseLink
204
+ link-class="block"
205
+ variant="none"
206
+ aria-label="View the next five approaches"
207
+ to="/asteroid-watch/next-five-approaches"
208
+ >
209
+ <div
210
+ class="lg:-mb-8 can-hover:group-hover:ml-3 text-jpl-red-light text-7xl ml-0 transition-all duration-200 ease-in"
211
+ >
212
+ <IconArrow />
213
+ </div>
214
+ </BaseLink>
215
+ </template>
216
+ </div>
217
+ </div>
218
+ </div>
219
+ <div class="bg-gray-light col-start-container-end col-end-bleed sm:block hidden"></div>
220
+ </div>
221
+ </section>
222
+ </template>
223
+ <script lang="ts">
224
+ // @ts-nocheck
225
+ import type { PropType } from 'vue'
226
+ import { defineComponent } from 'vue'
227
+ import BaseLink from './../BaseLink/BaseLink.vue'
228
+ import BaseUnitToggle from './../BaseUnitToggle/BaseUnitToggle.vue'
229
+ import BaseTimer from './../BaseTimer/BaseTimer.vue'
230
+ import IconArrow from './../Icons/IconArrow.vue'
231
+ import IconArrows from './../Icons/IconArrows.vue'
232
+ import DsnWidget from './../DsnWidget/DsnWidget.vue'
233
+ type blockObject = {
234
+ blockType: string
235
+ }
236
+
237
+ type HomePageEmbedBlockItem = {
238
+ display: boolean
239
+ }
240
+ type HomePageEmbedBlock = HomePageEmbedBlockItem[]
241
+
242
+ /**
243
+ * Displays homepage stats
244
+ */
245
+ export default defineComponent({
246
+ name: 'HomepageStats',
247
+ components: {
248
+ BaseLink,
249
+ IconArrow,
250
+ IconArrows,
251
+ BaseUnitToggle,
252
+ BaseTimer,
253
+ DsnWidget
254
+ },
255
+ props: {
256
+ statistics: {
257
+ type: Array,
258
+ required: false
259
+ },
260
+ missionCount: {
261
+ type: Number,
262
+ required: false
263
+ },
264
+ dsn: {
265
+ type: Object,
266
+ required: false
267
+ },
268
+ asteroidWatch: {
269
+ type: Object,
270
+ required: false
271
+ },
272
+ // pass the featured video data to determine watch-live render behavior
273
+ featuredEmbed: {
274
+ type: Array as PropType<HomePageEmbedBlock>,
275
+ required: false
276
+ }
277
+ },
278
+ data(): {
279
+ autoplayAdded: boolean
280
+ } {
281
+ return {
282
+ autoplayAdded: false
283
+ }
284
+ },
285
+ computed: {
286
+ dataMissionStatsBlock(): blockObject | null {
287
+ const data = this.filterBlocksByType('StatisticsMissionBlock')
288
+ if (data && data.length) {
289
+ return data[0]
290
+ }
291
+ return null
292
+ },
293
+ dataGenericStatsBlock(): blockObject | null {
294
+ const data = this.filterBlocksByType('StatisticsGenericBlock')
295
+ if (data && data.length) {
296
+ return data[0]
297
+ }
298
+ return null
299
+ },
300
+ hasFeaturedEmbed(): boolean {
301
+ if (this.featuredEmbed && this.featuredEmbed.length && this.featuredEmbed[0].display) {
302
+ return true
303
+ }
304
+ return false
305
+ }
306
+ },
307
+ methods: {
308
+ playVideo() {
309
+ if (this.hasFeaturedEmbed) {
310
+ const featuredEmbedDiv = document.getElementById('featuredEmbed')
311
+ if (featuredEmbedDiv) {
312
+ const featuredEmbedIframe = featuredEmbedDiv.querySelector('iframe') as HTMLIFrameElement
313
+ if (featuredEmbedIframe && this.autoplayAdded === false) {
314
+ featuredEmbedIframe.src += '&autoplay=1'
315
+ this.autoplayAdded = true
316
+ }
317
+ }
318
+ }
319
+ return null
320
+ },
321
+ filterBlocksByType(blockType: string): blockObject[] | null {
322
+ if (this.statistics) {
323
+ const theBlocks = this.statistics as blockObject[]
324
+ return theBlocks.filter((block: blockObject) => block.blockType === blockType)
325
+ }
326
+ return null
327
+ }
328
+ }
329
+ })
330
+ </script>
331
+ <style lang="scss">
332
+ .HomepageStats {
333
+ .BaseTimer {
334
+ .text-stats-xl {
335
+ @apply leading-none;
336
+
337
+ @screen lg {
338
+ font-size: 2.125rem; // 34px
339
+ }
340
+ @screen xl {
341
+ font-size: 2.25rem; // 36px
342
+ }
343
+ }
344
+
345
+ .unit {
346
+ @apply text-gray-mid-dark;
347
+ }
348
+ }
349
+
350
+ .BaseUnitToggle {
351
+ @apply flex items-center;
352
+
353
+ fieldset {
354
+ @apply pl-3;
355
+ }
356
+
357
+ .unit {
358
+ @apply -mt-3;
359
+ }
360
+ }
361
+ }
362
+ </style>
@@ -0,0 +1,90 @@
1
+ import HomepageTeaserBlock from './HomepageTeaserBlock.vue'
2
+
3
+ export default {
4
+ title: 'WWW/Homepage/HomepageTeaserBlock',
5
+ component: HomepageTeaserBlock,
6
+ excludeStories: /.*(Data|Decorator)$/,
7
+ parameters: {
8
+ viewMode: 'canvas'
9
+ }
10
+ }
11
+
12
+ // template
13
+ const HomepageTeaserBlockTemplate = (args) => ({
14
+ props: Object.keys(args),
15
+ components: { HomepageTeaserBlock },
16
+ template: `<HomepageTeaserBlock :data="block" />`
17
+ })
18
+
19
+ // data
20
+ export const HomepageTeaserBlockData = {
21
+ block: {
22
+ blockType: 'HomePageTeaserBlock',
23
+ coverImage: {
24
+ alt: 'JPL Campus',
25
+ src: {
26
+ width: 1024,
27
+ height: 306,
28
+ url: 'https://picsum.photos/1024/306'
29
+ },
30
+ screenXs: {
31
+ url: 'https://picsum.photos/320/180', // 16:9
32
+ width: 320
33
+ },
34
+ screenMd: {
35
+ url: 'https://picsum.photos/768/432', // narrower
36
+ width: 768
37
+ },
38
+ screenTwoxl: {
39
+ url: 'https://picsum.photos/1440/430', // narrower
40
+ width: 1440
41
+ }
42
+ },
43
+ heading: 'Jet Propulsion Laboratory',
44
+ paragraph: `<p>Have you been awed by views of desolate Martian Valleys, swirling storms above Jupiter, and the icy blades ringing Saturn? Then you have journeyed with NASA JPL spacecraft and rovers.</p>
45
+ <p>Our missions have flown to every planet and the Sun in a quest to understand our place in the universe, and to search for the possibility of life beyond Earth. </p>`,
46
+ link: {
47
+ text: 'More about JPL',
48
+ document: null,
49
+ page: {
50
+ url: '/about/'
51
+ },
52
+ externalLink: null
53
+ },
54
+ card: [
55
+ {
56
+ heading: 'Virtual Tour',
57
+ description:
58
+ 'Lorem ipsum dolor sit amet elec, consectetur adipiscing elit nunc aliquam quis eros.',
59
+ image: {
60
+ src: {
61
+ height: 400,
62
+ url: 'https://picsum.photos/800/400',
63
+ width: 800
64
+ },
65
+ srcSet: 'https://picsum.photos/400/200 320w, https://picsum.photos/800/400 1024w'
66
+ },
67
+ link: {
68
+ text: 'Take the tour',
69
+ document: null,
70
+ page: null,
71
+ externalLink: 'https://www.jpl.nasa.gov'
72
+ }
73
+ }
74
+ ]
75
+ }
76
+ }
77
+
78
+ // stories
79
+ export const TeaserBlock = HomepageTeaserBlockTemplate.bind({})
80
+ TeaserBlock.args = {
81
+ ...HomepageTeaserBlockData
82
+ }
83
+
84
+ export const NoImage = HomepageTeaserBlockTemplate.bind({})
85
+ NoImage.args = {
86
+ block: {
87
+ ...HomepageTeaserBlockData.block,
88
+ coverImage: null
89
+ }
90
+ }
@@ -0,0 +1,156 @@
1
+ <template>
2
+ <div
3
+ v-if="data"
4
+ class="HomepageTeaserBlock max-w-screen-3xl relative mx-auto"
5
+ >
6
+ <BaseImage
7
+ v-if="hasCoverImage"
8
+ class="lg:mb-0 mb-10"
9
+ :src="data.coverImage.src.url"
10
+ :srcset="
11
+ mixinGetSrcSet(data.coverImage) ? mixinGetSrcSet(data.coverImage) : data.coverImage.srcSet
12
+ "
13
+ :alt="data.coverImage.alt"
14
+ :width="data.coverImage.src.width"
15
+ :height="data.coverImage.src.height"
16
+ image-class="object-cover w-full h-full"
17
+ loading="lazy"
18
+ />
19
+
20
+ <div class="lg:px-4 2xl:px-0">
21
+ <div
22
+ class="lg:BaseGrid container relative z-10 mx-auto bg-white"
23
+ :class="{ 'lg:-mt-26 lg:pt-22': hasCoverImage }"
24
+ >
25
+ <div class="lg:px-0 lg:col-end-8 xl:col-end-9 col-start-2 px-4">
26
+ <BaseHeading
27
+ v-if="data.heading"
28
+ level="h2"
29
+ class="lg:mb-8 mb-5"
30
+ >
31
+ {{ data.heading }}
32
+ </BaseHeading>
33
+ <BlockText
34
+ v-if="data.paragraph"
35
+ class="lg:pr-14"
36
+ :text="data.paragraph"
37
+ />
38
+ <template v-if="data.link">
39
+ <BaseLink
40
+ variant="primary"
41
+ class="mt-5"
42
+ link-class="inline-block"
43
+ caret-wrapper-class="py-2"
44
+ :href="mixinGetExternalLink(data.link) ? mixinGetExternalLink(data.link) : null"
45
+ :to="data.link.page ? data.link.page.url : null"
46
+ external-target-blank
47
+ >
48
+ {{ data.link.text }}
49
+ </BaseLink>
50
+ </template>
51
+ </div>
52
+ <aside
53
+ v-if="theCard"
54
+ :aria-label="theCard ? theCard.heading : 'Virtual Tour'"
55
+ class="lg:mt-0 lg:mx-0 xl:col-span-3 sm:mx-auto lg:w-auto sm:w-80 lg:col-start-8 xl:col-start-9 col-span-4 mx-6 mt-12"
56
+ >
57
+ <div
58
+ class="shadow-jpl"
59
+ :class="{ 'flex items-center min-h-32': !theCard.image }"
60
+ >
61
+ <div
62
+ v-if="theCard.image"
63
+ class="relative h-auto"
64
+ >
65
+ <template v-if="theCard.link">
66
+ <BaseLink
67
+ variant="none"
68
+ link-class="block"
69
+ :aria-label="theCard.link.text || 'Learn more'"
70
+ :href="
71
+ mixinGetExternalLink(theCard.link) ? mixinGetExternalLink(theCard.link) : null
72
+ "
73
+ :to="theCard.link.page ? theCard.link.page.url : null"
74
+ external-target-blank
75
+ >
76
+ <HomepageTeaserBlockCardImage :data="theCard" />
77
+ </BaseLink>
78
+ </template>
79
+ <template v-else>
80
+ <HomepageTeaserBlockCardImage :data="theCard" />
81
+ </template>
82
+ </div>
83
+ <div class="px-6 pt-6 pb-4">
84
+ <div class="mb-2 text-3xl font-medium">
85
+ {{ theCard.heading }}
86
+ </div>
87
+ <p
88
+ v-if="theCard.description"
89
+ class="text-body-sm"
90
+ >
91
+ {{ theCard.description }}
92
+ </p>
93
+
94
+ <template v-if="theCard.link">
95
+ <BaseLink
96
+ variant="primary"
97
+ class="mt-3"
98
+ link-class="inline-block"
99
+ caret-wrapper-class="py-2"
100
+ :href="
101
+ mixinGetExternalLink(theCard.link) ? mixinGetExternalLink(theCard.link) : null
102
+ "
103
+ :to="theCard.link.page ? theCard.link.page.url : null"
104
+ external-target-blank
105
+ >
106
+ {{ theCard.link.text }}
107
+ </BaseLink>
108
+ </template>
109
+ </div>
110
+ </div>
111
+ </aside>
112
+ </div>
113
+ </div>
114
+ </div>
115
+ </template>
116
+
117
+ <script lang="ts">
118
+ // @ts-nocheck
119
+ import { defineComponent } from 'vue'
120
+ import BaseHeading from './../BaseHeading/BaseHeading.vue'
121
+ import BlockText from './../BlockText/BlockText.vue'
122
+ import BaseImage from './../BaseImage/BaseImage.vue'
123
+ import BaseLink from './../BaseLink/BaseLink.vue'
124
+ import HomepageTeaserBlockCardImage from './../HomepageTeaserBlock/HomepageTeaserBlockCardImage.vue'
125
+
126
+ export default defineComponent({
127
+ name: 'HomepageTeaserBlock',
128
+ components: {
129
+ BaseHeading,
130
+ BlockText,
131
+ BaseImage,
132
+ BaseLink,
133
+ HomepageTeaserBlockCardImage
134
+ },
135
+ props: {
136
+ data: {
137
+ type: Object,
138
+ required: false
139
+ }
140
+ },
141
+ computed: {
142
+ theCard(): object | null {
143
+ if (this.data.card && this.data.card.length > 0) {
144
+ return this.data.card[0]
145
+ }
146
+ return null
147
+ },
148
+ hasCoverImage(): boolean {
149
+ if (this.data.coverImage && this.data.coverImage.src) {
150
+ return true
151
+ }
152
+ return false
153
+ }
154
+ }
155
+ })
156
+ </script>
@@ -0,0 +1,58 @@
1
+ <template>
2
+ <div
3
+ v-if="data && data.image"
4
+ class="relative h-auto"
5
+ >
6
+ <div class="bg-jpl-red absolute bottom-0 right-0 z-10 text-white">
7
+ <Icon360 />
8
+ </div>
9
+
10
+ <BaseImagePlaceholder
11
+ aspect-ratio="16:9"
12
+ dark-mode
13
+ >
14
+ <BaseImage
15
+ v-if="data.image.src"
16
+ :src="data.image.src.url"
17
+ :srcset="theSrcSet"
18
+ alt=""
19
+ :width="data.image.src.width"
20
+ :height="data.image.src.height"
21
+ object-fit-class="cover"
22
+ loading="lazy"
23
+ />
24
+ </BaseImagePlaceholder>
25
+ </div>
26
+ </template>
27
+
28
+ <script lang="ts">
29
+ import { defineComponent } from 'vue'
30
+ import { mixinGetSrcSet } from '../../utils/mixins'
31
+ import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
32
+ import BaseImage from './../BaseImage/BaseImage.vue'
33
+ import Icon360 from './../Icons/Icon360.vue'
34
+
35
+ export default defineComponent({
36
+ name: 'HomepageTeaserBlockCardImage',
37
+ components: {
38
+ BaseImagePlaceholder,
39
+ BaseImage,
40
+ Icon360
41
+ },
42
+ props: {
43
+ data: {
44
+ type: Object,
45
+ required: false
46
+ }
47
+ },
48
+ computed: {
49
+ theSrcSet() {
50
+ return this.data?.image
51
+ ? mixinGetSrcSet(this.data.image)
52
+ ? mixinGetSrcSet(this.data.image)
53
+ : this.data.image.srcSet
54
+ : undefined
55
+ }
56
+ }
57
+ })
58
+ </script>
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <svg
3
+ class="Icon360"
4
+ width="40"
5
+ height="40"
6
+ viewBox="0 0 40 40"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ aria-hidden="true"
9
+ focusable="false"
10
+ >
11
+ <g fill="none">
12
+ <path
13
+ d="M13.736 16.144c.696 0 1.26-.212 1.692-.636.432-.424.648-.996.648-1.716 0-.52-.11-.952-.33-1.296a1.744 1.744 0 00-.882-.72v-.048c.336-.192.598-.434.786-.726.188-.292.282-.666.282-1.122 0-.72-.202-1.276-.606-1.668-.404-.392-.946-.588-1.626-.588-.432 0-.816.094-1.152.282a1.996 1.996 0 00-.786.792c-.188.34-.282.734-.282 1.182v.3h1.332v-.192c0-.416.08-.732.24-.948a.776.776 0 01.66-.324.78.78 0 01.648.306c.16.204.24.51.24.918 0 .424-.09.752-.27.984-.18.232-.406.348-.678.348h-.516v1.092h.492c.744 0 1.116.452 1.116 1.356 0 .44-.094.772-.282.996-.188.224-.442.336-.762.336-.336 0-.592-.116-.768-.348-.176-.232-.264-.564-.264-.996v-.216h-1.332v.18c0 .76.21 1.362.63 1.806.42.444 1.01.666 1.77.666zm6.33 0c.424 0 .806-.108 1.146-.324.34-.216.606-.526.798-.93.192-.404.288-.874.288-1.41 0-.792-.172-1.432-.516-1.92-.344-.488-.844-.732-1.5-.732-.272 0-.524.062-.756.186a1.641 1.641 0 00-.576.51c.008-.968.076-1.678.204-2.13.128-.452.384-.678.768-.678.56 0 .84.528.84 1.584h1.32c0-.808-.174-1.456-.522-1.944-.348-.488-.878-.732-1.59-.732-.512 0-.94.14-1.284.42-.344.28-.608.752-.792 1.416-.184.664-.276 1.552-.276 2.664 0 1.456.206 2.49.618 3.102.412.612 1.022.918 1.83.918zm-.06-1.092c-.32 0-.562-.146-.726-.438-.164-.292-.246-.67-.246-1.134 0-.48.082-.864.246-1.152.164-.288.406-.432.726-.432.32 0 .56.144.72.432.16.288.24.672.24 1.152 0 .464-.082.842-.246 1.134-.164.292-.402.438-.714.438zm6.174 1.092c.512 0 .938-.128 1.278-.384.34-.256.602-.696.786-1.32.184-.624.276-1.476.276-2.556s-.092-1.932-.276-2.556c-.184-.624-.446-1.064-.786-1.32s-.766-.384-1.278-.384c-.52 0-.95.128-1.29.384-.34.256-.6.694-.78 1.314-.18.62-.27 1.474-.27 2.562 0 1.088.09 1.942.27 2.562.18.62.44 1.058.78 1.314s.77.384 1.29.384zm0-1.092c-.384 0-.648-.22-.792-.66-.144-.44-.216-1.136-.216-2.088v-.84c0-.952.072-1.648.216-2.088.144-.44.408-.66.792-.66.384 0 .648.22.792.66.144.44.216 1.136.216 2.088v.84c0 .952-.072 1.648-.216 2.088-.144.44-.408.66-.792.66zm5.862-4.08a1.681 1.681 0 001.458-.828c.148-.256.222-.536.222-.84 0-.304-.074-.586-.222-.846a1.606 1.606 0 00-.612-.612 1.681 1.681 0 00-.846-.222c-.304 0-.586.074-.846.222-.26.148-.464.352-.612.612-.148.26-.222.542-.222.846a1.649 1.649 0 00.834 1.446c.26.148.542.222.846.222zm0-.756a.89.89 0 01-.654-.27.877.877 0 01-.27-.642c0-.256.09-.472.27-.648a.901.901 0 01.654-.264c.256 0 .472.088.648.264a.881.881 0 01.264.648.887.887 0 01-.264.642.871.871 0 01-.648.27zM33.345 23.893c-.011-.016-.026-.03-.037-.046-1.204-1.498-3.23-2.261-5.001-2.782-2.138-.631-4.366-.939-6.587-1.034a31.217 31.217 0 00-6.685.41c-2.033.357-4.138.92-5.905 2.034-.78.49-1.552 1.14-1.931 2.015a2.499 2.499 0 00-.184 1.258c.071.52.098 1.068.266 1.57.54 1.615 2.296 3 3.751 3.634 1.832.801 3.804 1.284 5.807 1.532V36l7.402-6.048-7.402-6.04v4.283l-.03-.003c-1.039-.183-2.067-.441-3.042-.837-.848-.342-1.725-.794-2.322-1.508-.162-.198-.37-.43-.285-.689.033-.11.082-.22.14-.323.213-.399.535-.726.892-1 1.44-1.124 3.41-1.577 5.166-1.832a21.212 21.212 0 016.257.034c1.331.206 2.667.533 3.893 1.11.732.346 1.433.79 1.951 1.426.195.258.525.704.345 1.023-.22.391-.559.707-.915.97a7.697 7.697 0 01-1.91.992v4.488c1.663-.383 3.13-1.035 4.456-2.061C34 28 33.923 26.303 33.976 25.953c.104-.715-.143-1.402-.56-1.969-.026-.03-.048-.06-.071-.091z"
14
+ fill="currentColor"
15
+ />
16
+ </g>
17
+ </svg>
18
+ </template>
19
+
20
+ <script lang="ts">
21
+ import { defineComponent } from 'vue'
22
+ export default defineComponent({
23
+ // eslint-disable-next-line vue/multi-word-component-names
24
+ name: 'Icon360'
25
+ })
26
+ </script>
27
+ <style lang="scss">
28
+ @import '@explorer-1/common/src/scss/components/Icon360';
29
+ </style>