Browse Source

Crear el about y editar logos

eduardo.figueroa7 2 years 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,7 +27,6 @@
27 27
     "react-dom": "^18.2.0",
28 28
     "react-router": "^5.2.0",
29 29
     "react-router-dom": "^5.2.0",
30
-    "react-scripts": "^5.0.0",
31 30
     "typescript": "^4.1.3",
32 31
     "web-vitals": "^0.2.4",
33 32
     "workbox-background-sync": "^5.1.4",
@@ -72,7 +71,8 @@
72 71
     "@capacitor/cli": "4.4.0",
73 72
     "@ionic/lab": "3.2.15",
74 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 77
   "description": "An Ionic project"
78 78
 }

+ 24
- 3
src/App.tsx View File

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