diff --git a/backend/.gitignore b/backend/.gitignore index c5dd462..e4986af 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -1,2 +1,3 @@ target .env +aulavirtual diff --git a/backend/src/main.rs b/backend/src/main.rs index d924bc1..570249d 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -10,6 +10,7 @@ extern crate rocket; mod controller; mod cors; mod model; +mod online_classroom; static DB: OnceCell> = OnceCell::new(); diff --git a/backend/src/online_classroom/mod.rs b/backend/src/online_classroom/mod.rs new file mode 100644 index 0000000..61bc0dd --- /dev/null +++ b/backend/src/online_classroom/mod.rs @@ -0,0 +1,6 @@ + +pub fn get_cookie() { + +} + + diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 84e8728..c6ca00d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -2,6 +2,7 @@ import { Route, Routes } from "@solidjs/router"; import type { Component } from "solid-js"; import { Certs } from "./certs"; import { NavRail } from "./components/NavRail"; +import { OnlineClassroom } from "./OnlineClassroom"; const App: Component = () => (
@@ -9,7 +10,7 @@ const App: Component = () => (

En construccion

} /> -

En construccion

} /> +

En construccion

} />
diff --git a/frontend/src/OnlineClassroom/index.tsx b/frontend/src/OnlineClassroom/index.tsx new file mode 100644 index 0000000..6248e4b --- /dev/null +++ b/frontend/src/OnlineClassroom/index.tsx @@ -0,0 +1,26 @@ +import { Show, createSignal } from "solid-js"; +import { Search } from "../certs/Search"; +import { Person } from "../types/Person"; + +export function OnlineClassroom() { + const [person, setPerson] = createSignal(null); + + return ( +
+ + + + +
+ ); +} + +function ClassroomUsers(props: {person: Person}) { + return ( +
+

+ Usuarios para {props.person.person_names}: +

+
+ ); +} diff --git a/frontend/src/certs/Registers/index.tsx b/frontend/src/certs/Registers/index.tsx index f6ba470..8b7cc03 100644 --- a/frontend/src/certs/Registers/index.tsx +++ b/frontend/src/certs/Registers/index.tsx @@ -179,22 +179,31 @@ function RegisterEl(props: {register: Register, person: Person, onClick: () => v return certGenerator[courseN] !== undefined; }; + const createdTodayClasses = () => { + // current dat in YYYY-MM-DD format + const today = new Date().toISOString() + .split("T")[0]; + const createdToday = props.register.register_creation_date === today; + + return createdToday ? "bg-c-surface-variant" : ""; + }; + return ( -
-
+
+

{courseName()}

-

+

{customLabel()}  

-

+

{displayDate()}