├── .gitattributes ├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── Images │ ├── VinayakSingh.webp │ └── favicon.webp ├── index.html └── sitemap.xml ├── sitemap.xml ├── src ├── @types │ └── image.d.ts ├── App.tsx ├── assets │ ├── Hello.gif │ ├── VinayakSingh.jpg │ ├── VinayakSingh.webp │ ├── Vinayak_Kumar_Singh_Resume.pdf │ ├── Vinayak_Singh_Resume.pdf │ ├── bootstrap-icon.svg │ ├── css-icon.svg │ ├── download.webp │ ├── email-icon.svg │ ├── external-link-icon.svg │ ├── external-link.svg │ ├── github.svg │ ├── html-icon.svg │ ├── illustration.svg │ ├── instagram.svg │ ├── java.svg │ ├── js-icon.svg │ ├── linkedin.svg │ ├── mysql-icon.svg │ ├── node-icon.svg │ ├── phone-icon.svg │ ├── python.svg │ ├── react-icon.svg │ ├── sass-icon.svg │ ├── shopify.svg │ ├── telegram.svg │ ├── typescript-icon.svg │ ├── vscode-icon.svg │ ├── vue-icon.svg │ ├── whatsapp.svg │ └── wordpress.svg ├── components │ ├── About │ │ ├── About.tsx │ │ └── styles.ts │ ├── Contact │ │ ├── Contact.tsx │ │ └── styles.ts │ ├── Footer │ │ ├── Footer.tsx │ │ └── styles.ts │ ├── Form │ │ ├── Form.tsx │ │ └── styles.ts │ ├── Header │ │ ├── Header.tsx │ │ └── styles.ts │ ├── Hero │ │ ├── Hero.tsx │ │ └── styles.ts │ ├── Main │ │ ├── Main.tsx │ │ └── styles.ts │ └── Project │ │ ├── Project.tsx │ │ └── styles.ts ├── index.tsx └── styles │ └── global.ts ├── tsconfig.json └── yarn.lock /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | 25 | .vercel 26 | yarn.lock 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Portfolio of Vinayak Singh 2 | 3 | 4 | 5 | This project was created with CRA (Create React App) 6 | 7 | This is my portfolio website to introduce myself, here I put my skills, projects, and contact details. 8 | 9 | ## Technologies used: 10 | - React 11 | - Typescript 12 | - Styled Components 13 | 14 | ## To run this project: 15 | - yarn install 16 | - yarn run start -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "portfolio", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@formspree/react": "^2.2.4", 7 | "@testing-library/jest-dom": "^5.14.1", 8 | "@testing-library/react": "^12.0.0", 9 | "@testing-library/user-event": "^13.2.1", 10 | "@types/jest": "^27.0.1", 11 | "@types/node": "^16.7.13", 12 | "@types/react": "^17.0.20", 13 | "@types/react-dom": "^17.0.9", 14 | "@vercel/analytics": "^1.4.1", 15 | "react": "^17.0.2", 16 | "react-animate-on-scroll": "^2.1.5", 17 | "react-dom": "^17.0.2", 18 | "react-google-recaptcha": "^2.1.0", 19 | "react-router-dom": "^6.2.1", 20 | "react-router-hash-link": "^2.4.3", 21 | "react-scripts": "^5.0.1", 22 | "react-toastify": "^8.1.0", 23 | "react-tsparticles": "^1.37.5", 24 | "styled-components": "^5.3.3", 25 | "typescript": "^4.4.2", 26 | "validator": "^13.7.0", 27 | "web-vitals": "^2.1.0" 28 | }, 29 | "scripts": { 30 | "start": "react-scripts start", 31 | "build": "react-scripts build", 32 | "test": "react-scripts test", 33 | "eject": "react-scripts eject" 34 | }, 35 | "eslintConfig": { 36 | "extends": [ 37 | "react-app", 38 | "react-app/jest" 39 | ] 40 | }, 41 | "browserslist": { 42 | "production": [ 43 | ">0.2%", 44 | "not dead", 45 | "not op_mini all" 46 | ], 47 | "development": [ 48 | "last 1 chrome version", 49 | "last 1 firefox version", 50 | "last 1 safari version" 51 | ] 52 | }, 53 | "devDependencies": { 54 | "@types/react-animate-on-scroll": "^2.1.5", 55 | "@types/react-google-recaptcha": "^2.1.2", 56 | "@types/react-router-hash-link": "^2.4.4", 57 | "@types/styled-components": "^5.1.18", 58 | "@types/validator": "^13.7.1" 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /public/Images/VinayakSingh.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeVinayak/Portfolio-v2/4543048dbd0179950879182b4cbfe6c228a775d7/public/Images/VinayakSingh.webp -------------------------------------------------------------------------------- /public/Images/favicon.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeVinayak/Portfolio-v2/4543048dbd0179950879182b4cbfe6c228a775d7/public/Images/favicon.webp -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Vinayak Singh | Portfolio 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 |
35 | 36 | -------------------------------------------------------------------------------- /public/sitemap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | http://www.vinayaksingh.com/ 5 | 2023-01-01 6 | weekly 7 | 1.0 8 | 9 | -------------------------------------------------------------------------------- /sitemap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | http://www.vinayaksingh.com/ 5 | 2023-01-01 6 | weekly 7 | 1.0 8 | 9 | -------------------------------------------------------------------------------- /src/@types/image.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.svg'; 2 | declare module '*.pdf'; 3 | declare module '*.png'; 4 | declare module '*.jpg'; 5 | declare module '*.gif'; 6 | declare module '*.webp'; -------------------------------------------------------------------------------- /src/App.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | // import { useEffect } from 'react' 3 | import { Footer } from './components/Footer/Footer' 4 | import { Header } from './components/Header/Header' 5 | import { Main } from './components/Main/Main' 6 | import { GlobalStyle } from './styles/global' 7 | import { Analytics } from "@vercel/analytics/react" 8 | 9 | import 'react-toastify/dist/ReactToastify.css' 10 | function App() { 11 | return ( 12 | <> 13 | 14 |
15 |
16 | 17 | 18 | 19 | ) 20 | } 21 | 22 | export default App 23 | -------------------------------------------------------------------------------- /src/assets/Hello.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeVinayak/Portfolio-v2/4543048dbd0179950879182b4cbfe6c228a775d7/src/assets/Hello.gif -------------------------------------------------------------------------------- /src/assets/VinayakSingh.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeVinayak/Portfolio-v2/4543048dbd0179950879182b4cbfe6c228a775d7/src/assets/VinayakSingh.jpg -------------------------------------------------------------------------------- /src/assets/VinayakSingh.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeVinayak/Portfolio-v2/4543048dbd0179950879182b4cbfe6c228a775d7/src/assets/VinayakSingh.webp -------------------------------------------------------------------------------- /src/assets/Vinayak_Kumar_Singh_Resume.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeVinayak/Portfolio-v2/4543048dbd0179950879182b4cbfe6c228a775d7/src/assets/Vinayak_Kumar_Singh_Resume.pdf -------------------------------------------------------------------------------- /src/assets/Vinayak_Singh_Resume.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeVinayak/Portfolio-v2/4543048dbd0179950879182b4cbfe6c228a775d7/src/assets/Vinayak_Singh_Resume.pdf -------------------------------------------------------------------------------- /src/assets/bootstrap-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/assets/css-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/assets/download.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeVinayak/Portfolio-v2/4543048dbd0179950879182b4cbfe6c228a775d7/src/assets/download.webp -------------------------------------------------------------------------------- /src/assets/email-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 13 | 14 | -------------------------------------------------------------------------------- /src/assets/external-link-icon.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/external-link.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assets/github.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/html-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /src/assets/illustration.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/instagram.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/java.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/assets/js-icon.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/linkedin.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/mysql-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/assets/node-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assets/phone-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/assets/python.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/assets/react-icon.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/sass-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assets/shopify.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/assets/telegram.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/typescript-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/assets/vscode-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assets/vue-icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/assets/whatsapp.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/assets/wordpress.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/components/About/About.tsx: -------------------------------------------------------------------------------- 1 | import { Container } from "./styles"; 2 | import VinayakSingh from "../../assets/VinayakSingh.webp"; 3 | import python from "../../assets/python.svg" 4 | import java from "../../assets/java.svg" 5 | import wordpress from "../../assets/wordpress.svg"; 6 | import shopify from "../../assets/shopify.svg"; 7 | import htmlIcon from "../../assets/html-icon.svg"; 8 | import cssIcon from "../../assets/css-icon.svg"; 9 | import jsIcon from "../../assets/js-icon.svg"; 10 | // import nodeIcon from "../../assets/node-icon.svg"; 11 | import reactIcon from "../../assets/react-icon.svg"; 12 | import typescriptIcon from "../../assets/typescript-icon.svg"; 13 | import vueIcon from "../../assets/vue-icon.svg"; 14 | import boostrapIcon from "../../assets/bootstrap-icon.svg"; 15 | import ScrollAnimation from "react-animate-on-scroll"; 16 | 17 | export function About() { 18 | return ( 19 | 20 |
21 | 22 |

