diff --git a/src/app/sonuc/page.tsx b/src/app/sonuc/page.tsx index 10a57a8..a567657 100644 --- a/src/app/sonuc/page.tsx +++ b/src/app/sonuc/page.tsx @@ -16,6 +16,7 @@ import { LISTE_SAYI_CEREZ_ADI } from "@/features/liste/liste-dogrula"; import { TadimlikBolumu } from "@/features/rapor/components/tadimlik-bolumu"; import { SonucSihirbazi } from "@/features/sihirbaz/components/sihirbaz-bolumu"; import { SiraGerekli } from "@/features/sihirbaz/components/sira-gerekli"; +import { SonucKaydetCubugu } from "@/features/liste/components/sonuc-kaydet-cubugu"; import { SiteFooter } from "@/components/site-footer"; import { Skeleton } from "@/components/ui/skeleton"; @@ -183,6 +184,9 @@ export default function SonucPage({

+ {/* Girişsiz + telefonda sabit "kaydet" çubuğu; footer'ın altına + kendi boyu kadar boşluk bırakır. */} + ); })} diff --git a/src/features/liste/components/sonuc-kaydet-cubugu.tsx b/src/features/liste/components/sonuc-kaydet-cubugu.tsx new file mode 100644 index 0000000..5d1a277 --- /dev/null +++ b/src/features/liste/components/sonuc-kaydet-cubugu.tsx @@ -0,0 +1,85 @@ +"use client"; + +// /sonuc'ta girişsiz kullanıcıya telefonda sabit alt çubuk (BACKLOG #4): +// sayfadaki giriş paneli görünse de tıklanmıyordu, telefonda /sonuc'tan +// çıkış hızlıydı; kaydetme kapısı parmağın altında dursun. Yalnız `md` +// altında ve oturum sinyali "girişsiz" dediğinde görünür (sinyal gelmeden +// gizli: girişli kullanıcıya bir an bile çıkmaz). +// +// Tık yeni bir giriş akışı açmaz: diğer giriş CTA'ları gibi /giris'e +// (bu sayfaya dönen callback'le) gider. Google düğmesi orada ilk sıradadır +// ve KVKK aydınlatma/koşullar notu o sayfada; çubuktan doğrudan Google'a +// atlamak o notu atlatırdı. +// +// Çubuk içerik akışında kendi boyu kadar boşluk bırakır (ara parça), böylece +// sayfanın en altı (dipnot, footer) çubuğun altında kalmaz. + +import Link from "next/link"; +import { motion, useReducedMotion } from "motion/react"; +import { ArrowRight } from "lucide-react"; +import { Button } from "@/components/ui/button"; +import { SayiRulo } from "@/components/ui/sayi-rulo"; +import { ViewportPortal } from "@/components/viewport-portal"; +import { olay } from "@/lib/analitik"; +import { YAY } from "@/lib/hareket"; +import { useManuelListe } from "../liste-store"; +import { useOturumDurumu } from "../liste-oturum-sinyali"; +import { useGirisUrl } from "../liste-giris-url"; + +export function SonucKaydetCubugu() { + const girisli = useOturumDurumu(); + const liste = useManuelListe(); + const girisUrl = useGirisUrl(); + const azalt = useReducedMotion(); + + if (girisli !== false) return null; + + return ( + <> + {/* Ara parça: çubuğun yüksekliği (p-2 + h-12 + alt boşluk) + güvenli alan */} +
+ +
+ +

+ {liste.length > 0 ? ( + <> + + seçimin + {" "} + yalnız bu tarayıcıda + + ) : ( + <> + + Seçimlerin + {" "} + yalnız bu tarayıcıda + + )} +

+ +
+
+
+ + ); +}