Browse Source

editar paginas de servicios

eduardo.figueroa7 1 year ago
parent
commit
775ec9a0bb

+ 22
- 1
src/App.tsx View File

@@ -16,6 +16,7 @@ import {
16 16
   bookSharp,
17 17
   appsSharp,
18 18
   home,
19
+  peopleCircleSharp,
19 20
 } from "ionicons/icons";
20 21
 import Home from "./pages/Home";
21 22
 
@@ -41,6 +42,10 @@ import AdviceListPage from "./pages/AdviceListPage";
41 42
 import LawListPage from "./pages/LawListPage";
42 43
 import ArticlePage from "./pages/ArticlePage";
43 44
 import AboutListPage from "./pages/AboutListPage";
45
+import CasitaPage from "./pages/services/CasitaPage";
46
+import CrecemosPage from "./pages/services/CrecemosPage";
47
+import LazosPage from "./pages/services/LazosPage";
48
+import SupervisadasPage from "./pages/services/SupervisadasPage";
44 49
 
45 50
 setupIonicReact();
46 51
 
@@ -65,6 +70,22 @@ const App: React.FC = () => (
65 70
             <AboutListPage />
66 71
           </Route>
67 72
 
73
+          <Route path="/services/casita">
74
+            <CasitaPage />
75
+          </Route>
76
+
77
+          <Route path="/services/supervisadas">
78
+            <SupervisadasPage />
79
+          </Route>
80
+
81
+          <Route path="/services/crecemos">
82
+            <CrecemosPage />
83
+          </Route>
84
+
85
+          <Route path="/services/lazos">
86
+            <LazosPage />
87
+          </Route>
88
+
68 89
           <Route path="/article/:slug" component={ArticlePage} />
69 90
           <Route exact path="/">
70 91
             <Redirect to="/home" />
@@ -78,7 +99,7 @@ const App: React.FC = () => (
78 99
           </IonTabButton>
79 100
 
80 101
           <IonTabButton tab="advice" href="/advice">
81
-            <IonIcon icon={appsSharp} />
102
+            <IonIcon icon={peopleCircleSharp} />
82 103
             <IonLabel>Advice</IonLabel>
83 104
           </IonTabButton>
84 105
 

+ 32
- 9
src/pages/AboutListPage.tsx View File

@@ -1,6 +1,8 @@
1 1
 import {
2 2
   IonContent,
3 3
   IonHeader,
4
+  IonItem,
5
+  IonList,
4 6
   IonPage,
5 7
   IonTitle,
6 8
   IonToolbar,
@@ -21,16 +23,37 @@ const AboutListPage: React.FC = () => {
21 23
             <IonTitle size="large">About</IonTitle>
22 24
           </IonToolbar>
23 25
         </IonHeader>
24
-        <ListComponent
25
-          items={[
26
-            "Proyecto Lazos",
27
-            "Casita de Paz",
28
-            "Crecemos",
29
-            "Talleres Educativos",
30
-            "Visitas Supervisadas",
31
-          ]}
32
-        />
26
+        <div className="ion-padding">
27
+          <h5>Bienvenidos</h5>
28
+          <p>
29
+            Aqui tenemos una lista de las cosas que Renacer Social ofrece a la
30
+            sociedad.
31
+          </p>
32
+        </div>
33 33
       </IonContent>
34
+      <IonList>
35
+        <IonItem routerLink={`/services/casita`}>
36
+          <p className="ListItemText">Casita de Paz</p>
37
+        </IonItem>
38
+      </IonList>
39
+
40
+      <IonList>
41
+        <IonItem routerLink={`/services/Crecemos`}>
42
+          <p className="ListItemText">Crecemos</p>
43
+        </IonItem>
44
+      </IonList>
45
+
46
+      <IonList>
47
+        <IonItem routerLink={`/services/Lazos`}>
48
+          <p className="ListItemText">Proyecto Lazos</p>
49
+        </IonItem>
50
+      </IonList>
51
+
52
+      <IonList>
53
+        <IonItem routerLink={`/services/Supervisadas`}>
54
+          <p className="ListItemText">Visitas Supervisadas</p>
55
+        </IonItem>
56
+      </IonList>
34 57
     </IonPage>
35 58
   );
36 59
 };

+ 46
- 0
src/pages/services/CasitaPage.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 CasitaPage: 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
+          <img
31
+            alt="Silhouette of mountains"
32
+            src="https://ionicframework.com/docs/img/demos/card-media.png"
33
+          />
34
+          <IonCardHeader>
35
+            <IonCardTitle>Casita de Paz</IonCardTitle>
36
+            <IonCardSubtitle></IonCardSubtitle>
37
+          </IonCardHeader>
38
+
39
+          <IonCardContent>Romper ciclos negativos</IonCardContent>
40
+        </IonCard>
41
+      </IonContent>
42
+    </IonPage>
43
+  );
44
+};
45
+
46
+export default CasitaPage;

+ 46
- 0
src/pages/services/CrecemosPage.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 CrecemosPage: 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
+          <img
31
+            alt="Silhouette of mountains"
32
+            src="https://ionicframework.com/docs/img/demos/card-media.png"
33
+          />
34
+          <IonCardHeader>
35
+            <IonCardTitle>Crecemos</IonCardTitle>
36
+            <IonCardSubtitle></IonCardSubtitle>
37
+          </IonCardHeader>
38
+
39
+          <IonCardContent>Educacion Co-parental</IonCardContent>
40
+        </IonCard>
41
+      </IonContent>
42
+    </IonPage>
43
+  );
44
+};
45
+
46
+export default CrecemosPage;

+ 46
- 0
src/pages/services/LazosPage.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 LazosPage: 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
+          <img
31
+            alt="Silhouette of mountains"
32
+            src="https://ionicframework.com/docs/img/demos/card-media.png"
33
+          />
34
+          <IonCardHeader>
35
+            <IonCardTitle>Proyecto de Lazos</IonCardTitle>
36
+            <IonCardSubtitle></IonCardSubtitle>
37
+          </IonCardHeader>
38
+
39
+          <IonCardContent>Maltrato de Parejas</IonCardContent>
40
+        </IonCard>
41
+      </IonContent>
42
+    </IonPage>
43
+  );
44
+};
45
+
46
+export default LazosPage;

+ 48
- 0
src/pages/services/SupervisadasPage.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 SupervisadasPage: 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
+          <img
31
+            alt="Silhouette of mountains"
32
+            src="https://ionicframework.com/docs/img/demos/card-media.png"
33
+          />
34
+          <IonCardHeader>
35
+            <IonCardTitle>Visitas Supervisadas</IonCardTitle>
36
+            <IonCardSubtitle></IonCardSubtitle>
37
+          </IonCardHeader>
38
+
39
+          <IonCardContent>
40
+            Espacio tranquilo y seguro para visitas supervisadas
41
+          </IonCardContent>
42
+        </IonCard>
43
+      </IonContent>
44
+    </IonPage>
45
+  );
46
+};
47
+
48
+export default SupervisadasPage;