This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get your registration at https://www.google.com/recaptcha/about/ to get your "sitekey" and your "secret" (required‼️). | |
// Install react-google-recaptcha library | |
// ~npm i react-google-recaptcha / ~ yarn add react-google-recaptcha | |
"use client"; | |
import { useState, useRef } from "react"; | |
import { verifyCaptcha } from "./ReCaptchaVerify"; | |
import ReCAPTCHA from "react-google-recaptcha"; | |
export const EmailForm = () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function ContactPage() { | |
const [clipboardIsCopy, setClipboardIsCopy] = useState(false); | |
const textToClipBoard = useRef(""); | |
const handleClipboardState = () => { | |
const text = textToClipBoard.current.?textContent; | |
navigator.clipboard.writeText(text); | |
setClipboardIsCopy(!clipboardIsCopy); | |
setTimeout(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useState } from "react"; // Import your React hooks | |
const [emojiData, setEmojiData] = useState([]); // State variable to store the emoji data | |
const EmojiAPI = "https://emoji-api.com/emojis?access_key=👺Register to the page and generate your unique key👺" | |
//👺Atention here | |
useEffect(() => { // We use useEffect hook to fetch our API everytime our page loads | |
const fetchEmojiData = async () => { | |
const response = await fetch(EmojiAPI) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require("firebase-functions"); | |
const nodemailer = require("nodemailer"); | |
const dotenv = require("dotenv"); // enable enviorment variables | |
dotenv.config(); | |
const transport = nodemailer.createTransport({ // This is what is going to send your email | |
service: "Gmail", // We are using gmail here | |
auth: { | |
user: "user@example.com", //use your enviorment variables here |