diff --git a/src/modals/InfoModal.css b/src/modals/InfoModal.css new file mode 100644 index 0000000..cd06de1 --- /dev/null +++ b/src/modals/InfoModal.css @@ -0,0 +1,51 @@ +div.info-screen { + max-width: 400px; + margin-left: auto; + margin-right: auto; +} + +/* basic */ +p.info-title-basic { + font-weight: bold; + font-size: 25px; + margin-bottom: 24px; + color: var(--ion-color-dark-basic); +} + +li.info-item-basic { + font-size: 16px; + margin-bottom: 20px; + color: var(--ion-color-text-basic); +} + +li.info-item-basic::marker { + color: var(--ion-color-dark-basic); +} + +span.info-item-basic { + color: var(--ion-color-less-dark-basic); + font-weight: bold; +} + +/* dark */ +p.info-title-dark { + font-weight: bold; + font-size: 25px; + margin-bottom: 24px; + color: var(--ion-color-dark-dark); +} + +li.info-item-dark { + font-size: 16px; + margin-bottom: 20px; + color: var(--ion-color-text-dark); +} + +li.info-item-dark::marker { + color: var(--ion-color-dark-dark); +} + +span.info-item-dark { + color: var(--ion-color-less-dark-dark); + font-weight: bold; +} diff --git a/src/modals/InfoModal.tsx b/src/modals/InfoModal.tsx index 830f3ce..d0b4184 100644 --- a/src/modals/InfoModal.tsx +++ b/src/modals/InfoModal.tsx @@ -11,6 +11,8 @@ import { getPregnancyChance, } from "../state/CalculationLogics"; +import "./InfoModal.css"; + interface PropsInfoModal { isOpen: boolean; setIsOpen: (newIsOpen: boolean) => void; @@ -38,112 +40,57 @@ const InfoModal = (props: PropsInfoModal) => { className="ion-padding" color={`transparent-${theme}`} > -

- {`${t("Days", { - postProcess: "interval", - count: 1, // NOTE: to indicate which day is in the account, you need to write the day as if in the singular - })} `} - {cycles.length === 1 ? ( - currentDay - ) : ( - <> - {currentDay}/{lengthOfCycle} - - )} -

- -

- {t("Frequent symptoms")} -

- +

{t("Frequent symptoms")}

+ + + props.setIsOpen(false)} + > + OK + + + );