Skip to content

Commit 79b10fe

Browse files
authored
Merge pull request #146 from code4romania/develop
site updates - newsletter sidebar links and hamburger
2 parents 7dc52f8 + 1813040 commit 79b10fe

File tree

19 files changed

+453
-548
lines changed

19 files changed

+453
-548
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
uses: muratiger/invalidate-cloudfront-and-wait-for-completion-action@master
5555
env:
5656
DISTRIBUTION_ID: $DISTRIBUTION_ID_TEST
57-
57+
5858
- name: Deploy to S3 Production
5959
if: github.ref == 'refs/heads/master'
6060
uses: jakejarvis/s3-sync-action@v0.5.1

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Ce fac - Web platform with guides & questionnaires
1+
# Ce trebuie să fac - Web platform with guides & questionnaires
22

33
[![GitHub contributors](https://img.shields.io/github/contributors/code4romania/ce-ma-fac.svg?style=for-the-badge)](https://github.com/code4romania/ce-ma-fac/graphs/contributors) [![GitHub last commit](https://img.shields.io/github/last-commit/code4romania/ce-ma-fac.svg?style=for-the-badge)](https://github.com/code4romania/ce-ma-fac/commits/master) [![License: MPL 2.0](https://img.shields.io/badge/license-MPL%202.0-brightgreen.svg?style=for-the-badge)](https://opensource.org/licenses/MPL-2.0)
44

5-
[See the project live](https://cetrebuiesafac.ro/)
5+
[See the project live](https://cetrebuiesafac.ro/) and [the preview environment](https://ce-ma-fac.now.sh/) with the work in progress.
66

77
Objective: Clear information of the public, increase in the level of proper actions taken.
88

@@ -12,7 +12,13 @@ How: Web platform with guides, questionnaires, and decision trees which can help
1212

1313
## Contributing
1414

15-
This project is built by amazing volunteers and you can be one of them! Here's a list of ways in [which you can contribute to this project](.github/CONTRIBUTING.md).
15+
This project is built by amazing volunteers and you can be one of them! Here's a list of ways in [which you can contribute to this project](.github/CONTRIBUTING.md). If you want to make any change to this repository, please **make a fork first**.
16+
17+
Help us out by testing this project in the [staging environment](https://ce-ma-fac.now.sh/). If you see something that doesn't quite work the way you expect it to, open an Issue. Make sure to describe what you _expect to happen_ and _what is actually happening_ in detail.
18+
19+
If you would like to suggest new functionality, open an Issue and mark it as a __[Feature request]__. Please be specific about why you think this functionality will be of use. If you can, please include some visual description of what you would like the UI to look like, if you are suggesting new UI elements.
20+
21+
Also, this is [the workflow we follow](.github/WORKFLOW.md).
1622

1723
## Built With
1824

@@ -32,6 +38,12 @@ Uses reusable components from: https://www.npmjs.com/package/@code4ro/taskforce-
3238

3339
## Development
3440

41+
- Fork this repo
42+
- Clone your fork
43+
- Open the directory where you have cloned the repo
44+
- And then follow [these](/frontend/README.md#Development) instructions
45+
46+
## Development
3547
### Backend
3648
- WIP
3749

api/Decisions.Api/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
}
88
},
99
"AllowedHosts": "*",
10-
"StorageType": "FileSystem"
10+
"StorageType": "FileSystem"
1111
}

frontend/package-lock.json

Lines changed: 380 additions & 518 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Arbore decizional pentru informarea publicului",
66
"private": true,
77
"dependencies": {
8-
"@code4ro/taskforce-fe-components": "^1.0.0",
8+
"@code4ro/taskforce-fe-components": "^1.0.3",
99
"bulma": "^0.8.0",
1010
"react": "^16.13.0",
1111
"react-dom": "^16.13.0",
-48.9 KB
Binary file not shown.

frontend/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/>
1212

1313
<meta property="og:title" content="Ce trebuie să fac" />
14-
<meta property="og:image" content="https://cetrebuiesafac.ro/images/social.png" />
14+
<meta property="og:image" content="https://cetrebuiesafac.ro/images/og_image.png" />
1515
<meta
1616
property="og:description"
1717
content="Cetrebuiesafac.ro este un ghid cu reguli de interacțiune, acțiune și comportament recomandate în timpul situației de urgență generată de pandemia COVID-19."

frontend/src/App.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
IncubatedBy,
1616
Banner
1717
} from "@code4ro/taskforce-fe-components";
18-
// import LogoSvg from "./images/logo.svg";
18+
import LogoSvg from "./images/logo.svg";
1919
import "./App.scss";
2020

2121
const About = lazy(() => import("./components/About"));
@@ -31,12 +31,20 @@ const Logo = () => (
3131
width="178"
3232
height="32"
3333
alt="Covid-19. Ce trebuie să fac?"
34-
src="/images/logo.png"
34+
src={LogoSvg}
3535
/>
3636
</Link>
3737
);
3838

3939
const MenuItems = [
40+
<a
41+
href="https://stirioficiale.ro"
42+
target="_blank"
43+
rel="noopener noreferrer"
44+
key={"stiri"}
45+
>
46+
Știri oficiale
47+
</a>,
4048
<Link to="/despre" key={"des"}>
4149
Despre
4250
</Link>

frontend/src/App.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222
text-align: center;
2323
}
2424
}
25+
.incubated-by-wrapper {
26+
margin-top: 2rem;
27+
}

frontend/src/components/About/index.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
import React from "react";
22
import logo from "../../images/logo.svg";
3+
import bandaSponsori from "../../images/banda_sponsori.png";
34
import {
45
Hero,
56
Instruments,
6-
SocialsShare
7+
SocialsShare,
8+
MailchimpSubscribe
79
} from "@code4ro/taskforce-fe-components";
810
import UsefulApps from "../../data/useful-apps";
911
import "./About.scss";
1012
import {
1113
renderInstrumentItem,
1214
remapInstrumentsData
1315
} from "../../utils/instruments.utils";
16+
import { mailchimpURL } from "../../config/mailchimp";
1417

1518
const About = () => {
1619
const instrumentsData = remapInstrumentsData(UsefulApps);
@@ -34,7 +37,7 @@ const About = () => {
3437
</div>
3538
</section>
3639
<section className="about-section-logo">
37-
<img src={logo} alt=""></img>
40+
<img src={logo} alt="" width="450" />
3841
</section>
3942
<section className="has-border-bottom has-horizontal-paddding">
4043
<p>
@@ -92,22 +95,18 @@ const About = () => {
9295
</a>
9396
</p>
9497
</section>
98+
<section className="has-border-bottom has-horizontal-paddding">
99+
<MailchimpSubscribe url={mailchimpURL} />
100+
</section>
95101
</div>
96102
<div className="sponsors">
97103
<p>
98104
<strong>
99-
Programul Code for Romania Task Force este susținut de:&nbsp;
105+
Programul Code for Romania Task Force este susținut de:
100106
</strong>
101107
</p>
102-
<p>&nbsp;</p>
103-
<p>
104-
<img
105-
src="/images/banda_sponsori.png"
106-
alt=""
107-
width="550"
108-
height="98"
109-
/>
110-
</p>
108+
<br />
109+
<img src={bandaSponsori} alt="" width="550" height="98" />
111110
</div>
112111
<div className="container about-page">
113112
<aside className="about-section-useful-instruments">

frontend/src/components/Home/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ import {
88
List,
99
ListItem,
1010
SidebarMenu,
11-
SidebarMenuItem
11+
SidebarMenuItem,
12+
MailchimpSubscribe
1213
} from "@code4ro/taskforce-fe-components";
1314
import UsefulApps from "../../data/useful-apps";
1415
import {
1516
renderInstrumentItem,
1617
remapInstrumentsData
1718
} from "../../utils/instruments.utils";
1819
import "./styles.scss";
20+
import { mailchimpURL } from "../../config/mailchimp";
1921

2022
const Home = () => {
2123
const [selectedPage, setSelectedPage] = useState(null);
@@ -128,6 +130,9 @@ const Home = () => {
128130
})}
129131
</Instruments>
130132
</div>
133+
<div className="newsletter">
134+
<MailchimpSubscribe url={mailchimpURL} compact={true} />
135+
</div>
131136
</aside>
132137
<div className="column is-8">
133138
{selectedPage && (
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.newsletter {
2+
margin-top: 20px;
3+
}
4+
15
@media (min-width: 768px) {
26
.homepage-columns {
37
flex-direction: row-reverse;
@@ -6,7 +10,7 @@
610

711
@media (max-width: 768px) {
812
.homepage-sidebar .instruments-wrapper,
9-
.pages-list {
13+
.pages-list, .newsletter {
1014
display: none;
1115
}
1216
}

frontend/src/config/mailchimp.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export const mailchimpURL =
2+
"https://stirioficiale.us19.list-manage.com/subscribe/post?u=046bd86a80966c2ecaa0d84bf&amp;id=10738ac8bf";

frontend/src/data/static-pages.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export default [
9595
<li>între persoane care sunt în contact strâns (strângerea mâinilor, îmbrățișările, sărutul obrajilor sau al mâinilor, atingerea fețelor cu mâinile).</li>
9696
<li>prin picăturile produse atunci când o persoană infectată tușește sau strănută. (Aceste picături pot ajunge în gurile sau nasurile persoanelor care se află în apropiere sau pot fi inhalate în plămâni).</li>
9797
</ul>
98-
9998
<p><b>Contact indirect</b></p>
10099
<ul>
101100
<li>atingerea suprafețelor care sunt atinse în mod frecvent și de alte persoane, precum: balustrade, clanțe, mânere, butoane de lift sau de acces, etc.</li>
@@ -532,7 +531,6 @@ export default [
532531
<li>Persoanele care ajută la tratarea COVID-19, spre exemplu doctorii și alte cadre din sistemul sanitar, ori cei care oferă prim ajutor</li>
533532
<li>Persoanele care suferă de o afecțiune mintală, inclusiv cele care au probleme legate de abuzul de substanțe cu risc de dependență</li>
534533
</ul>
535-
536534
<h3>Stresul în timpul unei epidemii infecțioase poate include: </h3>
537535
<ul>
538536
<li>Frică și îngrijorare legate de propria sănătate și de sănătatea celor dragi</li>
@@ -612,7 +610,6 @@ export default [
612610
<li>Păstrează-ți calmul și liniștește-i pe cei mici.</li>
613611
<li>Discută cu copiii despre lucrurile care se întâmplă, într-un mod în care pot înțelege. Încearcă să le explici în termeni simpli, potriviți pentru vârsta lor. </li>
614612
</ul>
615-
616613
<h4>După</h4>
617614
<ul>
618615
<li>Creează-le copiilor contexte în care să vorbească despre ceea ce tocmai s-a întâmplat și felul în care gândesc. Încurajează-i să îți spună ce îi îngrijorează și pune-le întrebări.</li>
@@ -736,7 +733,6 @@ export default [
736733
<li>Ia o pauză de la știrile sau relatările legate de COVID-19</li>
737734
<li>Cere ajutor dacă te simți copleșit sau îngrijorat de faptul că COVID-19 îți afectează capacitatea de a avea grijă de familia și pacienții tăi, așa cum o făceai înainte de răspândirea virusului.</li>
738735
</ul>
739-
740736
<h4>Semne că suferi de epuizare profesională (Burnout):</h4>
741737
<ul>
742738
<li>Tristețe, depresie sau apatie </li>
@@ -778,7 +774,6 @@ export default [
778774
<li><strong>Monitorizați-vă reciproc sarcinile de lucru</strong> Încurajați-vă unul pe celălalt să luați pauze. Discutați despre moduri prin care puteți reduce stresul (odihnă, rutina de somn, experciții fizice și respirații profunde). </li>
779775
<li><strong>Încearcă să creezi un mediu în echipă,</strong> în care colegul tău să se simtă în siguranță să își exprime nevoile și limitele. Facilitează comunicarea lui cu liderii echipei sau ceilalți colegi. </li>
780776
</ul>
781-
782777
<h3>Tehnici de îngrijire personală pentru membrii echipelor de intervenție</h3>
783778
<ul>
784779
<li>Limitează-ți orele la muncă la ture care nu depășesc 12 ore.</li>

frontend/src/data/useful-apps.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,20 @@ export default [
6161
link: "https://stirioficiale.ro/"
6262
}
6363
]
64+
},
65+
{
66+
title: "Date la zi",
67+
doc_type: "USEFUL_APP",
68+
doc_id: 5,
69+
active: true,
70+
display_order: 5,
71+
app_type: "DATA",
72+
content: null,
73+
buttons: [
74+
{
75+
title: "Vezi aici date la zi",
76+
link: "https://datelazi.ro/"
77+
}
78+
]
6479
}
6580
];
12.5 KB
Loading

frontend/src/images/logo.svg

Lines changed: 1 addition & 1 deletion
Loading

frontend/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ ReactDOM.render(<AppWrapper />, document.getElementById("root"));
1111
// If you want your app to work offline and load faster, you can change
1212
// unregister() to register() below. Note this comes with some pitfalls.
1313
// Learn more about service workers: https://bit.ly/CRA-PWA
14-
serviceWorker.unregister();
14+
serviceWorker.register();

0 commit comments

Comments
 (0)