From e24cf8d0be12b126d1aae4e1778ba38e78b9f316 Mon Sep 17 00:00:00 2001 From: ssbg04 Date: Thu, 11 Jun 2026 16:13:29 +0800 Subject: [PATCH] fix: recaptcha badge into inline, CG logo main page with smooth scroll --- public/file.svg | 1 - public/globe.svg | 1 - src/app/(main)/blog/page.tsx | 3 +- src/app/(main)/certifications/page.tsx | 3 +- src/app/(main)/page.tsx | 20 +++++++-- src/app/(main)/projects/page.tsx | 3 +- src/app/css/modules/_responsive.css | 9 ---- src/app/css/modules/_utilities.css | 16 +++----- src/app/sitemap.ts | 5 ++- src/components/FloatingBackButton.tsx | 57 -------------------------- src/components/Navbar.tsx | 7 +++- 11 files changed, 34 insertions(+), 91 deletions(-) delete mode 100644 public/file.svg delete mode 100644 public/globe.svg delete mode 100644 src/components/FloatingBackButton.tsx diff --git a/public/file.svg b/public/file.svg deleted file mode 100644 index 004145c..0000000 --- a/public/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/globe.svg b/public/globe.svg deleted file mode 100644 index 567f17b..0000000 --- a/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/app/(main)/blog/page.tsx b/src/app/(main)/blog/page.tsx index 1653ffc..96135b4 100644 --- a/src/app/(main)/blog/page.tsx +++ b/src/app/(main)/blog/page.tsx @@ -1,6 +1,6 @@ import { supabase } from "@/lib/supabase"; import ScrollReveal from "@/components/ScrollReveal"; -import FloatingBackButton from "@/components/FloatingBackButton"; + export const metadata = { title: "Blog | Cris Charles Garcia", @@ -14,7 +14,6 @@ export default async function BlogPage() { return ( <> -
Blog diff --git a/src/app/(main)/certifications/page.tsx b/src/app/(main)/certifications/page.tsx index df044d8..70839c4 100644 --- a/src/app/(main)/certifications/page.tsx +++ b/src/app/(main)/certifications/page.tsx @@ -1,6 +1,6 @@ import { supabase } from "@/lib/supabase"; import ScrollReveal from "@/components/ScrollReveal"; -import FloatingBackButton from "@/components/FloatingBackButton"; +import { CertCard } from "@/components/ClientCardModals"; export const metadata = { title: "All Certifications | Cris Charles Garcia", @@ -14,7 +14,6 @@ export default async function CertificationsPage() { return ( <> -
Certifications diff --git a/src/app/(main)/page.tsx b/src/app/(main)/page.tsx index a0bd6c9..7081224 100644 --- a/src/app/(main)/page.tsx +++ b/src/app/(main)/page.tsx @@ -1,6 +1,7 @@ import { supabase } from "@/lib/supabase"; import ScrollReveal from "@/components/ScrollReveal"; import Link from "next/link"; +import Script from "next/script"; import { ProjectCard, ArticleCard, CertCard } from "@/components/ClientCardModals"; export const dynamic = 'force-dynamic'; @@ -252,11 +253,13 @@ export default async function Home() { +
{/* reCAPTCHA v3 Enterprise — invisible */} - - diff --git a/src/app/(main)/projects/page.tsx b/src/app/(main)/projects/page.tsx index 2956731..eea89b0 100644 --- a/src/app/(main)/projects/page.tsx +++ b/src/app/(main)/projects/page.tsx @@ -1,6 +1,6 @@ import { supabase } from "@/lib/supabase"; import ScrollReveal from "@/components/ScrollReveal"; -import FloatingBackButton from "@/components/FloatingBackButton"; +import { ProjectCard } from "@/components/ClientCardModals"; export const metadata = { title: "All Projects | Cris Charles Garcia", @@ -14,7 +14,6 @@ export default async function ProjectsPage() { return ( <> -
Projects diff --git a/src/app/css/modules/_responsive.css b/src/app/css/modules/_responsive.css index 6d96c0b..44057ea 100644 --- a/src/app/css/modules/_responsive.css +++ b/src/app/css/modules/_responsive.css @@ -247,12 +247,3 @@ padding: 16px 18px; } } -/* Responsive floating reCAPTCHA badge */ -@media (max-width: 768px) { - .grecaptcha-badge { - bottom: 12px !important; - left: 12px !important; - transform: scale(0.8) !important; - transform-origin: bottom left !important; - } -} diff --git a/src/app/css/modules/_utilities.css b/src/app/css/modules/_utilities.css index b78fc23..e5fd7bc 100644 --- a/src/app/css/modules/_utilities.css +++ b/src/app/css/modules/_utilities.css @@ -109,16 +109,10 @@ justify-content: center; } -/* --- Custom reCAPTCHA Badge Styling (Icon Only) --- */ +/* --- Custom reCAPTCHA Badge Styling (Inline) --- */ .grecaptcha-badge { - left: 24px !important; - right: auto !important; - bottom: 24px !important; - z-index: 2 !important; - width: 74px !important; - overflow: hidden !important; - transition: none !important; -} -.grecaptcha-badge:hover { - width: 74px !important; /* prevent expansion */ + position: static !important; + margin-top: 15px !important; + box-shadow: none !important; + display: block !important; } \ No newline at end of file diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index ebbfa71..6a3bff5 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -1,9 +1,10 @@ import { MetadataRoute } from 'next'; export default function sitemap(): MetadataRoute.Sitemap { - const baseUrl = 'https://crischarles.vercel.app'; + // const baseUrl = 'https://crischarles.vercel.app'; + const baseUrl = 'http://localhost:3000'; const lastMod = '2026-06-11T07:44:07+00:00'; - + return [ { url: baseUrl, diff --git a/src/components/FloatingBackButton.tsx b/src/components/FloatingBackButton.tsx deleted file mode 100644 index c5c113b..0000000 --- a/src/components/FloatingBackButton.tsx +++ /dev/null @@ -1,57 +0,0 @@ -"use client"; - -import { useRouter } from "next/navigation"; - -export default function FloatingBackButton() { - const router = useRouter(); - - return ( - - ); -} diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 3f08aa3..99b8294 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -63,7 +63,12 @@ export default function Navbar() {