Browse Source

Merge branch 'eduardo-sprint-2' of sergio.mattei/RenacerSocial into main

eliam.ruiz 1 year ago
parent
commit
5f9f37945b

+ 30
- 2
cypress/e2e/eduardo.cy.ts View File

@@ -1,2 +1,30 @@
1
-// I will E2E test the article page.
2
-// User visits home -> User clicks on "laws or advice" -> List renders with 200
1
+describe("Our app", () => {
2
+  beforeEach(() => {
3
+    cy.intercept(
4
+      { pathname: "/api/getTopicList" },
5
+      {
6
+        fixture: "topics",
7
+      }
8
+    ).as("getTopicList");
9
+
10
+    cy.intercept(
11
+      { pathname: "/api/getTopic" },
12
+      {
13
+        fixture: "article",
14
+      }
15
+    ).as("getTopic");
16
+
17
+    cy.viewport("iphone-x");
18
+    cy.visit("/");
19
+  });
20
+
21
+  it("shows the home page", () => {
22
+    cy.visit("/");
23
+    cy.contains("Bienvenidos");
24
+  });
25
+
26
+  it("shows a video in the home page", () => {
27
+    cy.visit("/");
28
+    cy.get("iframe").should("be.visible");
29
+  });
30
+});

+ 28
- 3
src/App.tsx View File

@@ -45,9 +45,14 @@ import "./theme/global.css";
45 45
 import "react-notion-x/src/styles.css";
46 46
 import AboutListPage from "./pages/AboutListPage";
47 47
 import CasitaPage from "./pages/services/CasitaPage";
48
-import CrecemosPage from "./pages/services/CrecemosPage";
48
+import EducacionPage from "./pages/services/EducacionPage";
49 49
 import LazosPage from "./pages/services/LazosPage";
50 50
 import SupervisadasPage from "./pages/services/SupervisadasPage";
51
+import InfoPage from "./pages/services/InfoPage";
52
+import TerapeuticasPage from "./pages/services/TerapeuticasPage";
53
+import ConsejosPage from "./pages/services/ConsejosPage";
54
+import TalleresPage from "./pages/services/TalleresPage";
55
+import ApoyoPage from "./pages/services/ApoyoPage";
51 56
 
52 57
 setupIonicReact();
53 58
 
