Skip to content

Commit

Permalink
Deployment Success
Browse files Browse the repository at this point in the history
  • Loading branch information
UjjwalSaini07 committed Oct 14, 2024
1 parent 5b2efe7 commit b7fd54a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 155 deletions.
5 changes: 0 additions & 5 deletions Backend/api/index.js

This file was deleted.

46 changes: 0 additions & 46 deletions Backend/api/send-email.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link } from "react-router-dom";
import AOS from 'aos';

import './home.css';
import EmailPusher from './EmailPusher';
// import EmailPusher from './EmailPusher';
import { AudioPlayer } from 'react-audio-play';
import SweetEmailPusher from './SweetEmail';
import song from '../components/FluteTunes/krishnaflute.mp3';
Expand Down
103 changes: 0 additions & 103 deletions src/pages/SweetEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,106 +104,3 @@ const styles = {
};

export default EmailPusher;



// Todo: Not having Node Mailer - Else perfect
// import React, { useState } from "react";
// import Swal from "sweetalert2";

// const isMobile = window.innerWidth <= 768;
// const EmailPusher = () => {
// const promptForEmail = async () => {
// try {
// const { value: email } = await Swal.fire({
// title: "Input Email Address",
// input: "email",
// inputLabel: "Your Email Address",
// inputPlaceholder: "Enter your email address"
// });

// if (email) {
// Swal.fire(`Entered Email: ${email}`);
// } else {
// Swal.fire("No email entered.");
// }
// } catch (error) {
// console.error("Error capturing email:", error);
// Swal.fire("An error occurred while capturing your email.");
// }
// };

// return (
// <div style={styles.container}>
// <h2 style={styles.description}>
// Want Daily Bhagvat Geeta Shlok's!<br/>Enter your email below:
// </h2>
// <form onClick={promptForEmail} style={styles.form}>
// <div className='relative inline-flex items-center justify-center p-2 px-4 py-2 overflow-hidden font-medium text-[#00264d] bg-[#00264d] transition duration-300 ease-out border-2 border-[#00264d] rounded-lg shadow-md group w-[170px]'>
// <span className='absolute inset-0 flex items-center justify-center w-full h-full text-white duration-300 -translate-x-full bg-[#00264d] group-hover:translate-x-0 ease'>
// <span>U Subscribed!</span>
// <svg
// className='w-6 h-6'
// fill='none'
// stroke='currentColor'
// viewBox='0 0 24 24'
// xmlns='http://www.w3.org/2000/svg'
// >
// <path
// strokeLinecap='round'
// strokeLinejoin='round'
// strokeWidth='2'
// d='M14 5l7 7m0 0l-7 7m7-7H3'
// ></path>
// </svg>
// </span>
// <span className='absolute flex items-center justify-center w-full h-full text-white transition-all duration-300 transform group-hover:translate-x-full ease'>
// Subscribe
// </span>
// <span className='relative invisible'>Subscription</span>
// </div>
// </form>
// </div>
// );
// };

// const styles = {
// container: {
// display: "flex",
// flexDirection: "column",
// alignItems: "center",
// justifyContent: "center",
// height: "30vh", // Slightly larger height for more room
// padding: "20px",
// borderRadius: "15px",
// marginTop: isMobile ? "0" : "-3.5rem",
// marginLeft: isMobile ? "0" : "4rem",
// maxWidth: "600px", // Limit the width for large screens
// },
// description: {
// fontSize: "1.5rem",
// color: "#333",
// marginBottom: "20px",
// textAlign: "center",
// fontWeight: "bold",
// textShadow: "2px 2px 4px rgba(0, 0, 0, 0.3)",
// },
// form: {
// display: "flex",
// flexDirection: "column",
// alignItems: "center",
// width: "100%",
// },
// // Media queries for responsiveness
// "@media (max-width: 768px)": {
// container: {
// padding: "10px", // Adjust padding for smaller screens
// height: "auto", // Allow flexible height for small screens
// },
// description: {
// fontSize: "1.25rem", // Smaller font size on mobile
// },
// },
// };

// export default EmailPusher;

0 comments on commit b7fd54a

Please sign in to comment.