Mejorar etiquetas de los botones

master
Araozu 2021-03-03 08:27:21 -05:00
parent 0a781e38d3
commit 7aabe3111d
6 changed files with 21 additions and 21 deletions

0
LICENSE Normal file
View File

View File

@ -58,34 +58,34 @@ function CambiadorImg() {
<i <i
className={"ph-arrow-left " + css(e.boton, e.botonLeft, estilosGlobales.contenedorCursorSoft)} className={"ph-arrow-left " + css(e.boton, e.botonLeft, estilosGlobales.contenedorCursorSoft)}
onClick={retrocederWallpaper} onClick={retrocederWallpaper}
title={"Cambiar imagen de fondo"}
/> />
Img. {numWallpaper() + 1} Img. {numWallpaper() + 1}
<i <i
className={"ph-arrow-right " + css(e.boton, e.botonRight, estilosGlobales.contenedorCursorSoft)} className={"ph-arrow-right " + css(e.boton, e.botonRight, estilosGlobales.contenedorCursorSoft)}
onClick={avanzarWallpaper} onClick={avanzarWallpaper}
title={"Cambiar imagen de fondo"}
/> />
</span> </span>
</div>; </div>;
} }
export function BarraSuperior() {
const estilos = StyleSheet.create({ const estilos = StyleSheet.create({
tituloPrincipal: { tituloPrincipal: {
fontWeight: "bold", fontWeight: "bold"
fontFamily: "'SF Pro Display', sans-serif"
} }
}); });
export function BarraSuperior() {
return <header> return <header>
<a href="/" className={css( <span className={css(
estilosGlobales.contenedor, estilosGlobales.contenedor,
estilosGlobales.inlineBlock, estilosGlobales.inlineBlock,
estilosGlobales.contenedorCursor,
estilos.tituloPrincipal estilos.tituloPrincipal
)}> )}>
Horarios Unsa Horarios Unsa
</a> </span>
<a href="https://github.com" target="_blank" className={css( <a href="https://github.com" target="_blank" title={"Ver codigo fuente en GitHub"} className={css(
estilosGlobales.contenedor, estilosGlobales.contenedor,
estilosGlobales.inlineBlock, estilosGlobales.inlineBlock,
estilosGlobales.contenedorCursor estilosGlobales.contenedorCursor

View File

@ -17,7 +17,6 @@ const ElemCargando = () =>
Recuperando horarios... Recuperando horarios...
</div> </div>
export function ContenedorHorarios() {
const e = StyleSheet.create({ const e = StyleSheet.create({
contenedor: { contenedor: {
display: "grid", display: "grid",
@ -25,6 +24,7 @@ export function ContenedorHorarios() {
} }
}); });
export function ContenedorHorarios() {
const [datosCargados, setDatosCargados] = createSignal(false); const [datosCargados, setDatosCargados] = createSignal(false);
const [datos, setDatos] = createSignal<DatosHorario | null>(null); const [datos, setDatos] = createSignal<DatosHorario | null>(null);

View File

@ -14,7 +14,7 @@ export function Cursos(props: { dataAnio: AnioData }) {
return <> return <>
<For each={Object.entries(props.dataAnio)}> <For each={Object.entries(props.dataAnio)}>
{([_, datosCurso]) => { {([_, datosCurso]) => {
return <span className={css( return <span title={"Agregar " + datosCurso.abreviado + " a mi horario"} className={css(
e.contenedorCurso, e.contenedorCurso,
estilosGlobales.contenedor, estilosGlobales.contenedor,
estilosGlobales.contenedorCursor, estilosGlobales.contenedorCursor,

View File

@ -22,7 +22,7 @@ export function Horarios(props: { data: DatosHorario }) {
); );
}); });
return <div className={clases()} onClick={() => setAnioActual(nombre)}> return <div className={clases()} title={"Cambiar a " + nombre} onClick={() => setAnioActual(nombre)}>
{nombre} {nombre}
</div> </div>
}} }}

View File

@ -37,7 +37,7 @@ export const horasDescanso = [
"17:30 - 17:40" "17:30 - 17:40"
]; ];
const numImgGuardado = parseInt(localStorage.getItem("num-img") ?? "4"); const numImgGuardado = parseInt(localStorage.getItem("num-img") ?? "3");
export const [modoColor, setModoColor] = createSignal(ModoColor.Oscuro); export const [modoColor, setModoColor] = createSignal(ModoColor.Oscuro);
export const [numWallpaper, setNumWallpaper] = createSignal(numImgGuardado); export const [numWallpaper, setNumWallpaper] = createSignal(numImgGuardado);