Skip to content

Commit

Permalink
add consultation booking link (#101)
Browse files Browse the repository at this point in the history
* add consultation booking link

* update CTAs to be more mobile friendly
  • Loading branch information
UmairJibran authored Oct 4, 2024
1 parent 2522b7e commit 8692572
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
16 changes: 13 additions & 3 deletions src/components/CallToAction.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
import { launchExternalUrl } from "@/utils";
import { Button } from "antd";

import profile from "@/data/profile.json";

export default function CallToAction() {
return (
<>
<div className="flex flex-col md:flex-row gap-2 mx-auto justify-center">
<Button
type="text"
size="large"
className="font-mono bg-blue-700 text-white text-xl"
onClick={() => launchExternalUrl(profile.consultationLink)}
>
Book Consultation 📅
</Button>
<Button
type="text"
size="large"
className="font-mono bg-blue-700 text-white text-xl"
onClick={() => launchExternalUrl("mailto:[email protected]")}
onClick={() => launchExternalUrl(`mailto:${profile.email}`)}
>
Hire Me 🥳
</Button>
</>
</div>
);
}
9 changes: 7 additions & 2 deletions src/components/Greetings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
import Image from "next/image";

import Intro from "@/components/Intro";
import CallToAction from "@/components/CallToAction";

import "@/styles/greetings.scss";

import { image } from "@/data/profile.json";

export default function Greetings() {
return (
<>
<div>
<div
id="greeting"
className="flex flex-col-reverse w-full min-h-screen text-start items-center m-auto md:flex-row"
Expand All @@ -23,6 +25,9 @@ export default function Greetings() {
height={450}
/>
</div>
</>
<div className="w-full mt-4 lg:mt-0">
<CallToAction />
</div>
</div>
);
}
4 changes: 0 additions & 4 deletions src/components/Intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import parse from "html-react-parser";
import { Sacramento } from "next/font/google";

import SocialStrip from "@/components/SocialStrip";
import CallToAction from "@/components/CallToAction";

const sacramento = Sacramento({
subsets: ["latin"],
Expand All @@ -22,9 +21,6 @@ export default function Greetings() {
<p className="text-2xl font-black">{profile.subTitle}</p>
<p className="font-inconsolata text-lg">{parse(profile.extraInfo)}</p>
<SocialStrip />
<div className="justify-center w-full flex ml-0: md:ml-28">
<CallToAction />
</div>
</div>
</>
);
Expand Down
3 changes: 2 additions & 1 deletion src/data/profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@
"phone": "00923120919647",
"location": "Peshawar, Pakistan",
"resume": "/assets/docs/resume.pdf",
"image": "/assets/gifs/cat-programmer.gif"
"image": "/assets/gifs/cat-programmer.gif",
"consultationLink": "https://calendar.app.google/EQtKyZY3TkLiJ6ze7"
}

0 comments on commit 8692572

Please sign in to comment.