From 02a12a687ad1d6f004dd8f50212dd053e5993e79 Mon Sep 17 00:00:00 2001 From: Araozu Date: Mon, 1 Mar 2021 16:38:39 -0500 Subject: [PATCH] Initial commit --- .gitignore | 0 README.md | 0 package.json | 0 pnpm-lock.yaml | 0 public/css/global.css | 0 public/css/phosphor.min.css | 0 .../2018_2_fps_ingenieriadesistemas.yaml | 0 .../2019_2_fps_ingenieriadesistemas.yaml | 0 .../2020_1_fps_ingenieriadesistemas.yaml | 0 .../2020_2_fps_ingenieriadesistemas.yaml | 0 public/img/wall0.webp | Bin public/img/wall1.webp | Bin public/img/wall2.webp | Bin public/img/wall3.webp | Bin public/img/wall4.webp | Bin public/index.html | 0 public/manifest.json | 0 src/App.tsx | 2 +- src/BarraSuperior.tsx | 96 +++++++++--------- .../{index.tsx => ContenedorHorarios.tsx} | 0 src/ContenedorHorarios/Cursos.tsx | 30 ++++++ src/ContenedorHorarios/Horarios.tsx | 9 +- src/ContenedorHorarios/MiHorario.tsx | 0 src/ContenedorHorarios/Tabla.tsx | 0 src/ContenedorHorarios/Tabla/CeldaFila.tsx | 0 src/ContenedorHorarios/Tabla/FilaTabla.tsx | 0 src/Estilos.ts | 0 src/Store.ts | 0 src/Wallpaper.tsx | 0 src/index.tsx | 0 src/styles/global.css | 0 src/types/DatosHorario.ts | 0 tsconfig.json | 0 33 files changed, 85 insertions(+), 52 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 README.md mode change 100644 => 100755 package.json mode change 100644 => 100755 pnpm-lock.yaml mode change 100644 => 100755 public/css/global.css mode change 100644 => 100755 public/css/phosphor.min.css mode change 100644 => 100755 public/horarios/2018_2_fps_ingenieriadesistemas.yaml mode change 100644 => 100755 public/horarios/2019_2_fps_ingenieriadesistemas.yaml mode change 100644 => 100755 public/horarios/2020_1_fps_ingenieriadesistemas.yaml mode change 100644 => 100755 public/horarios/2020_2_fps_ingenieriadesistemas.yaml mode change 100644 => 100755 public/img/wall0.webp mode change 100644 => 100755 public/img/wall1.webp mode change 100644 => 100755 public/img/wall2.webp mode change 100644 => 100755 public/img/wall3.webp mode change 100644 => 100755 public/img/wall4.webp mode change 100644 => 100755 public/index.html mode change 100644 => 100755 public/manifest.json mode change 100644 => 100755 src/App.tsx mode change 100644 => 100755 src/BarraSuperior.tsx rename src/ContenedorHorarios/{index.tsx => ContenedorHorarios.tsx} (100%) mode change 100644 => 100755 create mode 100755 src/ContenedorHorarios/Cursos.tsx mode change 100644 => 100755 src/ContenedorHorarios/Horarios.tsx mode change 100644 => 100755 src/ContenedorHorarios/MiHorario.tsx mode change 100644 => 100755 src/ContenedorHorarios/Tabla.tsx mode change 100644 => 100755 src/ContenedorHorarios/Tabla/CeldaFila.tsx mode change 100644 => 100755 src/ContenedorHorarios/Tabla/FilaTabla.tsx mode change 100644 => 100755 src/Estilos.ts mode change 100644 => 100755 src/Store.ts mode change 100644 => 100755 src/Wallpaper.tsx mode change 100644 => 100755 src/index.tsx mode change 100644 => 100755 src/styles/global.css mode change 100644 => 100755 src/types/DatosHorario.ts mode change 100644 => 100755 tsconfig.json diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml old mode 100644 new mode 100755 diff --git a/public/css/global.css b/public/css/global.css old mode 100644 new mode 100755 diff --git a/public/css/phosphor.min.css b/public/css/phosphor.min.css old mode 100644 new mode 100755 diff --git a/public/horarios/2018_2_fps_ingenieriadesistemas.yaml b/public/horarios/2018_2_fps_ingenieriadesistemas.yaml old mode 100644 new mode 100755 diff --git a/public/horarios/2019_2_fps_ingenieriadesistemas.yaml b/public/horarios/2019_2_fps_ingenieriadesistemas.yaml old mode 100644 new mode 100755 diff --git a/public/horarios/2020_1_fps_ingenieriadesistemas.yaml b/public/horarios/2020_1_fps_ingenieriadesistemas.yaml old mode 100644 new mode 100755 diff --git a/public/horarios/2020_2_fps_ingenieriadesistemas.yaml b/public/horarios/2020_2_fps_ingenieriadesistemas.yaml old mode 100644 new mode 100755 diff --git a/public/img/wall0.webp b/public/img/wall0.webp old mode 100644 new mode 100755 diff --git a/public/img/wall1.webp b/public/img/wall1.webp old mode 100644 new mode 100755 diff --git a/public/img/wall2.webp b/public/img/wall2.webp old mode 100644 new mode 100755 diff --git a/public/img/wall3.webp b/public/img/wall3.webp old mode 100644 new mode 100755 diff --git a/public/img/wall4.webp b/public/img/wall4.webp old mode 100644 new mode 100755 diff --git a/public/index.html b/public/index.html old mode 100644 new mode 100755 diff --git a/public/manifest.json b/public/manifest.json old mode 100644 new mode 100755 diff --git a/src/App.tsx b/src/App.tsx old mode 100644 new mode 100755 index 0c04cce..e4a70c5 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ import { BarraSuperior } from "./BarraSuperior"; -import { ContenedorHorarios } from "./ContenedorHorarios/"; +import { ContenedorHorarios } from "./ContenedorHorarios/ContenedorHorarios"; import { Wallpaper } from "./Wallpaper"; import { Show } from "solid-js"; import { css } from "aphrodite"; diff --git a/src/BarraSuperior.tsx b/src/BarraSuperior.tsx old mode 100644 new mode 100755 index 11322ef..b9b0f56 --- a/src/BarraSuperior.tsx +++ b/src/BarraSuperior.tsx @@ -4,55 +4,55 @@ import { numWallpaper, setNumWallpaper } from "./Store"; const totalWallpapers = 4; +const e = StyleSheet.create({ + contCambiador: { + userSelect: "none" + }, + boton: { + cursor: "pointer", + textDecoration: "underline", + "::before": { + fontSize: "1rem", + transform: "translateY(0.2rem)" + } + }, + botonDesactivado: { + cursor: "not-allowed", + textDecoration: "none" + }, + botonLeft: { + paddingRight: "0.5rem", + marginRight: "0.25rem" + }, + botonRight: { + paddingLeft: "0.5rem", + marginRight: "0.25rem" + } +}); + +const retrocederWallpaper = () => { + const num = numWallpaper(); + if (num > 0) { + setNumWallpaper(num - 1); + localStorage.setItem("num-img", (num - 1).toString()); + } else { + setNumWallpaper(totalWallpapers); + localStorage.setItem("num-img", (totalWallpapers).toString()); + } +}; + +const avanzarWallpaper = () => { + const num = numWallpaper(); + if (num < totalWallpapers) { + setNumWallpaper(num + 1); + localStorage.setItem("num-img", (num + 1).toString()); + } else { + setNumWallpaper(0); + localStorage.setItem("num-img", (0).toString()); + } +}; + function CambiadorImg() { - const e = StyleSheet.create({ - contCambiador: { - userSelect: "none" - }, - boton: { - cursor: "pointer", - textDecoration: "underline", - "::before": { - fontSize: "1rem", - transform: "translateY(0.2rem)" - } - }, - botonDesactivado: { - cursor: "not-allowed", - textDecoration: "none" - }, - botonLeft: { - paddingRight: "0.5rem", - marginRight: "0.25rem" - }, - botonRight: { - paddingLeft: "0.5rem", - marginRight: "0.25rem" - } - }); - - const retrocederWallpaper = () => { - const num = numWallpaper(); - if (num > 0) { - setNumWallpaper(num - 1); - localStorage.setItem("num-img", (num - 1).toString()); - } else { - setNumWallpaper(totalWallpapers); - localStorage.setItem("num-img", (totalWallpapers).toString()); - } - }; - - const avanzarWallpaper = () => { - const num = numWallpaper(); - if (num < totalWallpapers) { - setNumWallpaper(num + 1); - localStorage.setItem("num-img", (num + 1).toString()); - } else { - setNumWallpaper(0); - localStorage.setItem("num-img", (0).toString()); - } - }; - return
+ + {([_, datosCurso]) => { + return + + {datosCurso.abreviado} - {datosCurso.nombre} + + }} + + ; +} diff --git a/src/ContenedorHorarios/Horarios.tsx b/src/ContenedorHorarios/Horarios.tsx old mode 100644 new mode 100755 index 80de21b..41d78fb --- a/src/ContenedorHorarios/Horarios.tsx +++ b/src/ContenedorHorarios/Horarios.tsx @@ -1,9 +1,9 @@ -import { AnioData, DatosHorario } from "../types/DatosHorario"; +import { DatosHorario } from "../types/DatosHorario"; import { For, createSignal, createMemo } from "solid-js"; -import { StyleSheet, css } from "aphrodite"; +import { css } from "aphrodite"; import { estilosGlobales } from "../Estilos"; import { Tabla } from "./Tabla"; -import { horas } from "../Store"; +import { Cursos } from "./Cursos"; export function Horarios(props: { data: DatosHorario }) { @@ -38,5 +38,8 @@ export function Horarios(props: { data: DatosHorario }) {
+
+ +
; } diff --git a/src/ContenedorHorarios/MiHorario.tsx b/src/ContenedorHorarios/MiHorario.tsx old mode 100644 new mode 100755 diff --git a/src/ContenedorHorarios/Tabla.tsx b/src/ContenedorHorarios/Tabla.tsx old mode 100644 new mode 100755 diff --git a/src/ContenedorHorarios/Tabla/CeldaFila.tsx b/src/ContenedorHorarios/Tabla/CeldaFila.tsx old mode 100644 new mode 100755 diff --git a/src/ContenedorHorarios/Tabla/FilaTabla.tsx b/src/ContenedorHorarios/Tabla/FilaTabla.tsx old mode 100644 new mode 100755 diff --git a/src/Estilos.ts b/src/Estilos.ts old mode 100644 new mode 100755 diff --git a/src/Store.ts b/src/Store.ts old mode 100644 new mode 100755 diff --git a/src/Wallpaper.tsx b/src/Wallpaper.tsx old mode 100644 new mode 100755 diff --git a/src/index.tsx b/src/index.tsx old mode 100644 new mode 100755 diff --git a/src/styles/global.css b/src/styles/global.css old mode 100644 new mode 100755 diff --git a/src/types/DatosHorario.ts b/src/types/DatosHorario.ts old mode 100644 new mode 100755 diff --git a/tsconfig.json b/tsconfig.json old mode 100644 new mode 100755