Skip to content

Commit

Permalink
Merge pull request #9 from EyeSeeTea/feat/about-page
Browse files Browse the repository at this point in the history
add about page
  • Loading branch information
adrianq authored Jul 24, 2023
2 parents 5149fae + 62e26c7 commit 62e114e
Show file tree
Hide file tree
Showing 13 changed files with 851 additions and 8 deletions.
31 changes: 30 additions & 1 deletion i18n/ar.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-06-13T18:46:56.801Z\n"
"POT-Creation-Date: 2023-07-14T16:28:01.835Z\n"
"PO-Revision-Date: 2018-10-25T09:02:35.143Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -49,3 +49,32 @@ msgstr ""

msgid "Templates not found"
msgstr ""

msgid "Distributed under GNU GLPv3"
msgstr ""

msgid ""
"Dashboard reports is a DHIS2 web application to generate word reports from a "
"DHIS2 dashboard"
msgstr ""

msgid ""
"This application has been funded by the Medecins Sans Frontières (MSF). The "
"application has been developed by [EyeSeeTea SL](http://eyeseetea.com). "
"Source code, documentation and release notes can be found at the [EyeSeetea "
"GitHub Project Page](https://github.com/EyeSeeTea/dashboard-reports/)"
msgstr ""

msgid ""
"If you wish to contribute to the development of Dashboard reports with new "
"features, please contact [EyeSeeTea](mailto:[email protected])."
msgstr ""

msgid "About Dashboard reports"
msgstr ""

msgid "Médicos Sin Fronteras"
msgstr ""

msgid "EyeSeeTea"
msgstr ""
33 changes: 31 additions & 2 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2023-06-13T18:46:56.801Z\n"
"PO-Revision-Date: 2023-06-13T18:46:56.801Z\n"
"POT-Creation-Date: 2023-07-14T16:28:01.835Z\n"
"PO-Revision-Date: 2023-07-14T16:28:01.835Z\n"

msgid "Select Dashboard"
msgstr ""
Expand Down Expand Up @@ -49,3 +49,32 @@ msgstr ""

msgid "Templates not found"
msgstr ""

msgid "Distributed under GNU GLPv3"
msgstr ""

msgid ""
"Dashboard reports is a DHIS2 web application to generate word reports from "
"a DHIS2 dashboard"
msgstr ""

msgid ""
"This application has been funded by the Medecins Sans Frontières (MSF). The "
"application has been developed by [EyeSeeTea SL](http://eyeseetea.com). "
"Source code, documentation and release notes can be found at the [EyeSeetea "
"GitHub Project Page](https://github.com/EyeSeeTea/dashboard-reports/)"
msgstr ""

msgid ""
"If you wish to contribute to the development of Dashboard reports with new "
"features, please contact [EyeSeeTea](mailto:[email protected])."
msgstr ""

msgid "About Dashboard reports"
msgstr ""

msgid "Médicos Sin Fronteras"
msgstr ""

msgid "EyeSeeTea"
msgstr ""
31 changes: 30 additions & 1 deletion i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-06-13T18:46:56.801Z\n"
"POT-Creation-Date: 2023-07-14T16:28:01.835Z\n"
"PO-Revision-Date: 2018-10-25T09:02:35.143Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -50,6 +50,35 @@ msgstr "Ayuda"
msgid "Templates not found"
msgstr ""

msgid "Distributed under GNU GLPv3"
msgstr ""

msgid ""
"Dashboard reports is a DHIS2 web application to generate word reports from a "
"DHIS2 dashboard"
msgstr ""

msgid ""
"This application has been funded by the Medecins Sans Frontières (MSF). The "
"application has been developed by [EyeSeeTea SL](http://eyeseetea.com). "
"Source code, documentation and release notes can be found at the [EyeSeetea "
"GitHub Project Page](https://github.com/EyeSeeTea/dashboard-reports/)"
msgstr ""

msgid ""
"If you wish to contribute to the development of Dashboard reports with new "
"features, please contact [EyeSeeTea](mailto:[email protected])."
msgstr ""

msgid "About Dashboard reports"
msgstr ""

msgid "Médicos Sin Fronteras"
msgstr ""

msgid "EyeSeeTea"
msgstr ""

#~ msgid "Add"
#~ msgstr "Añadir"

Expand Down
31 changes: 30 additions & 1 deletion i18n/fr.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-06-13T18:46:56.801Z\n"
"POT-Creation-Date: 2023-07-14T16:28:01.835Z\n"
"PO-Revision-Date: 2018-10-25T09:02:35.143Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -49,3 +49,32 @@ msgstr ""

msgid "Templates not found"
msgstr ""

