Skip to content

Commit

Permalink
Actualizar aplicación web v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gnovl committed Jun 25, 2024
1 parent 74d713d commit a72b6db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 83 deletions.
10 changes: 5 additions & 5 deletions src/components/ContactForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ContactForm: React.FC = () => {
const recaptchaRef = useRef<ReCAPTCHA>(null);
const qrCodeContainerRef = useRef<HTMLDivElement | null>(null);

const yourWhatsappNumber = "34123123123"; // Replace with your Spanish WhatsApp number
const yourWhatsappNumber = "34689680473";
const RECAPTCHA_SITE_KEY = process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY;

const handleSubmit = async (e: React.FormEvent) => {
Expand Down Expand Up @@ -222,12 +222,12 @@ ${message}`;
¡Muy bien! Escanea este código QR con la cámara de tu teléfono.
</p>
<p className="text-base text-gray-700 font-light leading-relaxed mb-2">
<strong>En ordenador:</strong> Pulse "Abrir WhatsApp" para usar la
versión web o escanee el código QR con su teléfono.
<strong>En ordenador:</strong> Pulse &quot;Abrir WhatsApp&quot;
para usar la versión web o escanee el código QR con su teléfono.
</p>
<p className="text-base text-gray-700 font-light leading-relaxed mb-2">
<strong>En móvil:</strong> Pulse "Abrir WhatsApp" para enviar su
mensaje.
<strong>En móvil:</strong> Pulse &quot;Abrir WhatsApp&quot; para
enviar su mensaje.
</p>
<div className="flex flex-col items-center mb-8">
<QRCode
Expand Down
76 changes: 0 additions & 76 deletions src/components/PostBody.tsx

This file was deleted.

5 changes: 3 additions & 2 deletions src/components/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useEffect, useState } from "react";
import Link from "next/link";
import { Link as ScrollLink } from "react-scroll";
import Hamburger from "hamburger-react"; // Import the Hamburger component
import Image from "next/image";

const Navbar: React.FC = () => {
const [activeSection, setActiveSection] = useState<string | null>("home");
Expand Down Expand Up @@ -64,7 +65,7 @@ const Navbar: React.FC = () => {
return () => {
document.removeEventListener("scroll", handleScroll);
};
}, []);
}, [activeSection]);

const getOffset = (sectionId: string) => {
// Check if window is defined (to prevent SSR errors)
Expand Down Expand Up @@ -113,7 +114,7 @@ const Navbar: React.FC = () => {
<div className="container mx-auto flex justify-center lg:justify-center">
{/* Logo for larger screens */}
<div className="hidden lg:block lg:absolute lg:left-4">
<img src="/Logo-1.png" alt="Logo" className="h-8" />
<Image src="/Logo-1.png" alt="Logo" className="h-8" />
</div>
{/* Hamburger Icon */}
<div className="lg:hidden">
Expand Down

0 comments on commit a72b6db

Please sign in to comment.