@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,215 @@
1
+ <script setup lang="ts">
2
+ import { computed, ref } from 'vue'
3
+ import BaseButton from './../BaseButton/BaseButton.vue'
4
+ import IconDownload from './../Icons/IconDownload.vue'
5
+ import IconLink from './../Icons/IconLink.vue'
6
+ import IconShare from './../Icons/IconShare.vue'
7
+ import IconSocialGoogleClassroom from './../Icons/IconSocialGoogleClassroom.vue'
8
+ import IconSocialFacebook from './../Icons/IconSocialFacebook.vue'
9
+ import IconSocialEmail from './../Icons/IconSocialEmail.vue'
10
+ import IconSocialPinterest from './../Icons/IconSocialPinterest.vue'
11
+ import IconSocialTwitter from './../Icons/IconSocialTwitter.vue'
12
+ import { mixinCanonicalUrl } from '../../utils/mixins'
13
+
14
+ interface ShareButtonsEduProps {
15
+ title: string
16
+ url: string
17
+ image?: string
18
+ }
19
+
20
+ // define props
21
+ const props = defineProps<ShareButtonsEduProps>()
22
+
23
+ // ref
24
+ const isOpen = ref(false)
25
+ const hasCopied = ref(false)
26
+
27
+ // methods
28
+ const copyUrl = async () => {
29
+ try {
30
+ await navigator.clipboard.writeText(props.url)
31
+ hasCopied.value = true
32
+ } catch (err) {
33
+ console.error('Failed to copy: ', err)
34
+ }
35
+ }
36
+ const toggle = () => {
37
+ isOpen.value = !isOpen.value
38
+ if (!isOpen.value) {
39
+ closeMenu()
40
+ }
41
+ }
42
+ const closeMenu = () => {
43
+ isOpen.value = false
44
+ hasCopied.value = false
45
+ }
46
+
47
+ const print = () => {
48
+ window.print()
49
+ }
50
+
51
+ // computed
52
+ const encodedTitle = computed(() => {
53
+ return props.title ? encodeURIComponent(props.title) : undefined
54
+ })
55
+
56
+ const encodedURL = computed(() => {
57
+ return props.url ? encodeURIComponent(mixinCanonicalUrl(props.url)) : undefined
58
+ })
59
+
60
+ const facebookLink = computed(() => {
61
+ return `https://www.facebook.com/sharer.php?u=${encodedURL.value}`
62
+ })
63
+ const twitterLink = computed((): string => {
64
+ const handle = encodeURIComponent('NASAJPL_Edu')
65
+ return `https://twitter.com/share?url=${encodedURL.value}&text=${encodedTitle.value}&via=${handle}`
66
+ })
67
+
68
+ const pinterestLink = computed(() => {
69
+ return `http://pinterest.com/pin/create/button/?url=${encodedURL.value}&media=${props.image}&description=${encodedTitle.value}`
70
+ })
71
+ const mailLink = computed((): string => {
72
+ return `mailto:?body=${encodedTitle.value}:%20${encodedURL.value}&subject=${encodedTitle.value}`
73
+ })
74
+
75
+ const copyLinkText = computed(() => {
76
+ if (hasCopied.value) {
77
+ return 'Copied'
78
+ } else {
79
+ return 'Copy link'
80
+ }
81
+ })
82
+ const buttonClass = computed(() => {
83
+ return 'h-10 xl:h-11 !py-0 !px-3'
84
+ })
85
+ </script>
86
+ <template>
87
+ <div class="ShareButtonsEdu relative flex flex-row items-start border-collapse">
88
+ <BaseButton
89
+ variant="social"
90
+ :class="buttonClass"
91
+ aria-label="Print"
92
+ compact
93
+ @click="print()"
94
+ >
95
+ <span class="flex flex-row flex-wrap-none items-center">
96
+ <IconDownload class="text-lg mr-2" />
97
+ <span class="text-sm">Print</span>
98
+ </span>
99
+ </BaseButton>
100
+ <div class="relative xl:flex">
101
+ <BaseButton
102
+ variant="social"
103
+ :class="`-ml-px ${buttonClass} ${isOpen ? '!bg-gray-light' : ''}`"
104
+ aria-label="Share"
105
+ compact
106
+ :aria-expanded="isOpen"
107
+ @click="toggle()"
108
+ @keydown.esc="toggle()"
109
+ >
110
+ <span class="flex flex-row flex-wrap-none items-start xl:items-center">
111
+ <IconShare class="text-lg mr-2" />
112
+ <span class="text-sm">Share…</span>
113
+ </span>
114
+ </BaseButton>
115
+ <Transition name="fade">
116
+ <div
117
+ v-if="isOpen"
118
+ v-click-outside="closeMenu"
119
+ class="share-buttons-list absolute left-0 xl:relative z-10 flex flex-col -ml-px -mt-px xl:m-0 border-action border xl:border-none xl:flex-row flex-wrap-none"
120
+ >
121
+ <BaseButton
122
+ variant="social"
123
+ aria-label="Copy"
124
+ @click="copyUrl()"
125
+ @keydown.esc="toggle()"
126
+ >
127
+ <IconLink class="text-lg mr-2" />
128
+ <span class="text-xs">{{ copyLinkText }}</span>
129
+ </BaseButton>
130
+
131
+ <BaseButton
132
+ variant="social"
133
+ :href="facebookLink"
134
+ aria-label="Share to Facebook"
135
+ target="_blank"
136
+ rel="noopener"
137
+ @keydown.esc="toggle()"
138
+ >
139
+ <IconSocialFacebook class="text-lg mr-2" />
140
+ <span class="text-xs">Facebook</span>
141
+ </BaseButton>
142
+
143
+ <BaseButton
144
+ variant="social"
145
+ :href="twitterLink"
146
+ aria-label="Share to X (Twitter)"
147
+ target="_blank"
148
+ rel="noopener"
149
+ @keydown.esc="toggle()"
150
+ >
151
+ <IconSocialTwitter class="text-lg mr-2" />
152
+ <span class="text-xs">X (Twitter)</span>
153
+ </BaseButton>
154
+
155
+ <BaseButton
156
+ variant="social"
157
+ :href="pinterestLink"
158
+ aria-label="Add to Pinterest"
159
+ target="_blank"
160
+ rel="noopener"
161
+ @keydown.esc="toggle()"
162
+ >
163
+ <IconSocialPinterest class="text-lg mr-2" />
164
+ <span class="text-xs">Pinterest</span>
165
+ </BaseButton>
166
+
167
+ <BaseButton
168
+ variant="social"
169
+ :href="mailLink"
170
+ aria-label="Share via Email"
171
+ target="_blank"
172
+ rel="noopener"
173
+ @keydown.esc="toggle()"
174
+ >
175
+ <IconSocialEmail class="text-lg mr-2" />
176
+ <span class="text-xs">Email</span>
177
+ </BaseButton>
178
+
179
+ <BaseButton
180
+ variant="social"
181
+ href="#"
182
+ aria-label="Google Classroom"
183
+ target="_blank"
184
+ rel="noopener"
185
+ @keydown.esc="toggle()"
186
+ >
187
+ <IconSocialGoogleClassroom class="text-lg mr-2" />
188
+ <span class="text-xs">Google Classroom</span>
189
+ </BaseButton>
190
+ </div>
191
+ </Transition>
192
+ </div>
193
+ </div>
194
+ </template>
195
+ <style lang="scss">
196
+ .ShareButtonsEdu {
197
+ .BaseButton {
198
+ @apply relative focus:z-20;
199
+ @include hover {
200
+ @apply z-20;
201
+ }
202
+ }
203
+ .share-buttons-list {
204
+ .BaseButton.-social {
205
+ @apply h-10 xl:h-11 py-0 px-2 lg:px-3 #{!important};
206
+ span.text-xs {
207
+ @apply whitespace-nowrap;
208
+ }
209
+ .label {
210
+ @apply justify-start xl:justify-center;
211
+ }
212
+ }
213
+ }
214
+ }
215
+ </style>
@@ -0,0 +1,9 @@
1
+ import SkipLink from './SkipLink.vue'
2
+
3
+ export default {
4
+ title: 'WWW/Header & Footer/Elements/SkipLink',
5
+ component: SkipLink,
6
+ excludeStories: /.*Data$/
7
+ }
8
+
9
+ export const Default = {}
@@ -0,0 +1,53 @@
1
+ <template>
2
+ <!-- z-60 is to maintain visibility over NavDesktop -->
3
+ <div class="z-60 lg:left-auto lg:mr-20 absolute top-0 left-0 right-0 mt-4 text-center">
4
+ <BaseButton
5
+ variant="primary"
6
+ class="focus:not-sr-only sr-only"
7
+ compact
8
+ @click="handleClick()"
9
+ >
10
+ Skip to main content
11
+ </BaseButton>
12
+ </div>
13
+ </template>
14
+ <script lang="ts">
15
+ import { defineComponent } from 'vue'
16
+ import BaseButton from './../BaseButton/BaseButton.vue'
17
+
18
+ export default defineComponent({
19
+ name: 'SkipLink',
20
+ components: {
21
+ BaseButton
22
+ },
23
+ data(): {
24
+ main: HTMLElement | null
25
+ } {
26
+ return {
27
+ main: null
28
+ }
29
+ },
30
+ methods: {
31
+ // skip link inspired by https://github.com/wagtail/wagtail/blob/master/client/src/includes/initSkipLink.js
32
+ // gracefully handle focusing on the main element
33
+ handleBlur() {
34
+ // removes the tabindex after focus
35
+ if (this.main) {
36
+ this.main.removeAttribute('tabindex')
37
+ this.main.removeEventListener('blur', this.handleBlur)
38
+ this.main.removeEventListener('focusout', this.handleBlur)
39
+ }
40
+ },
41
+ handleClick() {
42
+ // update the main element each time
43
+ this.main = document.querySelector('main')
44
+ if (this.main) {
45
+ this.main.setAttribute('tabindex', '-1')
46
+ this.main.addEventListener('blur', this.handleBlur)
47
+ this.main.focus()
48
+ window.scrollTo(0, this.main.offsetTop)
49
+ }
50
+ }
51
+ }
52
+ })
53
+ </script>
@@ -0,0 +1,77 @@
1
+ import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs'
2
+ import SwimlaneCTA from '@explorer-1/vue/src/components/SwimlaneCTA/SwimlaneCTA.vue'
3
+
4
+ <Meta
5
+ title="Components/SwimlaneCTA"
6
+ component={SwimlaneCTA}
7
+ parameters={{ viewMode: 'docs' }}
8
+ />
9
+
10
+ export const SwimlaneCTAData = {
11
+ darkMode: true,
12
+ targetLink: 'https://jpl.nasa.gov/about',
13
+ backgroundImages: [
14
+ 'https://picsum.photos/1380/540?random=1',
15
+ 'https://picsum.photos/1380/540?random=2',
16
+ 'https://picsum.photos/1380/540?random=3',
17
+ 'https://picsum.photos/1380/540?random=4',
18
+ 'https://picsum.photos/1380/540?random=5'
19
+ ],
20
+ backgroundImagesSmall: [
21
+ 'https://picsum.photos/1380/540?random=1',
22
+ 'https://picsum.photos/1380/540?random=2',
23
+ 'https://picsum.photos/1380/540?random=3',
24
+ 'https://picsum.photos/1380/540?random=4',
25
+ 'https://picsum.photos/1380/540?random=5'
26
+ ],
27
+ words: [
28
+ 'Artists',
29
+ 'Communicators',
30
+ 'Designers',
31
+ 'Disruptors',
32
+ 'Dreamers',
33
+ 'Developers',
34
+ 'Educators',
35
+ 'Engineers',
36
+ 'Innovators',
37
+ 'Inventors',
38
+ 'Makers',
39
+ 'Problem Solvers',
40
+ 'Roboticists',
41
+ 'Scientists',
42
+ 'Software Engineers',
43
+ 'Thinkers',
44
+ 'Visualizers'
45
+ ],
46
+ rows: 9,
47
+ transitionDuration: 1800,
48
+ transitionDelay: 800
49
+ }
50
+ export const SwimlaneCTATemplate = (args) => ({
51
+ props: Object.keys(args),
52
+ components: { SwimlaneCTA },
53
+ template: `<SwimlaneCTA :dark-mode="darkMode" :background-images="backgroundImages" :background-images-small="backgroundImagesSmall" :target-link="targetLink"/>`
54
+ })
55
+
56
+ # SwimlaneCTA
57
+
58
+ ## Usage
59
+
60
+ The SwimlaneCTA component combines [BaseSwimlane](?path=/story/www-components-base-baseswimlane--default) with other elements (JPL logo, links, etc.) to create the component that is used on the WWW homepage.
61
+
62
+ <Canvas className="sbdocs-preview-full-width">
63
+ <Story
64
+ name="SwimlaneCTA"
65
+ args={SwimlaneCTAData}
66
+ >
67
+ {SwimlaneCTATemplate.bind({})}
68
+ </Story>
69
+ </Canvas>
70
+
71
+ ## Props
72
+
73
+ <ArgsTable for={SwimlaneCTA} />
74
+
75
+ ## Example data
76
+
77
+ <code language="json">{JSON.stringify(SwimlaneCTAData, null, 2)}</code>
@@ -0,0 +1,281 @@
1
+ <template>
2
+ <div class="justify-items-center flex w-full">
3
+ <BaseLink
4
+ v-if="targetLink"
5
+ class="w-full"
6
+ variant="none"
7
+ :to="targetLink"
8
+ title="JPL Life"
9
+ aria-label="JPL Life"
10
+ link-class="max-w-screen-3xl block w-full mx-auto"
11
+ >
12
+ <div
13
+ role="presentation"
14
+ :class="'SwimlaneCTA lg:block hidden' + computedClass"
15
+ :style="'background-image: url(' + randomizeImage + ');'"
16
+ >
17
+ <div class="absolute inset-0 z-10 bg-black bg-opacity-25"></div>
18
+ <div
19
+ class="lg:pr-12 lg:py-5 lg:flex-row relative z-20 flex flex-col justify-center w-full px-5 py-6"
20
+ >
21
+ <div class="lg:flex-row lg:pr-3 lg:pb-0 flex flex-col items-center justify-center pb-2">
22
+ <div class="text-contrast relative z-20 p-2 pl-0">
23
+ <template v-if="darkMode === true">
24
+ <img
25
+ loading="lazy"
26
+ class="lg:pr-1 h-8 w-auto"
27
+ src="@/assets/images/png/brand-jpl-logo-FFFFFF-S-94h28w@2x.png"
28
+ alt="JPL Logo"
29
+ width="106"
30
+ height="32"
31
+ />
32
+ </template>
33
+ <template v-else>
34
+ <img
35
+ loading="lazy"
36
+ class="lg:pr-1 h-8 w-auto"
37
+ src="@/assets/images/png/brand-jpl-logo-222222-94h28w@2x.png"
38
+ alt="JPL Logo"
39
+ width="111"
40
+ height="32"
41
+ />
42
+ </template>
43
+ </div>
44
+ <div class="lg:p-1 text-contrast relative z-20 pt-2 pl-0">
45
+ <p class="text-secondary lg:text-7xl mb-0 text-4xl font-medium">is a place for</p>
46
+ </div>
47
+ </div>
48
+
49
+ <div>
50
+ <div class="text-contrast relative z-20 pt-1 -mt-px">
51
+ <BaseSwimlane
52
+ :words="cloneWords"
53
+ :rows="desktopRows"
54
+ :scale="desktopScale"
55
+ :transition-duration="transitionDuration"
56
+ :transition-delay="transitionDelay"
57
+ class="lg:block hidden"
58
+ ></BaseSwimlane>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ <div
64
+ role="presentation"
65
+ :class="'SwimlaneCTA lg:hidden block' + computedClass"
66
+ :style="'background-image: url(' + randomizeImageSmall + ');'"
67
+ >
68
+ <div
69
+ class="lg:flex-row lg:pr-12 lg:py-5 flex flex-col justify-center w-full px-5 py-6 bg-black bg-opacity-25"
70
+ >
71
+ <div class="lg:flex-row lg:pr-3 lg:pb-0 flex flex-col items-center justify-center pb-2">
72
+ <div class="relative z-20 p-2 pl-0">
73
+ <template v-if="darkMode === true">
74
+ <img
75
+ loading="lazy"
76
+ class="lg:pr-1 h-8 w-auto"
77
+ src="@/assets/images/png/brand-jpl-logo-FFFFFF-S-94h28w@2x.png"
78
+ alt="JPL Logo"
79
+ width="106"
80
+ height="32"
81
+ />
82
+ </template>
83
+ <template v-else>
84
+ <img
85
+ loading="lazy"
86
+ class="lg:pr-1 h-8 w-auto"
87
+ src="@/assets/images/png/brand-jpl-logo-222222-94h28w@2x.png"
88
+ alt="JPL Logo"
89
+ width="111"
90
+ height="32"
91
+ />
92
+ </template>
93
+ </div>
94
+ <div class="lg:p-1 relative z-20 pt-2 pl-0">
95
+ <p class="text-secondary text-contrast lg:text-7xl mb-0 text-4xl font-medium">
96
+ is a place for
97
+ </p>
98
+ </div>
99
+ </div>
100
+
101
+ <div>
102
+ <div class="text-contrast relative z-20 pt-1">
103
+ <BaseSwimlane
104
+ :words="cloneWords"
105
+ :rows="mobileRows"
106
+ :scale="mobileScale"
107
+ :transition-duration="transitionDuration"
108
+ :transition-delay="transitionDelay"
109
+ class="lg:hidden block"
110
+ ></BaseSwimlane>
111
+ </div>
112
+ </div>
113
+ </div>
114
+ </div>
115
+ </BaseLink>
116
+ </div>
117
+ </template>
118
+
119
+ <script lang="ts">
120
+ import { defineComponent } from 'vue'
121
+ import BaseLink from './../BaseLink/BaseLink.vue'
122
+ import BaseSwimlane from './../BaseSwimlane/BaseSwimlane.vue'
123
+
124
+ export default defineComponent({
125
+ name: 'SwimlaneCTA',
126
+ components: {
127
+ BaseLink,
128
+ BaseSwimlane
129
+ },
130
+ props: {
131
+ backgroundImages: {
132
+ type: Array,
133
+ required: false,
134
+ default: () => [
135
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Dreamers.jpg',
136
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Artists.jpg',
137
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Communicators.jpg',
138
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Designers.jpg',
139
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Disruptors.jpg',
140
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Educators.jpg',
141
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Innovators.jpg',
142
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Inventors.jpg',
143
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Makers.jpg',
144
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Problem_Solvers.jpg',
145
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Robiticists.jpg',
146
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Scientists.jpg',
147
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Software_Engineers.jpg',
148
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Thinkers.jpg',
149
+ '/img/SwimlaneCTA/backgroundImages/JPL_is__Visualizers.jpg'
150
+ ]
151
+ },
152
+ backgroundImagesSmall: {
153
+ type: Array,
154
+ required: false,
155
+ default: () => [
156
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Dreamers.jpg',
157
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Artists.jpg',
158
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Communicators.jpg',
159
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Designers.jpg',
160
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Disruptors.jpg',
161
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Educators.jpg',
162
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Innovators.jpg',
163
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Inventors.jpg',
164
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Makers.jpg',
165
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Problem_Solvers.jpg',
166
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Robiticists.jpg',
167
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Scientists.jpg',
168
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Software_Engineers.jpg',
169
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Thinkers.jpg',
170
+ '/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Visualizers.jpg'
171
+ ]
172
+ },
173
+ darkMode: {
174
+ type: Boolean,
175
+ required: false,
176
+ default: true
177
+ },
178
+ targetLink: {
179
+ type: String,
180
+ required: false,
181
+ default: '/topics/jpl-life'
182
+ }
183
+ },
184
+ data() {
185
+ return {
186
+ mobileRows: 2,
187
+ desktopRows: 9,
188
+ mobileScale: 1.9,
189
+ desktopScale: 2.5,
190
+ words: [
191
+ 'Dreamers',
192
+ 'Artists',
193
+ 'Communicators',
194
+ 'Designers',
195
+ 'Educators',
196
+ 'Innovators',
197
+ 'Inventors',
198
+ 'Makers',
199
+ 'Problem Solvers',
200
+ 'Roboticists',
201
+ 'Scientists',
202
+ 'Engineers',
203
+ 'Thinkers',
204
+ 'Visualizers',
205
+ 'Oceanographers',
206
+ 'Developers',
207
+ 'Astrophysicists',
208
+ 'Disruptors',
209
+ 'Data Scientists',
210
+ 'Storytellers'
211
+ ],
212
+ transitionDuration: 1800,
213
+ transitionDelay: 800
214
+ }
215
+ },
216
+ computed: {
217
+ computedClass(): string {
218
+ let classes = ''
219
+ if (!this.darkMode) {
220
+ classes = classes + ' light-theme'
221
+ } else {
222
+ classes = classes + ' dark-theme'
223
+ }
224
+ return classes
225
+ },
226
+ randomizeImage(): object {
227
+ const backgroundImage = this.backgroundImages[
228
+ Math.floor(Math.random() * this.backgroundImages.length)
229
+ ] as object
230
+ return backgroundImage
231
+ },
232
+ randomizeImageSmall(): object {
233
+ const backgroundImageSmall = this.backgroundImagesSmall[
234
+ Math.floor(Math.random() * this.backgroundImagesSmall.length)
235
+ ] as object
236
+ return backgroundImageSmall
237
+ },
238
+ cloneWords(): string[] {
239
+ const multiWordArray = Array.from({ length: 10 }, () => this.words).flat()
240
+ return multiWordArray
241
+ }
242
+ }
243
+ })
244
+ </script>
245
+
246
+ <style lang="scss">
247
+ // SwimlaneCTA Scoped Styles
248
+ .SwimlaneCTA {
249
+ @apply max-w-screen-3xl animate-fadeIn relative items-center justify-center object-cover w-full mx-auto bg-center bg-no-repeat bg-cover select-none;
250
+
251
+ min-height: 245px;
252
+
253
+ @screen lg {
254
+ min-height: 595px;
255
+ }
256
+
257
+ * {
258
+ @apply animate-fadeInSlow;
259
+ }
260
+
261
+ &.light-theme {
262
+ @apply bg-gray-light text-gray-dark;
263
+
264
+ ul {
265
+ li {
266
+ @apply text-gray-dark;
267
+ }
268
+ }
269
+ }
270
+
271
+ &.dark-theme {
272
+ @apply bg-black text-white;
273
+
274
+ ul {
275
+ li {
276
+ @apply text-white;
277
+ }
278
+ }
279
+ }
280
+ }
281
+ </style>