Skip to content

Commit 4d5cf25

Browse files
committed
Fixes
1 parent cd56b0d commit 4d5cf25

5 files changed

Lines changed: 26 additions & 22 deletions

File tree

public/js/scroll-animations.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ document.addEventListener("DOMContentLoaded", function () {
5050
if (child.classList.contains("blurred-fade")) {
5151
// Mantener blurred-fade en hijos también
5252
}
53-
});
54-
// Remover cualquier animación inmediata SOLO de elementos scroll-trigger
55-
if (element.classList.contains("animate-on-scroll-trigger")) {
53+
}); // Remover cualquier animación inmediata SOLO de elementos scroll-trigger
54+
// NO remover animate-blurred-fade-in del hero section
55+
if (
56+
element.classList.contains("animate-on-scroll-trigger") &&
57+
!element.closest("#inicio")
58+
) {
5659
element.classList.remove("animate-blurred-fade-in");
5760
}
5861

public/site.webmanifest

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
"name": "SafeMap - Navega Seguro con IA",
33
"short_name": "SafeMap",
44
"description": "Plataforma móvil de seguridad ciudadana que permite reportar incidentes anónimamente y obtener rutas seguras con IA en tiempo real",
5-
"start_url": "/",
5+
"start_url": "/SafeMap-Web/",
66
"display": "standalone",
77
"background_color": "#ffffff",
88
"theme_color": "#2563eb",
99
"orientation": "portrait-primary",
10-
"scope": "/",
10+
"scope": "/SafeMap-Web/",
1111
"lang": "es",
1212
"icons": [
1313
{
14-
"src": "/favicon.svg",
14+
"src": "/SafeMap-Web/favicon.svg",
1515
"sizes": "any",
1616
"type": "image/svg+xml",
1717
"purpose": "any maskable"
1818
},
1919
{
20-
"src": "/apple-touch-icon.png",
20+
"src": "/SafeMap-Web/apple-touch-icon.png",
2121
"sizes": "180x180",
2222
"type": "image/png"
2323
}

src/components/sections/Testimonials.astro

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ import TestimonialCard from '@/components/cards/TestimonialCard.astro';
1717

1818
<!-- Testimonials Grid -->
1919
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16 fade-in">
20-
<!-- Police Chief Testimonial -->
21-
<TestimonialCard
20+
<!-- Police Chief Testimonial --> <TestimonialCard
2221
quote="SafeMap ha revolucionado la manera en que recibimos y procesamos reportes ciudadanos. La información en tiempo real nos permite responder más eficientemente."
2322
author="Comisario María Elena Vásquez"
2423
position="Jefa de División de Seguridad Ciudadana"
2524
organization="Policía Nacional del Perú"
26-
avatar="/avatars/police-chief.svg"
25+
avatar={`${import.meta.env.BASE_URL}avatars/police-chief.svg`}
2726
verified={true}
2827
/>
2928

@@ -33,7 +32,7 @@ import TestimonialCard from '@/components/cards/TestimonialCard.astro';
3332
author="Dr. Carlos Mendoza"
3433
position="Director de Investigación en IA"
3534
organization="Universidad Nacional de Ingeniería"
36-
avatar="/avatars/professor.svg"
35+
avatar={`${import.meta.env.BASE_URL}avatars/professor.svg`}
3736
verified={true}
3837
/>
3938

@@ -43,7 +42,7 @@ import TestimonialCard from '@/components/cards/TestimonialCard.astro';
4342
author="Alcalde Roberto Fernández"
4443
position="Alcalde Distrital"
4544
organization="Municipalidad de San Isidro"
46-
avatar="/avatars/mayor.svg"
45+
avatar={`${import.meta.env.BASE_URL}avatars/mayor.svg`}
4746
verified={true}
4847
/>
4948

@@ -53,7 +52,7 @@ import TestimonialCard from '@/components/cards/TestimonialCard.astro';
5352
author="Ing. Ana Lucia Torres"
5453
position="Lead Developer"
5554
organization="Google Developer Expert"
56-
avatar="/avatars/tech-expert.svg"
55+
avatar={`${import.meta.env.BASE_URL}avatars/tech-expert.svg`}
5756
verified={true}
5857
/>
5958

@@ -63,7 +62,7 @@ import TestimonialCard from '@/components/cards/TestimonialCard.astro';
6362
author="Lic. Patricia Ramos"
6463
position="Presidenta"
6564
organization="Asociación de Vecinos Unidos"
66-
avatar="/avatars/community-leader.svg"
65+
avatar={`${import.meta.env.BASE_URL}avatars/community-leader.svg`}
6766
verified={true}
6867
/>
6968

@@ -73,7 +72,7 @@ import TestimonialCard from '@/components/cards/TestimonialCard.astro';
7372
author="General (r) Eduardo Sánchez"
7473
position="Ex-Director General"
7574
organization="Instituto Nacional de Defensa Civil"
76-
avatar="/avatars/security-expert.svg"
75+
avatar={`${import.meta.env.BASE_URL}avatars/security-expert.svg`}
7776
verified={true}
7877
/>
7978

src/layouts/BaseLayout.astro

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ const {
4040
<meta property="twitter:title" content={title} />
4141
<meta property="twitter:description" content={description} />
4242
<meta property="twitter:image" content={image} /> <!-- Favicon -->
43-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
44-
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.svg" />
45-
<link rel="manifest" href="/site.webmanifest" />
43+
<link rel="icon" type="image/svg+xml" href={`${import.meta.env.BASE_URL}favicon.svg`} />
44+
<link rel="apple-touch-icon" sizes="180x180" href={`${import.meta.env.BASE_URL}apple-touch-icon.svg`} />
45+
<link rel="manifest" href={`${import.meta.env.BASE_URL}site.webmanifest`} />
4646

4747
<!-- Additional SEO Meta Tags -->
4848
<meta name="robots" content="index, follow" />
@@ -92,10 +92,9 @@ const {
9292
</script>
9393
</head> <body class="font-sans antialiased">
9494
<slot />
95-
96-
<!-- Performance and Animation Scripts -->
97-
<script src="/js/animations.js" is:inline></script>
98-
<script src="/js/scroll-animations.js" is:inline></script>
95+
<!-- Performance and Animation Scripts -->
96+
<script src={`${import.meta.env.BASE_URL}js/animations.js`} is:inline></script>
97+
<script src={`${import.meta.env.BASE_URL}js/scroll-animations.js`} is:inline></script>
9998
</body>
10099
</html>
101100

src/styles/global.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ html {
170170
}
171171

172172
.animate-blurred-fade-in {
173+
opacity: 0;
174+
transform: translateY(30px) scale(0.95);
175+
filter: blur(4px);
173176
animation: blurredFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
174177
}
175178

0 commit comments

Comments
 (0)