Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💚👵🏼 Viejitos en cueritos - ajustes en la cabecera de Lucho #82

Merged
merged 3 commits into from
Mar 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 46 additions & 7 deletions src/componentes/Cabezote.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ const paginaActual = pathname.replace(urlBase, '').replaceAll('/', '');

<div id="encabezado">
<span class="cajaLogo"></span>
<h1>DEPARTAMENTO DE ANTROPOLOGÍA | 60 AÑOS HACIENDO CAMINOS</h1>

<h1>HACIENDO CAMINOS | DEPARTAMENTO DE ANTROPOLOGÍA</h1>

<span class="cajaGusanos"></span>
<ul>
<ul class="botonesVista">
<li class="botonVista"><a href=`${urlBase}/` class={paginaActual === '' ? 'actual' : ''}>Proyectos</a></li>
<li class="botonVista">
<a href=`${urlBase}/egresados` class={paginaActual === 'egresados' ? 'actual' : ''}>Egresados</a>
Expand Down Expand Up @@ -73,6 +74,7 @@ const paginaActual = pathname.replace(urlBase, '').replaceAll('/', '');
width: 100%;
height: var(--altoMenu);
color: var(--textoClaro);
border-color: var(--blanco);
z-index: 9;
text-transform: uppercase;
display: flex;
Expand All @@ -83,6 +85,9 @@ const paginaActual = pathname.replace(urlBase, '').replaceAll('/', '');
a:link {
color: var(--textoClaro);
transition: all 0.3s ease-in-out;
padding: 5px 5px;
border: 1px solid;
border-radius: 3px;

&:hover,
&.actual {
Expand Down Expand Up @@ -138,6 +143,14 @@ const paginaActual = pathname.replace(urlBase, '').replaceAll('/', '');
}
}

// Contendedor de botones de vista

.botonesVista {
font-size: 0.7em;
display: flex;
gap: 10px;
}

// Botón para cambiar de vista (proyectos / egresados)
.botonVista {
cursor: pointer;
Expand All @@ -146,6 +159,9 @@ const paginaActual = pathname.replace(urlBase, '').replaceAll('/', '');
&:hover {
opacity: 0.6;
}

color: var(--textoClaro);
transition: all 0.3s ease-in-out;
}

#menuListas {
Expand Down Expand Up @@ -220,7 +236,7 @@ const paginaActual = pathname.replace(urlBase, '').replaceAll('/', '');
#menu {
#encabezado {
.cajaLogo {
width: 4vw;
width: 6vw;
}

.cajaGusanos {
Expand All @@ -236,27 +252,50 @@ const paginaActual = pathname.replace(urlBase, '').replaceAll('/', '');
}
h1 {
display: block;
width: 40vw;
font-size: 1em;
font-size: 0.8em;
padding-left: 0vw;
}
}

#botonCreditos {
margin-left: 5px;
}

.botonesVista {
font-size: 0.9em;
gap: 20px;
}
}

@media screen and (min-width: $corte3) {
#menu {
#encabezado {
.cajaLogo {
width: 4vw;
}
h1 {
display: contents;
// width: 13vw;
font-size: 1.2em;
width: 30vw;
font-size: 0.8em;
padding-left: 0vw;
}
}
.botonesVista {
gap: 10px;
}
}
}
@media screen and (min-width: $corte4) {
#menu {
#encabezado {
h1 {
font-size: 1.2em;
width: 40vw;
}
}
.botonesVista {
gap: 20px;
}
}
}
}
Expand Down
Loading