From 8745c486575c7ba28137ae2ccf9cfaaad9398c52 Mon Sep 17 00:00:00 2001 From: B SIMAK AHMED <1NZ24CS030@newhorizonindia.edu> Date: Sat, 26 Sep 2026 22:52:55 +0530 Subject: [PATCH 1/3] Add resume access instructions page --- src/routes/resume-access.tsx | 74 ++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 src/routes/resume-access.tsx diff --git a/src/routes/resume-access.tsx b/src/routes/resume-access.tsx new file mode 100644 index 0000000..384a91b --- /dev/null +++ b/src/routes/resume-access.tsx @@ -0,0 +1,74 @@ +import { createFileRoute } from "@tanstack/react-router"; +import { useQuery } from "@tanstack/react-query"; +import { ArrowRight, FileText, ShieldCheck } from "lucide-react"; +import { SiteLayout } from "@/components/SiteLayout"; +import { Button } from "@/components/ui/button"; +import { supabase } from "@/integrations/supabase/client"; + +const SITE_URL = "https://codeforgedev.vercel.app"; +const OG_IMAGE = "https://codeforgedev.vercel.app/og-image.png"; + +export const Route = createFileRoute("/resume-access")({ + head: () => ({ + meta: [ + { title: "Resume Access Instructions — CodeForge" }, + { name: "description", content: "Instructions for requesting view-only access to the CodeForge resume." }, + { property: "og:title", content: "Resume Access Instructions — CodeForge" }, + { property: "og:url", content: SITE_URL + "/resume-access" }, + { property: "og:image", content: OG_IMAGE }, + ], + links: [{ rel: "canonical", href: SITE_URL + "/resume-access" }], + }), + component: ResumeAccessPage, +}); + +function ResumeAccessPage() { + const settings = useQuery({ + queryKey: ["site_settings"], + queryFn: async () => { + const { data, error } = await supabase.from("site_settings").select("key,value"); + if (error) throw error; + return Object.fromEntries((data ?? []).map((item) => [item.key, item.value ?? ""])); + }, + }); + + const resumeUrl = settings.data?.resume_url; + + return ( + +
+
+
+ +
+

Access My Resume

+

+ Please sign in to your Google Drive to request access to my resume. +

+
+
+ + Important Instructions +
+
    +
  • Please select Viewer when requesting access.
  • +
  • Editor and Commenter access requests will not be approved.
  • +
  • Access will be granted only with Viewer permissions.
  • +
  • If you're not signed in to Google, please sign in when prompted.
  • +
+
+ + {!resumeUrl && ( +

+ Resume link is currently unavailable. Please try again later. +

+ )} +
+
+
+ ); +} From 7a41ab3caa0cfc271b0a2a31529ef716bbce56a3 Mon Sep 17 00:00:00 2001 From: B SIMAK AHMED <1NZ24CS030@newhorizonindia.edu> Date: Sat, 26 Sep 2026 22:53:00 +0530 Subject: [PATCH 2/3] Route resume button through access instructions --- src/components/AboutPage.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/AboutPage.tsx b/src/components/AboutPage.tsx index 33313fe..6acbc8e 100644 --- a/src/components/AboutPage.tsx +++ b/src/components/AboutPage.tsx @@ -5,7 +5,6 @@ import { GraduationCap, Sparkles, Code2, - FileText, Github, Linkedin, Mail, @@ -291,10 +290,10 @@ export function AboutPage() { asChild className="rounded-xl bg-gradient-to-r from-violet to-electric text-white" > - + View Resume - +