Skip to content

Commit e341100

Browse files
feat: cómo calcular HH en landing page
feat: cómo calcular HH en landing page
2 parents 71dc80f + 92f693f commit e341100

File tree

10 files changed

+83
-6
lines changed

10 files changed

+83
-6
lines changed

src/Sections/Header.astro

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,26 @@ import Mail from "../assets/icons/mail.png";
2222
</a>
2323
</li>
2424
<li class="hidden md:block">
25-
<a href="/#calcular" class="text-xl text-huella-text-green">¿Cómo calculamos?</a>
25+
<a href="/#calcular" class="text-xl text-huella-text-green"
26+
>¿Cómo calculamos?</a
27+
>
2628
</li>
2729
<li class="hidden md:block text-lg hover:m-0">
28-
<a href="/#mision" class="text-xl text-huella-text-green">Nuestra misión</a>
30+
<a href="/#mision" class="text-xl text-huella-text-green"
31+
>Nuestra misión</a
32+
>
2933
</li>
3034
<li class="hidden md:block text-lg hover:m-0">
31-
<a href="/#nosotros" class="text-xl text-huella-text-green">Sobre nosotros</a>
35+
<a href="/#nosotros" class="text-xl text-huella-text-green"
36+
>Sobre nosotros</a
37+
>
3238
</li>
3339

3440
<li class="hidden md:block text-lg hover:m-0">
35-
<a href="blogs/emisiones-co2-bolivia" class="text-xl text-huella-text-green">Blog</a>
41+
<a
42+
href="blogs/emisiones-co2-bolivia"
43+
class="text-xl text-huella-text-green">Blog</a
44+
>
3645
</li>
3746

3847
<!-- <li class="hidden md:block text-lg hover:m-0">

src/Sections/HowTo.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Semaforo from "../assets/images/Rango semáforo de 5 colores.png";
1111

1212
<section
1313
id="calcular"
14-
class="flex flex-col items-center gap-2 justify-between py-4 md:py-16 px-4 md:px-[100px] mx-auto my-auto max-w-[1440px] scroll-m-10"
14+
class=" flex flex-col items-center gap-2 justify-between py-4 md:py-16 px-4 md:px-[100px] mx-auto my-auto max-w-[1440px] scroll-m-10"
1515
>
1616
<h1 class="text-center text-xl md:text-6xl font-bold">
1717
Calculadora de Huella de Carbono </h1>

src/Sections/HowToHH.astro

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
import Higiene from "../assets/images/wash.png"
3+
import Limpieza from "../assets/images/laundry.png";
4+
import Dieta from "../assets/images/howTo/dieta.png";
5+
import Alimentacion from "../assets/images/lunch_dining.png";
6+
import BienesyServicios from "../assets/images/bienes.png";
7+
import HabitosSostenibles from "../assets/images/habitos_sost.png";
8+
import CaculateCard from "../components/CaculateCard.astro";
9+
import Resultado from "../assets/images/howTo/grafico.png";
10+
import Rig from "../assets/images/howTo/rig-feliz.png";
11+
import Semaforo from "../assets/images/Rango semáforo de 5 colores.png";
12+
---
13+
14+
<section
15+
id="calcular"
16+
class="flex flex-col items-center gap-5 justify-between bg-[#F5F5F5] py-4 md:py-16 px-4 md:px-[100px] mx-auto my-auto max-w-[1440px] min-w-[100%] scroll-m-10"
17+
>
18+
<h1 class="text-center text-xl md:text-6xl font-bold">
19+
Calculadora de Huella Hídrica </h1>
20+
<h2 class="md:text-2xl">La prueba dura aproximadamente 5 minutos</h2>
21+
<h2 class="md:text-2xl">Evalúa tu consumo de agua en cinco categorías principales:</h2>
22+
<div class="flex flex-col md:flex-row gap-2 md:justify-around w-full">
23+
<CaculateCard
24+
img={Higiene.src}
25+
text="Higiene"
26+
altImg="Higiene"
27+
withImg="100px"
28+
stylesComponent="md:h-auto mt-5 transition ease-in-out duration-500 transform hover:scale-110 hover:bg-transparent mb-30"
29+
/>
30+
31+
<CaculateCard
32+
img={Limpieza.src}
33+
text="Limpieza"
34+
altImg="Limpieza"
35+
withImg="100px"
36+
stylesComponent="md:h-auto mt-5 transition ease-in-out duration-500 transform hover:scale-110 hover:bg-transparent mb-30"
37+
/>
38+
39+
<CaculateCard
40+
img={Alimentacion.src}
41+
text="Dieta"
42+
altImg="Imagen Dieta"
43+
withImg="100px"
44+
stylesComponent="md:h-auto mt-5 transition ease-in-out duration-500 transform hover:scale-110 hover:bg-transparent mb-30"
45+
/>
46+
<CaculateCard
47+
img={BienesyServicios.src}
48+
text="Bienes y Servicios"
49+
altImg="Imagen Bienes y Servicios"
50+
withImg="100px"
51+
stylesComponent="md:h-auto mt-5 transition ease-in-out duration-500 transform hover:scale-110 hover:bg-transparent mb-30"
52+
/>
53+
<CaculateCard
54+
img={HabitosSostenibles.src}
55+
text="Hábitos Sostenibles"
56+
altImg="Imagen Hábitos Sostenibles"
57+
withImg="130px"
58+
stylesComponent="md:h-auto mt-5 transition ease-in-out duration-500 transform hover:scale-110 hover:bg-transparent mb-30"
59+
/>
60+
</div>
61+
<h3 class="text-center text-base md:text-2xl max-w-[800px]">
62+
Aprende a ahorrar agua con consejos prácticos que cuidan tu bolsillo y el planeta.
63+
</h3>
64+
65+
66+
</section>

src/Sections/Mission.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ODSCircle from "../assets/images/ODS-circulo.png";
33
---
44
<section
55
id="mision"
6-
class="flex flex-col items-center gap-5 justify-between py-4 md:py-16 px-4 md:px-[100px] mx-auto my-auto max-w-[1440px] scroll-m-10 bg-huella-text-gray-ligth"
6+
class="flex flex-col items-center gap-5 justify-between py-4 md:py-16 px-4 md:px-[100px] mx-auto my-auto max-w-[1440px] min-w-[100%] scroll-m-10 bg-huella-text-gray-ligth"
77
>
88
<h1 class="text-center text-xl md:text-6xl font-bold">
99
Nuestra Misión </h1>

src/assets/images/bienes.png

2.39 KB
Loading

src/assets/images/habitos_sost.png

7.01 KB
Loading

src/assets/images/laundry.png

2.41 KB
Loading

src/assets/images/lunch_dining.png

1.73 KB
Loading

src/assets/images/wash.png

1.75 KB
Loading

src/pages/index.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ import About from "../Sections/About.astro";
33
// import Download from "../components/Download.astro";
44
import Hero from "../Sections/Hero.astro";
55
import HowTo from "../Sections/HowTo.astro";
6+
import HowToHH from "../Sections/HowToHH.astro";
67
import Mission from "../Sections/Mission.astro";
78
import Layout from "../layouts/Layout.astro";
89
---
910

1011
<Layout title="Mi Huella">
1112
<Hero />
1213
<HowTo />
14+
<HowToHH/>
1315
<Mission/>
1416
<About />
1517
<!-- <Download /> -->

0 commit comments

Comments
 (0)