About me

23 |
24 | 25 |

26 | Hi there! I'm Vinayak, an enthusiastic Software Engineer skilled in web development, machine learning, and scalable software solutions 27 |

28 |
29 | 30 |

31 | I build responsive web applications, fine-tune ML models, and implement robust backend services. 32 |

33 |
34 | 35 |

36 | I also work with CMS platforms like WordPress and Shopify to streamline content management. 37 |

38 |
39 | 40 |
41 |

Education:

42 |

Master of Computer Applications (MCA)

43 |

Vellore Institute of Technology, Chennai | July 2023 - Present

44 |

8.09 CGPA

45 |
46 |
47 | 48 |
49 |

Experience:

Software Developer

50 |

KIWIS AND BROWNIES IT SOLUTIONS | October 2024 - Present

51 |

Bangalore, India

52 |
53 |
54 | 55 | 56 |

Here are my main skills:

57 |
58 |
59 |
60 | 61 | python 62 | 63 |
64 |
65 | 66 | java 67 | 68 |
69 |
70 | 71 | JavaScript 72 | 73 |
74 |
75 | 76 | React 77 | 78 |
79 |
80 | 81 | Typescript 82 | 83 |
84 |
85 | 86 | Vue 87 | 88 |
89 |
90 | 91 | Wordpress 92 | 93 |
94 |
95 | 96 | shopify 97 | 98 |
99 |
100 | 101 | Html 102 | 103 |
104 |
105 | 106 | Css 107 | 108 |
109 |
110 | 111 | bootstrap 112 | 113 |
114 |
115 |
116 |
117 | 118 | Vinayak Singh 119 | 120 |
121 |
122 | ) 123 | } 124 | -------------------------------------------------------------------------------- /src/components/About/styles.ts: -------------------------------------------------------------------------------- 1 | import styled from "styled-components"; 2 | 3 | export const Container = styled.section` 4 | margin-top: 12rem; 5 | display: grid; 6 | grid-template-columns: 1fr 1fr; 7 | gap: 2rem; 8 | 9 | .hard-skills{ 10 | margin-top: 1.6rem; 11 | display: flex; 12 | align-items: center; 13 | flex-wrap: wrap; 14 | gap: 1.8rem; 15 | } 16 | .hability{ 17 | display: flex; 18 | flex-direction: column; 19 | align-items: center; 20 | 21 | img{ 22 | width: 3.4rem; 23 | } 24 | } 25 | 26 | h2{ 27 | display: inline-block; 28 | margin-bottom: 2rem; 29 | // border-bottom: 0.2rem solid var(--blue); 30 | font-size :3rem; 31 | margin-top: 0rem; 32 | color: var(--green); 33 | } 34 | 35 | h3{ 36 | margin-top: 2rem; 37 | color: var(--green); 38 | } 39 | 40 | p{ 41 | font-size: 1.8rem; 42 | letter-spacing: 0.1rem; 43 | font-weight: 500; 44 | } 45 | 46 | 47 | 48 | .about-image{ 49 | text-align: center; 50 | img{ 51 | margin-top: 2rem; 52 | width: 75%; 53 | filter: grayscale(0); 54 | transition: filter 0.5s; 55 | &:hover{ 56 | filter: grayscale(0); 57 | } 58 | } 59 | } 60 | 61 | @media only screen and (max-width: 480px) { 62 | .about-image { 63 | max-width: 100%; 64 | margin-top: 4rem; 65 | img{ 66 | margin-top: 2rem; 67 | width: 100%; 68 | filter: grayscale(0); 69 | transition: filter 0.5s; 70 | &:hover{ 71 | filter: grayscale(0); 72 | } 73 | } 74 | } 75 | 76 | @media (max-width: 960px){ 77 | display: block; 78 | text-align: center; 79 | 80 | .hard-skills{ 81 | justify-content: center; 82 | } 83 | .about-image{ 84 | display: flex; 85 | max-width: 100%; 86 | img{ 87 | margin-top: 2rem; 88 | width: 100%; 89 | filter: grayscale(0); 90 | transition: filter 0.5s; 91 | &:hover{ 92 | filter: grayscale(0); 93 | } 94 | } 95 | 96 | 97 | } 98 | 99 | ` -------------------------------------------------------------------------------- /src/components/Contact/Contact.tsx: -------------------------------------------------------------------------------- 1 | import { Container } from "./styles"; 2 | import emailIcon from "../../assets/email-icon.svg"; 3 | import phoneIcon from "../../assets/phone-icon.svg" 4 | import { Form } from "../Form/Form"; 5 | 6 | 7 | export function Contact(){ 8 | 9 | return( 10 | 11 |
12 |

Contact

13 |

Ready to get started on your project?

14 |

Contact me now for a Free consultation.

15 |
16 |
17 |
18 | Email 19 | vinayak@vinayaksingh.com 20 |
21 |
22 | Phone No 23 | (+91) 9630576848 24 |
25 |
26 |
27 |
28 | ) 29 | } -------------------------------------------------------------------------------- /src/components/Contact/styles.ts: -------------------------------------------------------------------------------- 1 | import styled from "styled-components"; 2 | 3 | 4 | export const Container = styled.section` 5 | margin-top: 10rem; 6 | 7 | header{ 8 | text-align: center; 9 | h2{ 10 | text-align: center; 11 | font-size: 4rem; 12 | } 13 | p{ 14 | color: var(--green); 15 | font-weight: 500; 16 | } 17 | } 18 | 19 | .contacts{ 20 | display: flex; 21 | align-items: center; 22 | justify-content: center; 23 | gap: 2rem; 24 | place-items: center; 25 | margin-top: 1.5rem; 26 | div{ 27 | display: flex; 28 | align-items: center; 29 | justify-content: center; 30 | width: 50%; 31 | max-width: 30rem; 32 | gap: 2rem; 33 | background-color: var(--green); 34 | border-radius: 1.4rem; 35 | padding: 1.6rem 2.8rem; 36 | transition: background-color 0.25s; 37 | img{ 38 | width: 4rem; 39 | } 40 | a{ 41 | color: var(--black); 42 | font-weight: 500; 43 | } 44 | &:hover{ 45 | background-color: var(--pink); 46 | a{ 47 | color: #FFF; 48 | } 49 | } 50 | } 51 | } 52 | 53 | 54 | @media(max-width: 960px){ 55 | .contacts{ 56 | flex-direction: column; 57 | div{ 58 | width: 100%; 59 | 60 | } 61 | } 62 | } 63 | 64 | ` 65 | /* old one - 2/1/2023 - 66 | @media(max-width: 960px){ 67 | .contacts{ 68 | flex-direction: column; 69 | div{ 70 | width: 100%; 71 | flex-direction: column; 72 | } 73 | } 74 | 75 | */ 76 | -------------------------------------------------------------------------------- /src/components/Footer/Footer.tsx: -------------------------------------------------------------------------------- 1 | import { Container } from './styles' 2 | import reactIcon from '../../assets/react-icon.svg' 3 | import linkedin from '../../assets/linkedin.svg' 4 | import githubIcon from '../../assets/github.svg' 5 | import whatsapp from '../../assets/whatsapp.svg' 6 | import telegram from '../../assets/telegram.svg' 7 | import instagramIcon from '../../assets/instagram.svg' 8 | 9 | export function Footer() { 10 | return ( 11 | 12 | 13 | www.vinayak 14 | singh.in 15 | 16 |
17 |

18 | This Website was made with React 19 | {/* ❤️ */} 20 |

21 |
22 |
23 | 28 | Linkedin 29 | 30 | 35 | GitHub 36 | 37 | 42 | Whatsapp 43 | 44 | 49 | telegram 50 | 51 | 56 | Instagram 57 | 58 |
59 |
60 | ) 61 | } 62 | -------------------------------------------------------------------------------- /src/components/Footer/styles.ts: -------------------------------------------------------------------------------- 1 | import styled from "styled-components"; 2 | 3 | 4 | export const Container = styled.footer` 5 | background-color: #2b2b2b; 6 | padding: 3rem 15rem; 7 | margin-top: 10rem; 8 | display: flex; 9 | align-items: center; 10 | justify-content: space-between; 11 | 12 | 13 | .logo{ 14 | font-size: 2.8rem; 15 | } 16 | 17 | p{ 18 | letter-spacing: 0.2rem; 19 | display: flex; 20 | align-items: center; 21 | gap: 0.5rem; 22 | img{ 23 | width: 2.6rem; 24 | animation: spinning 5s infinite linear; 25 | } 26 | } 27 | .social-media{ 28 | display: flex; 29 | align-items: center; 30 | justify-content: space-between; 31 | gap: 1rem; 32 | 33 | img,span{ 34 | font-size: 3rem; 35 | width: 3rem; 36 | } 37 | } 38 | 39 | 40 | @keyframes spinning { 41 | 0%{ 42 | transform: rotate(0); 43 | } 44 | 100%{ 45 | transform: rotate(360deg); 46 | } 47 | } 48 | 49 | @media(max-width: 800px){ 50 | padding: 4rem 10rem; 51 | flex-direction: column; 52 | gap: 2rem; 53 | text-align: center; 54 | } 55 | @media(max-width: 600px){ 56 | padding: 4rem 1rem; 57 | p{ 58 | font-size: 1.2rem; 59 | } 60 | } 61 | ` -------------------------------------------------------------------------------- /src/components/Form/Form.tsx: -------------------------------------------------------------------------------- 1 | import { Container, ContainerSucces } from './styles' 2 | import { useForm, ValidationError } from '@formspree/react' 3 | import { toast, ToastContainer } from 'react-toastify' 4 | import ReCAPTCHA from 'react-google-recaptcha' 5 | import { useEffect, useState } from 'react' 6 | import validator from 'validator' 7 | 8 | export function Form() { 9 | const [state, handleSubmit] = useForm('xknkpqry') 10 | const [validEmail, setValidEmail] = useState(false) 11 | const [isHuman, setIsHuman] = useState(false) 12 | const [message, setMessage] = useState('') 13 | function verifyEmail(email: string) { 14 | if (validator.isEmail(email)) { 15 | setValidEmail(true) 16 | } else { 17 | setValidEmail(false) 18 | } 19 | } 20 | useEffect(() => { 21 | if (state.succeeded) { 22 | toast.success('Email successfully sent!', { 23 | position: toast.POSITION.BOTTOM_LEFT, 24 | pauseOnFocusLoss: false, 25 | closeOnClick: true, 26 | hideProgressBar: false, 27 | toastId: 'succeeded', 28 | }) 29 | } 30 | }) 31 | if (state.succeeded) { 32 | return ( 33 | 34 |

Thanks for getting in touch!

35 | 42 | 43 |
44 | ) 45 | } 46 | return ( 47 | 48 |

Get in touch using the form

49 |
50 | { 56 | verifyEmail(e.target.value) 57 | }} 58 | required 59 | /> 60 | 61 |