Browse Source

Crear el about y editar logos

eduardo.figueroa7 1 year ago
parent
commit
1712cae972
3 changed files with 3103 additions and 688 deletions
  1. 3077
    683
      package-lock.json
  2. 2
    2
      package.json
  3. 24
    3
      src/App.tsx

+ 3077
- 683
package-lock.json
File diff suppressed because it is too large
View File


+ 2
- 2
package.json View File

27
     "react-dom": "^18.2.0",
27
     "react-dom": "^18.2.0",
28
     "react-router": "^5.2.0",
28
     "react-router": "^5.2.0",
29
     "react-router-dom": "^5.2.0",
29
     "react-router-dom": "^5.2.0",
30
-    "react-scripts": "^5.0.0",
31
     "typescript": "^4.1.3",
30
     "typescript": "^4.1.3",
32
     "web-vitals": "^0.2.4",
31
     "web-vitals": "^0.2.4",
33
     "workbox-background-sync": "^5.1.4",
32
     "workbox-background-sync": "^5.1.4",
72
     "@capacitor/cli": "4.4.0",
71
     "@capacitor/cli": "4.4.0",
73
     "@ionic/lab": "3.2.15",
72
     "@ionic/lab": "3.2.15",
74
     "husky": "^8.0.0",
73
     "husky": "^8.0.0",
75
-    "pretty-quick": "^3.1.3"
74
+    "pretty-quick": "^3.1.3",
75
+    "react-scripts": "5.0.1"
76
   },
76
   },
77
   "description": "An Ionic project"
77
   "description": "An Ionic project"
78
 }
78
 }

+ 24
- 3
src/App.tsx View File

10
   setupIonicReact,
10
   setupIonicReact,
11
 } from "@ionic/react";
11
 } from "@ionic/react";
12
 import { IonReactRouter } from "@ionic/react-router";
12
 import { IonReactRouter } from "@ionic/react-router";
13
-import { ellipse, home } from "ionicons/icons";
13
+import {
14
+  ellipse,
15
+  informationCircleSharp,
16
+  bookSharp,
17
+  appsSharp,
18
+  home,
19
+} from "ionicons/icons";
14
 import Home from "./pages/Home";
20
 import Home from "./pages/Home";
15
 
21
 
16
 /* Core CSS required for Ionic components to work properly */
22
 /* Core CSS required for Ionic components to work properly */
34
 import AdviceListPage from "./pages/AdviceListPage";
40
 import AdviceListPage from "./pages/AdviceListPage";
35
 import LawListPage from "./pages/LawListPage";
41
 import LawListPage from "./pages/LawListPage";
36
 import ArticlePage from "./pages/ArticlePage";
42
 import ArticlePage from "./pages/ArticlePage";
43
+import AboutListPage from "./pages/AboutListPage";
37
 
44
 
38
 setupIonicReact();
45
 setupIonicReact();
39
 
46
 
45
           <Route exact path="/home">
52
           <Route exact path="/home">
46
             <Home />
53
             <Home />
47
           </Route>
54
           </Route>
55
+
48
           <Route path="/advice">
56
           <Route path="/advice">
49
             <AdviceListPage />
57
             <AdviceListPage />
50
           </Route>
58
           </Route>
59
+
51
           <Route path="/laws">
60
           <Route path="/laws">
52
             <LawListPage />
61
             <LawListPage />
53
           </Route>
62
           </Route>
63
+
64
+          <Route path="/about">
65
+            <AboutListPage />
66
+          </Route>
67
+
54
           <Route path="/article/:slug" component={ArticlePage} />
68
           <Route path="/article/:slug" component={ArticlePage} />
55
           <Route exact path="/">
69
           <Route exact path="/">
56
             <Redirect to="/home" />
70
             <Redirect to="/home" />
57
           </Route>
71
           </Route>
58
         </IonRouterOutlet>
72
         </IonRouterOutlet>
73
+
59
         <IonTabBar slot="bottom">
74
         <IonTabBar slot="bottom">
60
           <IonTabButton tab="home" href="/home">
75
           <IonTabButton tab="home" href="/home">
61
             <IonIcon icon={home} />
76
             <IonIcon icon={home} />
62
             <IonLabel>Home</IonLabel>
77
             <IonLabel>Home</IonLabel>
63
           </IonTabButton>
78
           </IonTabButton>
79
+
64
           <IonTabButton tab="advice" href="/advice">
80
           <IonTabButton tab="advice" href="/advice">
65
-            <IonIcon icon={ellipse} />
81
+            <IonIcon icon={appsSharp} />
66
             <IonLabel>Advice</IonLabel>
82
             <IonLabel>Advice</IonLabel>
67
           </IonTabButton>
83
           </IonTabButton>
84
+
68
           <IonTabButton tab="laws" href="/laws">
85
           <IonTabButton tab="laws" href="/laws">
69
-            <IonIcon icon={ellipse} />
86
+            <IonIcon icon={bookSharp} />
70
             <IonLabel>Laws</IonLabel>
87
             <IonLabel>Laws</IonLabel>
71
           </IonTabButton>
88
           </IonTabButton>
89
+          <IonTabButton tab="about" href="/about">
90
+            <IonIcon icon={informationCircleSharp} />
91
+            <IonLabel>About</IonLabel>
92
+          </IonTabButton>
72
         </IonTabBar>
93
         </IonTabBar>
73
       </IonTabs>
94
       </IonTabs>
74
     </IonReactRouter>
95
     </IonReactRouter>