Skip to content

Commit

Permalink
move contact links
Browse files Browse the repository at this point in the history
  • Loading branch information
thatcatcancode committed Dec 2, 2023
1 parent ce84924 commit dc78f58
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 68 deletions.
71 changes: 31 additions & 40 deletions components/contact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import React from "react";
import SectionHeading from "./section-heading";
import { motion } from "framer-motion";
import { useSectionInView } from "@/lib/hooks";
import { sendEmail } from "@/actions/sendEmail";
import SubmitBtn from "./submit-btn";
import toast from "react-hot-toast";
import { FaGithubSquare } from "react-icons/fa";
import { BsLinkedin } from "react-icons/bs";
import { LuMail } from "react-icons/lu";

export default function Contact() {
const { ref } = useSectionInView("Contact");
Expand All @@ -30,45 +30,36 @@ export default function Contact() {
}}
>
<SectionHeading>Contact me</SectionHeading>

<p className="text-gray-700 -mt-6 dark:text-white/80">
Please contact me directly at{" "}
<a className="underline" href="mailto:leila.n.adams@gmail.com">
leila.n.adams@gmail.com
</a>{" "}
{/* or through this form. */}
</p>
{/*
<form
className="mt-10 flex flex-col dark:text-black"
action={async (formData) => {
const { data, error } = await sendEmail(formData);
if (error) {
toast.error(error);
return;
}
toast.success("Email sent successfully!");
<motion.div
className="flex flex-col sm:flex-row items-center justify-center gap-2 px-4 text-lg font-medium"
initial={{ opacity: 0, y: 100 }}
animate={{ opacity: 1, y: 0 }}
transition={{
delay: 0.1,
}}
>
<input
className="h-14 px-4 rounded-lg borderBlack dark:bg-white dark:bg-opacity-80 dark:focus:bg-opacity-100 transition-all dark:outline-none"
name="senderEmail"
type="email"
required
maxLength={500}
placeholder="Your email"
/>
<textarea
className="h-52 my-3 rounded-lg borderBlack p-4 dark:bg-white dark:bg-opacity-80 dark:focus:bg-opacity-100 transition-all dark:outline-none"
name="message"
placeholder="Your message"
required
maxLength={5000}
/>
<SubmitBtn />
</form> */}
<a
className="bg-white p-4 text-gray-700 flex items-center gap-2 text-[1.35rem] rounded-full focus:scale-[1.15] hover:scale-[1.15] hover:text-gray-950 active:scale-105 transition cursor-pointer borderBlack dark:bg-white/10 dark:text-white/60"
href="mailto:leila.n.adams@gmail.com?subject=Portfolio Mail"
>
<LuMail />
</a>
<a
className="bg-white p-4 text-gray-700 hover:text-gray-950 flex items-center gap-2 rounded-full focus:scale-[1.15] hover:scale-[1.15] active:scale-105 transition cursor-pointer borderBlack dark:bg-white/10 dark:text-white/60"
href="https://www.linkedin.com/in/leilaadams/"
target="_blank"
>
<BsLinkedin />
</a>

<a
className="bg-white p-4 text-gray-700 flex items-center gap-2 text-[1.35rem] rounded-full focus:scale-[1.15] hover:scale-[1.15] hover:text-gray-950 active:scale-105 transition cursor-pointer borderBlack dark:bg-white/10 dark:text-white/60"
href="https://github.com/thatgirlcancode"
target="_blank"
>
<FaGithubSquare />
</a>
</motion.div>
</motion.section>
);
}
2 changes: 1 addition & 1 deletion components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Footer() {
</small>
<p className="text-xs">
Built with React 18 & Next.js 13, TypeScript, Tailwind CSS,
Framer Motion, React Email + Resend, & GitHub hosting
Framer Motion, & deployed with GitHub Actions.
</p>
</footer>
);
Expand Down
29 changes: 2 additions & 27 deletions components/intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Image from "next/image";
import React from "react";
import { motion } from "framer-motion";
import Link from "next/link";
import { BsArrowRight, BsLinkedin } from "react-icons/bs";
import { BsArrow90DegDown, BsArrow90DegLeft, BsArrowBarDown, BsArrowRight, BsLinkedin } from "react-icons/bs";
import { HiDownload } from "react-icons/hi";
import { FaGithubSquare } from "react-icons/fa";
import { useSectionInView } from "@/lib/hooks";
Expand Down Expand Up @@ -87,33 +87,8 @@ export default function Intro() {
}}
>
Contact me here{" "}
<BsArrowRight className="opacity-70 group-hover:translate-x-1 transition" />
<BsArrowBarDown className="opacity-70 group-hover:translate-x-1 transition" />
</Link>

{/* <a
className="group bg-white px-7 py-3 flex items-center gap-2 rounded-full outline-none focus:scale-110 hover:scale-110 active:scale-105 transition cursor-pointer borderBlack dark:bg-white/10"
href="/CV.pdf"
download
>
Download CV{" "}
<HiDownload className="opacity-60 group-hover:translate-y-1 transition" />
</a> */}

<a
className="bg-white p-4 text-gray-700 hover:text-gray-950 flex items-center gap-2 rounded-full focus:scale-[1.15] hover:scale-[1.15] active:scale-105 transition cursor-pointer borderBlack dark:bg-white/10 dark:text-white/60"
href="https://www.linkedin.com/in/leilaadams/"
target="_blank"
>
<BsLinkedin />
</a>

<a
className="bg-white p-4 text-gray-700 flex items-center gap-2 text-[1.35rem] rounded-full focus:scale-[1.15] hover:scale-[1.15] hover:text-gray-950 active:scale-105 transition cursor-pointer borderBlack dark:bg-white/10 dark:text-white/60"
href="https://github.com/thatgirlcancode"
target="_blank"
>
<FaGithubSquare />
</a>
</motion.div>
</section>
);
Expand Down

0 comments on commit dc78f58

Please sign in to comment.