@@ -70,18 +75,38 @@ const App: React.FC = () => (
70 75
 
71 76
           <Route path="/article/:articleId" component={ArticlePage} />
72 77
 
78
+          <Route path="/services/info">
79
+            <InfoPage />
80
+          </Route>
81
+
73 82
           <Route path="/services/lazos">
74 83
             <LazosPage />
75 84
           </Route>
76 85
 
77
-          <Route path="/services/crecemos">
78
-            <CrecemosPage />
86
+          <Route path="/services/terapeuticas">
87
+            <TerapeuticasPage />
88
+          </Route>
89
+
90
+          <Route path="/services/educacion">
91
+            <EducacionPage />
79 92
           </Route>
80 93
 
81 94
           <Route path="/services/supervisadas">
82 95
             <SupervisadasPage />
83 96
           </Route>
84 97
 
98
+          <Route path="/services/consejos">
99
+            <ConsejosPage />
100
+          </Route>
101
+
102
+          <Route path="/services/talleres">
103
+            <TalleresPage />
104
+          </Route>
105
+
106
+          <Route path="/services/apoyos">
107
+            <ApoyoPage />
108
+          </Route>
109
+
85 110
           <Route path="/about">
86 111
             <AboutListPage />
87 112
           </Route>

+ 29
- 3
src/pages/AboutListPage.tsx View File

@@ -33,6 +33,11 @@ const AboutListPage: React.FC = () => {
33 33
               allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
34 34
             ></iframe>
35 35
           </div>
36
+
37
+          <IonItem routerLink={`/services/info`}>
38
+            <p className="ListItemText">Nuestras Misiones </p>
39
+          </IonItem>
40
+
36 41
           <h5>Bienvenidos</h5>
37 42
           <p>
38 43
             Renacer Social ha iniciado una campaña de orientación a la comunidad
@@ -45,20 +50,41 @@ const AboutListPage: React.FC = () => {
45 50
           </p>
46 51
           <IonList>
47 52
             <IonListHeader>
48
-              <IonLabel>Servicios</IonLabel>
53
+              <IonLabel>Servicios Disponibles</IonLabel>
49 54
             </IonListHeader>
55
+
50 56
             <IonItem routerLink={`/services/casita`}>
51 57
               <p className="ListItemText">Casita de Paz</p>
52 58
             </IonItem>
53
-            <IonItem routerLink={`/services/Crecemos`}>
54
-              <p className="ListItemText">Crecemos</p>
59
+
60
+            <IonItem routerLink={`/services/educacion`}>
61
+              <p className="ListItemText">Educacion</p>
55 62
             </IonItem>
63
+
56 64
             <IonItem routerLink={`/services/Lazos`}>
57 65
               <p className="ListItemText">Proyecto Lazos</p>
58 66
             </IonItem>
67
+
59 68
             <IonItem routerLink={`/services/Supervisadas`}>
60 69
               <p className="ListItemText">Visitas Supervisadas</p>
61 70
             </IonItem>
71
+            <IonItem routerLink={`/services/terapeuticas`}>
72
+              <p className="ListItemText">
73
+                Servicios de Visitas Supervisadas Terapéuticas
74
+              </p>
75
+            </IonItem>
76
+
77
+            <IonItem routerLink={`/services/consejos`}>
78
+              <p className="ListItemText">Consejería</p>
79
+            </IonItem>
80
+
81
+            <IonItem routerLink={`/services/talleres`}>
82
+              <p className="ListItemText">Talleres educativos</p>
83
+            </IonItem>
84
+
85
+            <IonItem routerLink={`/services/apoyo`}>
86
+              <p className="ListItemText">Seguridad y Apoyo</p>
87
+            </IonItem>
62 88
           </IonList>
63 89
         </IonContent>
64 90
       </IonContent>

+ 46
- 0
src/pages/services/ApoyoPage.tsx View File

@@ -0,0 +1,46 @@
1
+import {
2
+  IonBackButton,
3
+  IonButtons,
4
+  IonCard,
5
+  IonCardContent,
6
+  IonCardHeader,
7
+  IonCardSubtitle,
8
+  IonCardTitle,
9
+  IonContent,
10
+  IonHeader,
11
+  IonPage,
12
+  IonTitle,
13
+  IonToolbar,
14
+} from "@ionic/react";
15
+import { RouteComponentProps } from "react-router";
16
+
17
+const ApoyoPage: React.FC = () => {
18
+  return (
19
+    <IonPage>
20
+      <IonHeader>
21
+        <IonToolbar>
22
+          <IonButtons slot="start">
23
+            <IonBackButton />
24
+          </IonButtons>
25
+          <IonTitle>Servicios</IonTitle>
26
+        </IonToolbar>
27
+      </IonHeader>
28
+      <IonContent fullscreen>
29
+        <IonCard>
30
+          <IonCardHeader>
31
+            <IonCardTitle>Seguridad y Apoyo</IonCardTitle>
32
+            <IonCardSubtitle></IonCardSubtitle>
33
+          </IonCardHeader>
34
+
35
+          <IonCardContent>
36
+            Los parientes custodios pueden permanecer en un área de espera
37
+            cómoda y segura en la cual se le brindarán servicios de  apoyo
38
+            durante su espera. 
39
+          </IonCardContent>
40
+        </IonCard>
41
+      </IonContent>
42
+    </IonPage>
43
+  );
44
+};
45
+
46
+export default ApoyoPage;

+ 10
- 5
src/pages/services/CasitaPage.tsx View File

@@ -27,16 +27,21 @@ const CasitaPage: React.FC = () => {
27 27
       </IonHeader>
28 28
       <IonContent fullscreen>
29 29
         <IonCard>
30
-          <img
31
-            alt="Silhouette of mountains"
32
-            src="https://ionicframework.com/docs/img/demos/card-media.png"
33
-          />
34 30
           <IonCardHeader>
35 31
             <IonCardTitle>Casita de Paz</IonCardTitle>
36 32
             <IonCardSubtitle></IonCardSubtitle>
37 33
           </IonCardHeader>
38 34
 
39
-          <IonCardContent>Romper ciclos negativos</IonCardContent>
35
+          <IonCardContent>
36
+            El proyecto Casita  de Paz es un programa de prevención e
37
+            intervención de maltrato a menores. Incluye un grupo de apoyo
38
+            ofrecido a víctimas de maltrato a menores  y sus familias, además
39
+            ofrecemos educación parental , disciplina positiva y co-parentalidad
40
+            asertiva .En el mismo se ofrecen talleres educativos y actividades
41
+            de crecimiento personal. Puede ser parte del mismo como participante
42
+            o como voluntario. Envíe un mensaje en la sección de contactos o
43
+            llame a nuestras oficinas para más información. 
44
+          </IonCardContent>
40 45
         </IonCard>
41 46
       </IonContent>
42 47
     </IonPage>

+ 48
- 0
src/pages/services/ConsejosPage.tsx View File

@@ -0,0 +1,48 @@
1
+import {
2
+  IonBackButton,
3
+  IonButtons,
4
+  IonCard,
5
+  IonCardContent,
6
+  IonCardHeader,
7
+  IonCardSubtitle,
8
+  IonCardTitle,
9
+  IonContent,
10
+  IonHeader,
11
+  IonPage,
12
+  IonTitle,
13
+  IonToolbar,
14
+} from "@ionic/react";
15
+import { RouteComponentProps } from "react-router";
16
+
17
+const ConsejosPage: React.FC = () => {
18
+  return (
19
+    <IonPage>
20
+      <IonHeader>
21
+        <IonToolbar>
22
+          <IonButtons slot="start">
23
+            <IonBackButton />
24
+          </IonButtons>
25
+          <IonTitle>Servicios</IonTitle>
26
+        </IonToolbar>
27
+      </IonHeader>
28
+      <IonContent fullscreen>
29
+        <IonCard>
30
+          <IonCardHeader>
31
+            <IonCardTitle>Consejería</IonCardTitle>
32
+            <IonCardSubtitle></IonCardSubtitle>
33
+          </IonCardHeader>
34
+
35
+          <IonCardContent>
36
+            En  Renacer Social  le brindamos una variedad de servicios de
37
+            consejería terapéutica  para proveerle apoyo a las familias en
38
+            tiempos difíciles . Buscamos promover su crecimiento y
39
+            fortalecimiento emocional de manera saludable en un ambiente
40
+            cómodo. 
41
+          </IonCardContent>
42
+        </IonCard>
43
+      </IonContent>
44
+    </IonPage>
45
+  );
46
+};
47
+
48
+export default ConsejosPage;

+ 49
- 0
src/pages/services/EducacionPage.tsx View File

@@ -0,0 +1,49 @@
1
+import {
2
+  IonBackButton,
3
+  IonButtons,
4
+  IonCard,
5
+  IonCardContent,
6
+  IonCardHeader,
7
+  IonCardSubtitle,
8
+  IonCardTitle,
9
+  IonContent,
10
+  IonHeader,
11
+  IonPage,
12
+  IonTitle,
13
+  IonToolbar,
14
+} from "@ionic/react";
15
+import { RouteComponentProps } from "react-router";
16
+
17
+const EducacionPage: React.FC = () => {
18
+  return (
19
+    <IonPage>
20
+      <IonHeader>
21
+        <IonToolbar>
22
+          <IonButtons slot="start">
23
+            <IonBackButton />
24
+          </IonButtons>
25
+          <IonTitle>Servicios</IonTitle>
26
+        </IonToolbar>
27
+      </IonHeader>
28
+      <IonContent fullscreen>
29
+        <IonCard>
30
+          <IonCardHeader>
31
+            <IonCardTitle>Crecemos</IonCardTitle>
32
+            <IonCardSubtitle></IonCardSubtitle>
33
+          </IonCardHeader>
34
+
35
+          <IonCardContent>
36
+            En  Renacer Social le brindamos el apoyo necesario a los padres y
37
+            las familias para que puedan realizar el mejor trabajo posible en la
38
+            crianza de sus hijos. Al aprender nueva información, destrezas y
39
+            habilidades, los padres pueden ayudar a sus hijos a alcanzar su
40
+            potencial en la vida y aportar positiva y asertivamente en la
41
+            familia y en la sociedad. 
42
+          </IonCardContent>
43
+        </IonCard>
44
+      </IonContent>
45
+    </IonPage>
46
+  );
47
+};
48
+
49
+export default EducacionPage;

+ 70
- 0
src/pages/services/InfoPage.tsx View File

@@ -0,0 +1,70 @@
1
+import {
2
+  IonBackButton,
3
+  IonButtons,
4
+  IonCard,
5
+  IonCardContent,
6
+  IonCardHeader,
7
+  IonCardSubtitle,
8
+  IonCardTitle,
9
+  IonContent,
10
+  IonHeader,
11
+  IonPage,
12
+  IonTitle,
13
+  IonToolbar,
14
+} from "@ionic/react";
15
+import { RouteComponentProps } from "react-router";
16
+
17
+const InfoPage: React.FC = () => {
18
+  return (
19
+    <IonPage>
20
+      <IonHeader>
21
+        <IonToolbar>
22
+          <IonButtons slot="start">
23
+            <IonBackButton />
24
+          </IonButtons>
25
+          <IonTitle>Servicios</IonTitle>
26
+        </IonToolbar>
27
+      </IonHeader>
28
+      <IonContent fullscreen>
29
+        <IonCard>
30
+          <IonCardHeader>
31
+            <IonCardTitle>Misiones dentro de Renacer Socail</IonCardTitle>
32
+          </IonCardHeader>
33
+
34
+          <IonCardSubtitle>Es Responsabiidad de Todos</IonCardSubtitle>
35
+
36
+          <IonCardContent>
37
+            Únase a nuestra campaña, denunciemos el maltrato de menores.
38
+            Nuestros niños y niñas son responsabilidad de Todos. 
39
+          </IonCardContent>
40
+
41
+          <IonCardSubtitle>Nuestro equipos</IonCardSubtitle>
42
+          <IonCardContent>
43
+            En Renacer Social  creemos que el tiempo de familia es  importante y
44
+            necesario. Por esta razón ofrecemos áreas para relaciones filiales
45
+            supervisadas en un ambiente familiar y seguro. Contamos con
46
+            trabajadores sociales forenses, terapistas , educadores y
47
+            profesionales en el área de psicología. . 
48
+          </IonCardContent>
49
+
50
+          <IonCardSubtitle>Nuestra Misión</IonCardSubtitle>
51
+          <IonCardContent>
52
+             Nuestra misión principal es ofrecer servicios de calidad a todos
53
+            los miembros de la familia en un entorno hogareño y seguro.
54
+            Ofrecemos un ambiente que promueve un estado emocional saludable
55
+            para la familia.
56
+          </IonCardContent>
57
+
58
+          <IonCardSubtitle>Nuestra Visión</IonCardSubtitle>
59
+          <IonCardContent>
60
+             Nuestra visión  es tener una sociedad emocionalmente estable al
61
+            apoyar a la niñez y sus familias en sus relaciones familiares.
62
+            Contribuir a una mejor sociedad es nuestro Norte. 
63
+          </IonCardContent>
64
+        </IonCard>
65
+      </IonContent>
66
+    </IonPage>
67
+  );
68
+};
69
+
70
+export default InfoPage;

+ 9
- 5
src/pages/services/LazosPage.tsx View File

@@ -27,16 +27,20 @@ const LazosPage: React.FC = () => {
27 27
       </IonHeader>
28 28
       <IonContent fullscreen>
29 29
         <IonCard>
30
-          <img
31
-            alt="Silhouette of mountains"
32
-            src="https://ionicframework.com/docs/img/demos/card-media.png"
33
-          />
34 30
           <IonCardHeader>
35 31
             <IonCardTitle>Proyecto de Lazos</IonCardTitle>
36 32
             <IonCardSubtitle></IonCardSubtitle>
37 33
           </IonCardHeader>
38 34
 
39
-          <IonCardContent>Maltrato de Parejas</IonCardContent>
35
+          <IonCardContent>
36
+            El proyecto Lazos es un programa de prevención e intervención de
37
+            violencia doméstica. Incluye un grupo de apoyo ofrecido a víctimas
38
+            de violencia doméstica y sus familias. En el mismo se ofrecen
39
+            talleres educativos y actividades de crecimiento personal. Puede ser
40
+            parte del mismo como participante o como voluntario. Envíe un
41
+            mensaje en la sección de contactos o llame a nuestras oficinas para
42
+            más información. 
43
+          </IonCardContent>
40 44
         </IonCard>
41 45
       </IonContent>
42 46
     </IonPage>

+ 3
- 5
src/pages/services/SupervisadasPage.tsx View File

@@ -27,17 +27,15 @@ const SupervisadasPage: React.FC = () => {
27 27
       </IonHeader>
28 28
       <IonContent fullscreen>
29 29
         <IonCard>
30
-          <img
31
-            alt="Silhouette of mountains"
32
-            src="https://ionicframework.com/docs/img/demos/card-media.png"
33
-          />
34 30
           <IonCardHeader>
35 31
             <IonCardTitle>Visitas Supervisadas</IonCardTitle>
36 32
             <IonCardSubtitle></IonCardSubtitle>
37 33
           </IonCardHeader>
38 34
 
39 35
           <IonCardContent>
40
-            Espacio tranquilo y seguro para visitas supervisadas
36
+            En Renacer Social, las Visitas Supervisadas se dan en un entorno
37
+            hogareño, emocionalmente saludable y seguro para todos los miembros
38
+            envueltos. 
41 39
           </IonCardContent>
42 40
         </IonCard>
43 41
       </IonContent>

src/pages/services/CrecemosPage.tsx → src/pages/services/TalleresPage.tsx View File

@@ -14,7 +14,7 @@ import {
14 14
 } from "@ionic/react";
15 15
 import { RouteComponentProps } from "react-router";
16 16
 
17
-const CrecemosPage: React.FC = () => {
17
+const TalleresPage: React.FC = () => {
18 18
   return (
19 19
     <IonPage>
20 20
       <IonHeader>
@@ -27,20 +27,19 @@ const CrecemosPage: React.FC = () => {
27 27
       </IonHeader>
28 28
       <IonContent fullscreen>
29 29
         <IonCard>
30
-          <img
31
-            alt="Silhouette of mountains"
32
-            src="https://ionicframework.com/docs/img/demos/card-media.png"
33
-          />
34 30
           <IonCardHeader>
35
-            <IonCardTitle>Crecemos</IonCardTitle>
31
+            <IonCardTitle>Talleres educativos </IonCardTitle>
36 32
             <IonCardSubtitle></IonCardSubtitle>
37 33
           </IonCardHeader>
38 34
 
39
-          <IonCardContent>Educacion Co-parental</IonCardContent>
35
+          <IonCardContent>
36
+            Se ofrecen talleres educativos a las familias y a otros
37
+            profesionales para fortalecer nuestra comunidad.
38
+          </IonCardContent>
40 39
         </IonCard>
41 40
       </IonContent>
42 41
     </IonPage>
43 42
   );
44 43
 };
45 44
 
46
-export default CrecemosPage;
45
+export default TalleresPage;

+ 49
- 0
src/pages/services/TerapeuticasPage.tsx View File

@@ -0,0 +1,49 @@
1
+import {
2
+  IonBackButton,
3
+  IonButtons,
4
+  IonCard,
5
+  IonCardContent,
6
+  IonCardHeader,
7
+  IonCardSubtitle,
8
+  IonCardTitle,
9
+  IonContent,
10
+  IonHeader,
11
+  IonPage,
12
+  IonTitle,
13
+  IonToolbar,
14
+} from "@ionic/react";
15
+import { RouteComponentProps } from "react-router";
16
+
17
+const TerapeuticasPage: React.FC = () => {
18
+  return (
19
+    <IonPage>
20
+      <IonHeader>
21
+        <IonToolbar>
22
+          <IonButtons slot="start">
23
+            <IonBackButton />
24
+          </IonButtons>
25
+          <IonTitle>Servicios</IonTitle>
26
+        </IonToolbar>
27
+      </IonHeader>
28
+      <IonContent fullscreen>
29
+        <IonCard>
30
+          <IonCardHeader>
31
+            <IonCardTitle>Servicios</IonCardTitle>
32
+            <IonCardSubtitle>
33
+              Servicios de Visitas Supervisadas Terapéuticas
34
+            </IonCardSubtitle>
35
+          </IonCardHeader>
36
+
37
+          <IonCardContent>
38
+            En  Renacer Social  le brindamos servicios  de visitas supervisadas
39
+            terapéuticas por trabajadores sociales con peritaje forense en un
40
+            ambiente ameno y seguro. Se ofrecen de manera presencial y de manera
41
+            virtual. 
42
+          </IonCardContent>
43
+        </IonCard>
44
+      </IonContent>
45
+    </IonPage>
46
+  );
47
+};
48
+
49
+export default TerapeuticasPage;