{Translate('TemporaryMaintenanceDescription')}
25 |{Translate("NotFound", ["PartOne"])}
27 |{Translate("NotFound", ["PartTwo"])}
28 | 33 |19 | {Translate("AnalysisMethods", ["Tooltip"], { "MIN_DENOMINATOR": MIN_DENOMINATOR })} 20 |
21 |30 | {Translate("AnalysisMethods", ["SecondParagraph"], null)} 31 |
32 |33 | {Translate("AnalysisMethods", ["ThirdParagraph"], null)} 34 |
35 | 36 | ) 37 | } -------------------------------------------------------------------------------- /src/components/shared/Footer/Footer.scss: -------------------------------------------------------------------------------- 1 | @import '../../../sass/variables.scss'; 2 | 3 | .whoDisclaimer { 4 | font-size: 16px; 5 | 6 | } 7 | 8 | .ui.styled.accordion.footer-accordion { 9 | border-radius: 0; 10 | background: none; 11 | box-shadow: none; 12 | } 13 | 14 | .title.footer.accordion__title{ 15 | color: white !important; 16 | } 17 | 18 | .footer { 19 | background-color: $sero-dark-blue; 20 | font-size: 16px; 21 | font-weight: 300; 22 | color: white !important; 23 | 24 | .updated-at-bold { 25 | font-weight: 600; 26 | } 27 | 28 | a:hover { 29 | color: white !important; 30 | text-decoration: underline; 31 | } 32 | 33 | &--mobile { 34 | flex-direction: column; 35 | justify-content: flex-start; 36 | } 37 | 38 | &__item { 39 | font-size: 1em; 40 | color: white; 41 | display: flex; 42 | align-items: center; 43 | } 44 | 45 | &__link { 46 | color: white; 47 | } 48 | 49 | &__image-wrapper { 50 | display: flex; 51 | margin-top: 15px; 52 | margin-bottom: 15px; 53 | } 54 | 55 | &__image { 56 | object-fit: contain; 57 | width: 100%; 58 | height: 100%; 59 | max-width: 120px; 60 | } 61 | 62 | &__sponsers-pill { 63 | padding: 1em; 64 | background-color: white; 65 | border-radius: 10px; 66 | } 67 | 68 | &__visible-section { 69 | height: 50px; 70 | white-space: nowrap; 71 | } 72 | 73 | h3 { 74 | font-weight: 600; 75 | } 76 | } -------------------------------------------------------------------------------- /src/components/shared/InformationText.tsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { Popup } from "semantic-ui-react"; 3 | import { sendAnalyticsEvent } from "../../utils/analyticsUtils"; 4 | import 'sass/components/shared.scss'; 5 | 6 | interface InformationTextProps { 7 | position?: "top left" | "top right" | "bottom right" | "bottom left" | "right center" | "left center" | "top center" | "bottom center" | undefined, 8 | tooltip: string | React.ReactNode; 9 | tooltipHeader?: string; 10 | offset: string | number; 11 | popupSize?: "mini" | "tiny" | "small" | "large" | "huge"; 12 | text: string; 13 | } 14 | 15 | export default function InformationText(props: InformationTextProps) { 16 | const { text, tooltip, tooltipHeader, offset, position, popupSize = "small" } = props; 17 | return ( 18 |{Translate('WhoSerotrackAndPartnersDisclaimer1')}
18 |{Translate('WhoSerotrackAndPartnersDisclaimer2')}
19 |{Translate('WhoSerotrackAndPartnersDisclaimer3')}
20 |Monthly summaries of recent seroprevalence literature and product updates
45 | setNewsletterEmail(event.target.value)} 53 | /> 54 | > 55 | ) 56 | } -------------------------------------------------------------------------------- /src/utils/utils.tsx: -------------------------------------------------------------------------------- 1 | import { formatISO, add } from "date-fns"; 2 | import Translate from 'utils/translate/translateService'; 3 | import { LanguageType } from "../types"; 4 | import { compareAsc } from "date-fns"; 5 | import mapboxgl from "mapbox-gl"; 6 | 7 | let language = LanguageType.english; 8 | 9 | export const setLanguage = (newLanguage: LanguageType) => { 10 | language = newLanguage; 11 | } 12 | 13 | export const formatDates = (dates: Array{Translate("Welcome")}
81 |{Translate("ExploreBlurb", ["FirstParagraph"])}
84 | {"\n"} 85 |{Translate("ExploreBlurb", ["SecondParagraph"])}
86 |
103 |
106 |
109 |