msgid "Distributed under GNU GLPv3"
msgstr ""

msgid ""
"Dashboard reports is a DHIS2 web application to generate word reports from a "
"DHIS2 dashboard"
msgstr ""

msgid ""
"This application has been funded by the Medecins Sans Frontières (MSF). The "
"application has been developed by [EyeSeeTea SL](http://eyeseetea.com). "
"Source code, documentation and release notes can be found at the [EyeSeetea "
"GitHub Project Page](https://github.com/EyeSeeTea/dashboard-reports/)"
msgstr ""

msgid ""
"If you wish to contribute to the development of Dashboard reports with new "
"features, please contact [EyeSeeTea](mailto:[email protected])."
msgstr ""

msgid "About Dashboard reports"
msgstr ""

msgid "Médicos Sin Fronteras"
msgstr ""

msgid "EyeSeeTea"
msgstr ""
31 changes: 30 additions & 1 deletion i18n/pt.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-06-13T18:46:56.801Z\n"
"POT-Creation-Date: 2023-07-14T16:28:01.835Z\n"
"PO-Revision-Date: 2018-10-25T09:02:35.143Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -49,3 +49,32 @@ msgstr ""

msgid "Templates not found"
msgstr ""

msgid "Distributed under GNU GLPv3"
msgstr ""

msgid ""
"Dashboard reports is a DHIS2 web application to generate word reports from a "
"DHIS2 dashboard"
msgstr ""

msgid ""
"This application has been funded by the Medecins Sans Frontières (MSF). The "
"application has been developed by [EyeSeeTea SL](http://eyeseetea.com). "
"Source code, documentation and release notes can be found at the [EyeSeetea "
"GitHub Project Page](https://github.com/EyeSeeTea/dashboard-reports/)"
msgstr ""

msgid ""
"If you wish to contribute to the development of Dashboard reports with new "
"features, please contact [EyeSeeTea](mailto:[email protected])."
msgstr ""

msgid "About Dashboard reports"
msgstr ""

msgid "Médicos Sin Fronteras"
msgstr ""

msgid "EyeSeeTea"
msgstr ""
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"purify-ts-extra-codec": "0.6.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-markdown": "8.0.7",
"react-router-dom": "5.2.0",
"react-scripts": "4.0.3",
"styled-components": "5.3.5",
Expand Down
Binary file added public/img/logo-eyeseetea.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/img/logo-msf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions src/webapp/components/markdown/MarkdownViewer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import React from "react";
import ReactMarkdown from "react-markdown";
import styled from "styled-components";

export const SimpleMarkdownViewer: React.FC<{ className?: string; source: string; center?: boolean }> = ({
className,
source,
}) => <ReactMarkdown className={className}>{source}</ReactMarkdown>;

export const MarkdownViewer = styled(SimpleMarkdownViewer)`
color: white;
padding: 5px 20px 0 20px;
text-align-last: ${props => (props.center ? "center" : "unset")};
h1 {
font-size: 32px;
line-height: 47px;
font-weight: 300;
margin: 0px 0px 30px 0px;
}
p {
font-size: 17px;
font-weight: 300;
line-height: 28px;
text-align: justify;
}
img {
max-width: 100%;
border-radius: 1em;
user-drag: none;
}
video {
max-width: 100%;
user-drag: none;
}
a {
color: white;
}
details > summary {
cursor: pointer;
display: flex;
align-items: center;
outline: none;
list-style: none;
list-style-type: none;
font-size: 33px;
font-weight: 100;
text-align: left;
user-select: none;
}
details > summary::-webkit-details-marker {
display: none;
}
details > summary::before {
content: url(./img/note.svg);
margin-right: 20px;
top: 3px;
position: relative;
}
details > summary::after {
content: "keyboard_arrow_down";
font-size: 35px;
margin-left: 10px;
font-family: "Material Icons";
}
details[open] > summary::after {
transform: rotate(180deg);
}
`;
6 changes: 5 additions & 1 deletion src/webapp/pages/Router.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import React from "react";
import { HashRouter, Route, Switch } from "react-router-dom";
import { AboutButtonFloat } from "./about/AboutButtonFloat";
import { AboutPage } from "./about/AboutPage";
import { LandingPage } from "./landing/LandingPage";

export const Router: React.FC = React.memo(() => {
return (
<HashRouter>
<Switch>
{/* Default route */}
<Route render={() => <LandingPage />} />
<Route path="/about" render={() => <AboutPage />} />
<Route path="/" render={() => <LandingPage />} />
</Switch>
<AboutButtonFloat visible />
</HashRouter>
);
});
Loading

0 comments on commit 62e114e

Please sign in to comment.