diff --git a/src/app.riot b/src/app.riot index a87a5c0..aa55dba 100644 --- a/src/app.riot +++ b/src/app.riot @@ -1,84 +1,64 @@ -
- -
-
- -
-
-
-
- -
- -
-
-
-
+
+ +
+
+ +
+
- + export default { + components: { + Router, + Route, + NotFound, + Home: lazy(Loader, () => import( + './pages/home.riot' + )), + }, + state: { + pages, + showNotFound: false, + activePage: null + }, + onBeforeMount({ isServer }) { + this.anyRouteStream = route('(.*)') + this.anyRouteStream.on.value(this.onAnyRoute) + }, + onAnyRoute(path) {// show the not found page if none of the page paths are matched + const activePage = pages.find(p => match(path.pathname, toRegexp(p.path))) - + diff --git a/src/components/global/etablanalytics/etablanalytics.riot b/src/components/global/etablanalytics/etablanalytics.riot new file mode 100644 index 0000000..7575321 --- /dev/null +++ b/src/components/global/etablanalytics/etablanalytics.riot @@ -0,0 +1,3 @@ + +

eta

+
\ No newline at end of file diff --git a/src/components/global/generalytics/generalytics.riot b/src/components/global/generalytics/generalytics.riot new file mode 100644 index 0000000..dec8db3 --- /dev/null +++ b/src/components/global/generalytics/generalytics.riot @@ -0,0 +1,3 @@ + +

gen

+
\ No newline at end of file diff --git a/src/index.html b/src/index.html index 5f7b96f..8a9b02f 100644 --- a/src/index.html +++ b/src/index.html @@ -1,12 +1,23 @@ - - Parcoursup Analytic's - - - - - -
- + + Parcoursup Analytic's + + + + + + + + + +
+ diff --git a/src/pages/home.riot b/src/pages/home.riot index 0ebbd61..07ad83d 100644 --- a/src/pages/home.riot +++ b/src/pages/home.riot @@ -1,3 +1,42 @@ - + + +
+ + +
+ + +
+