diff --git a/src/components/TurnstileModal.jsx b/src/components/TurnstileModal.jsx index 46ece80..af5ea17 100644 --- a/src/components/TurnstileModal.jsx +++ b/src/components/TurnstileModal.jsx @@ -1,4 +1,4 @@ -import { useState } from "react"; +import { useState, useEffect } from "react"; import { Modal } from "antd"; import Turnstile from "react-turnstile"; diff --git a/src/views/BlogView.jsx b/src/views/BlogView.jsx index 491bea3..9fdf23d 100644 --- a/src/views/BlogView.jsx +++ b/src/views/BlogView.jsx @@ -71,7 +71,13 @@ const BlogView = ({ setCurrentView, slug }) => { className={"tbbutton"} key="back" onClick={() => setCurrentView("blogs")} - icon={} + icon={ + Back + } > Back , diff --git a/src/views/BlogsView.jsx b/src/views/BlogsView.jsx index be2aa55..4f3f112 100644 --- a/src/views/BlogsView.jsx +++ b/src/views/BlogsView.jsx @@ -92,7 +92,13 @@ const BlogsView = ({ setCurrentView }) => { className={"tbbutton"} key="back" onClick={() => setCurrentView("index")} - icon={} + icon={ + Back + } > Back , @@ -195,19 +201,5 @@ const BlogsView = ({ setCurrentView }) => { ); }; -// CSS for hover effect -const blogCardStyles = ` - .blog-card:hover { - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); - } - - .tbtag { - background: transparent !important; - } - - .tbdisabledtag { - background: transparent !important; - } -`; export default BlogsView; diff --git a/src/views/CVView.jsx b/src/views/CVView.jsx index 84f311b..ff7690a 100644 --- a/src/views/CVView.jsx +++ b/src/views/CVView.jsx @@ -11,7 +11,7 @@ const CVView = ({ setCurrentView }) => { console.log("Form values:", values); }; const isMobile = useMediaQuery({ maxWidth: 600 }); - const [isEmailFocused, setIsEmailFocused] = useState(false); // Track focus state + return (
{ className={"tbbutton"} key="back" onClick={() => setCurrentView("index")} - icon={} + icon={ + Back + } > Back , @@ -60,8 +66,6 @@ const CVView = ({ setCurrentView }) => { type="email" placeholder="example@example.com" style={{ flex: 1 }} - onFocus={() => setIsEmailFocused(true)} // Set focused state to true - onBlur={() => setIsEmailFocused(false)} // Set focused state to false /> , @@ -65,6 +73,7 @@ const ContactView = ({ setCurrentView }) => { name="email" rules={[{ required: true, message: "Please enter your email" }]} style={{ marginBottom: "8px" }} + onChange={(e) => setEmail(e.target.value)} > { className={"tbbutton"} key="back" onClick={() => setCurrentView("index")} - icon={} + icon={ + Back + } > Back , @@ -30,27 +36,27 @@ const ExperienceView = ({ setCurrentView }) => { style={{ margin: "0 10%", paddingBottom: "15px" }} > Nucleus Logo Greene King Logo The London Office Logo Revolution Logo Revolution Logo diff --git a/src/views/MainView.jsx b/src/views/MainView.jsx index 52fc44d..d840420 100644 --- a/src/views/MainView.jsx +++ b/src/views/MainView.jsx @@ -1,11 +1,10 @@ // views/MainView.jsx import React from "react"; -import { Typography, Button, Flex, Space } from "antd"; +import { Button, Flex } from "antd"; import { ReactComponent as LogoHorizontal } from "./logo-horizontal.svg"; import { ReactComponent as LogoVertical } from "./logo-vertical.svg"; import { useMediaQuery } from "react-responsive"; -const { Paragraph } = Typography; const MainView = ({ setCurrentView }) => { const isMobile = useMediaQuery({ maxWidth: 600 }); diff --git a/src/views/NotFoundView.jsx b/src/views/NotFoundView.jsx index 0da91ed..57bd7d8 100644 --- a/src/views/NotFoundView.jsx +++ b/src/views/NotFoundView.jsx @@ -1,6 +1,5 @@ import React from "react"; import { Button, Flex } from "antd"; -import { useMediaQuery } from "react-responsive"; const NotFoundView = ({ setCurrentView }) => { return ( diff --git a/src/views/SocialsView.jsx b/src/views/SocialsView.jsx index 15ef0a6..412b0ca 100644 --- a/src/views/SocialsView.jsx +++ b/src/views/SocialsView.jsx @@ -7,7 +7,7 @@ import { LoadingOutlined } from "@ant-design/icons"; import { useEffect } from "react"; import * as FaIcons from "react-icons/fa6"; // Import all FA6 icons dynamically -const SocialsView = ({ setCurrentView, referrer }) => { +const SocialsView = ({ referrer }) => { const isMobile = useMediaQuery({ maxWidth: 600 }); const [socials, setSocials] = useState([]); const [loading, setLoading] = useState(true); // Loading state