Skip to content

Commit

Permalink
chore: Update navbar links to include section IDs and improve respons…
Browse files Browse the repository at this point in the history
…iveness
  • Loading branch information
guillecro committed Jul 4, 2024
1 parent d72c066 commit bdec471
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 41 deletions.
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@
<a class="navbar-item" href="#campania">
CAMPAÑA
</a>
<a class="navbar-item" href="#el-caso">
EL CASO
<a class="navbar-item" href="#contexto">
CONTEXTO
</a>
<a class="navbar-item" href="#riesgos">
RIESGOS
</a>
<a class="navbar-item" href="#casos">
CASOS
<a class="navbar-item" href="#caso">
EL CASO
</a>
<a class="navbar-item" href="#objetivos">
OBJETIVOS
Expand All @@ -89,7 +89,7 @@
</div>
</div>
</div>
<section id="el-caso" class="has-background-black has-text-white">
<section id="contexto" class="has-background-black has-text-white">
<div class="section">

<!-- <img class="frame-qr" src="./assets/frame-rari.png" alt=""> -->
Expand Down Expand Up @@ -187,8 +187,8 @@ <h2 class="title">RIESGO #3</h2>
</div>
</div>
</section>
<div id="casos"></div>
<section id="casos-desktop" class="has-background-white is-hidden-touch">
<div id="caso"></div>
<section id="caso-desktop" class="has-background-white is-hidden-touch">
<div class="hero-title">
<img src="./assets/comun-title-desktop.svg" class="image the-title" alt="¿Qué tienen en común">
<img src="./assets/faces/grabois_cara.png" class="image face face01" alt="Juan Grabois">
Expand All @@ -206,7 +206,7 @@ <h2 class="title">RIESGO #3</h2>
<img src="./assets/faces/axel_ojos.png" class="image face face-axel" alt="Axel Kicillof">
</div>
</section>
<div id="casos-mobile" class="has-background-white is-hidden-desktop">
<div id="caso-mobile" class="has-background-white is-hidden-desktop">
<img src="./assets/comun-title-mobile.svg" class="image the-title is-hidden-tablet" alt="¿Qué tienen en común">
<img src="./assets/comun-title-desktop.svg" class="image the-title is-hidden-mobile" alt="¿Qué tienen en común">
<div class="section">
Expand Down
6 changes: 3 additions & 3 deletions style-classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
line-height: normal;
}

#el-caso {
#contexto {
.subtitle-frame {
border-left: 5px solid #FFF;
padding-left: 10px;
Expand Down Expand Up @@ -154,7 +154,7 @@
}
}

#casos-desktop {
#caso-desktop {
.hero-title {
position: relative;

Expand Down Expand Up @@ -250,7 +250,7 @@
}
}

#casos-mobile {
#caso-mobile {
.the-title {
width: 100%;
}
Expand Down
60 changes: 30 additions & 30 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25375,50 +25375,50 @@ has-background-danger.is-hoverable:active {
line-height: normal;
}

#el-caso .subtitle-frame {
#contexto .subtitle-frame {
border-left: 5px solid #FFF;
padding-left: 10px;
margin-bottom: 10px;
padding-top: 5px;
}
#el-caso .main-title {
#contexto .main-title {
font-size: 70px;
}
@media screen and (min-width: 1024px) {
#el-caso .subtitle-frame .title {
#contexto .subtitle-frame .title {
font-size: 40px;
line-height: 1;
}
#el-caso .main-title {
#contexto .main-title {
font-size: 70px;
}
#el-caso .section {
#contexto .section {
padding-right: 0;
padding-bottom: 0;
}
#el-caso .frame-wrapper {
#contexto .frame-wrapper {
padding-right: 0;
padding-bottom: 0;
}
#el-caso .frame-wrapper img {
#contexto .frame-wrapper img {
margin-left: auto;
}
#el-caso .columns {
#contexto .columns {
padding-right: 0;
}
#el-caso .container.is-fluid {
#contexto .container.is-fluid {
padding-right: 0;
}
}
#el-caso .text-content {
#contexto .text-content {
margin: 60px 0;
}
#el-caso .text-content p {
#contexto .text-content p {
text-align: justify;
font-size: 18px;
line-height: 1.4;
}
#el-caso .frame-qr-desktop {
#contexto .frame-qr-desktop {
position: sticky;
top: 70px;
}
Expand Down Expand Up @@ -25480,76 +25480,76 @@ has-background-danger.is-hoverable:active {
text-align: justify;
}

#casos-desktop .hero-title {
#caso-desktop .hero-title {
position: relative;
}
#casos-desktop .hero-title .the-title {
#caso-desktop .hero-title .the-title {
width: 100%;
}
#casos-desktop .hero-title .face {
#caso-desktop .hero-title .face {
position: absolute;
width: 7%;
cursor: pointer;
transition: transform 0.3s ease-in-out;
}
#casos-desktop .hero-title .face:hover {
#caso-desktop .hero-title .face:hover {
transform: scale(1.8);
}
#casos-desktop .hero-title .face01 {
#caso-desktop .hero-title .face01 {
top: 64%;
left: 3%;
}
#casos-desktop .hero-title .face02 {
#caso-desktop .hero-title .face02 {
top: 11%;
left: 26%;
}
#casos-desktop .hero-title .face03 {
#caso-desktop .hero-title .face03 {
top: 49%;
left: 35%;
}
#casos-desktop .hero-title .face04 {
#caso-desktop .hero-title .face04 {
bottom: 12%;
right: 38%;
}
#casos-desktop .hero-title .face05 {
#caso-desktop .hero-title .face05 {
top: 20%;
left: 65%;
}
#casos-desktop .hero-title .face06 {
#caso-desktop .hero-title .face06 {
top: -4%;
right: 9%;
width: 8%;
}
#casos-desktop .hero-title .face07 {
#caso-desktop .hero-title .face07 {
top: 48%;
right: 7%;
}
#casos-desktop .hero-subtitle {
#caso-desktop .hero-subtitle {
display: flex;
justify-content: center;
align-items: center;
padding-top: 80px;
padding-bottom: 80px;
width: 100%;
}
#casos-desktop .hero-subtitle .face {
#caso-desktop .hero-subtitle .face {
width: 7%;
cursor: pointer;
transition: transform 0.3s ease-in-out;
}
#casos-desktop .hero-subtitle .face:hover {
#caso-desktop .hero-subtitle .face:hover {
transform: scale(1.8);
}
#casos-desktop .hero-subtitle .the-subtitle {
#caso-desktop .hero-subtitle .the-subtitle {
width: 60%;
}
#casos-mobile .the-title {
#caso-mobile .the-title {
width: 100%;
}
#casos-mobile .hero-title {
#caso-mobile .hero-title {
position: relative;
}
#casos-mobile .face {
#caso-mobile .face {
width: 100%;
cursor: pointer;
}
Expand Down

0 comments on commit bdec471

Please sign in to comment.