From fc48d9cd55117960c29e5bfaa981f3ef20bd6f2a Mon Sep 17 00:00:00 2001 From: Araozu Date: Fri, 15 Jan 2021 08:34:24 -0500 Subject: [PATCH] Agregar estilos para diferenciar links de botones --- src/BarraSuperior.tsx | 4 +-- src/ContenedorHorarios/Horarios.tsx | 7 ++++- src/ContenedorHorarios/MiHorario.tsx | 42 ++++++++++++++++++++++++---- src/ContenedorHorarios/Tabla.tsx | 3 +- src/Estilos.ts | 10 +++++-- src/Store.ts | 6 +--- 6 files changed, 55 insertions(+), 17 deletions(-) diff --git a/src/BarraSuperior.tsx b/src/BarraSuperior.tsx index 80c4b65..29bec04 100644 --- a/src/BarraSuperior.tsx +++ b/src/BarraSuperior.tsx @@ -56,12 +56,12 @@ function CambiadorImg() { return
Img. {numWallpaper() + 1} diff --git a/src/ContenedorHorarios/Horarios.tsx b/src/ContenedorHorarios/Horarios.tsx index 5003be8..d285013 100644 --- a/src/ContenedorHorarios/Horarios.tsx +++ b/src/ContenedorHorarios/Horarios.tsx @@ -7,7 +7,12 @@ export function Horarios(props: { data: DatosHorario }) { const elAnios = {([nombre]) => -
+
{nombre}
} diff --git a/src/ContenedorHorarios/MiHorario.tsx b/src/ContenedorHorarios/MiHorario.tsx index d30286b..db7fe1e 100644 --- a/src/ContenedorHorarios/MiHorario.tsx +++ b/src/ContenedorHorarios/MiHorario.tsx @@ -1,19 +1,49 @@ import { estilosGlobales } from "../Estilos"; import { StyleSheet, css } from "aphrodite"; import { Tabla } from "./Tabla"; +import { mostrarDescansos, setMostrarDescansos } from "../Store"; export function MiHorario() { const e = StyleSheet.create({ - horario: {} + horario: {}, + boton: { + textDecoration: "none", + // paddingRight: "0.5rem", + "::before": { + fontSize: "1rem", + // transform: "translateY(0.2rem)", + textDecoration: "none" + } + } }); + const claseBotonMostrarDescansos = () => + mostrarDescansos() + ? "ph-check " + css(e.boton) + : "ph-circle " + css(e.boton); + return
-
- Mi horario +
+
+ Mi horario +
+
setMostrarDescansos(!mostrarDescansos())} + > + +  Mostrar descansos +
+
{ - const num = numWallpaper(); - localStorage.setItem("num-img", num.toString()); - console.log("Establecer item!"); -}); +export const [mostrarDescansos, setMostrarDescansos] = createSignal(true);