diff --git a/landing/src/App.jsx b/landing/src/App.jsx index db346f1..03d72e5 100644 --- a/landing/src/App.jsx +++ b/landing/src/App.jsx @@ -894,7 +894,6 @@ const readSource = () => new URLSearchParams(window.location.search).get('source export default function App({ locale = 'fr' }) { const t = COPY[locale] const [headerElevated, setHeaderElevated] = useState(false) - const [sharedReturnUrl, setSharedReturnUrl] = useState('') const scrollMilestonesRef = useRef({ half: false, full: false }) // La page est prérendue à la compilation, sans URL : le premier rendu est toujours la variante @@ -914,28 +913,6 @@ export default function App({ locale = 'fr' }) { analytics.capture('page_viewed', buildEventProps()) }, []) // eslint-disable-line react-hooks/exhaustive-deps - useEffect(() => { - if (source !== 'app-shared') { - setSharedReturnUrl('') - return - } - - const returnUrlFromQuery = new URLSearchParams(window.location.search).get('return_url') || '' - - try { - if (returnUrlFromQuery) { - sessionStorage.setItem('parenthese_return_url', returnUrlFromQuery) - setSharedReturnUrl(returnUrlFromQuery) - return - } - - const fromSession = sessionStorage.getItem('parenthese_return_url') || '' - setSharedReturnUrl(fromSession) - } catch { - setSharedReturnUrl(returnUrlFromQuery) - } - }, [source]) - // Bordure du header au défilement + paliers de scroll pour PostHog useEffect(() => { const onScroll = () => { @@ -1112,9 +1089,6 @@ export default function App({ locale = 'fr' }) {
{t.final.lede}
- {source === 'app-shared' && sharedReturnUrl && ( - {t.final.back} - )} diff --git a/landing/src/i18n.js b/landing/src/i18n.js index bd81292..d426bbb 100644 --- a/landing/src/i18n.js +++ b/landing/src/i18n.js @@ -111,7 +111,6 @@ export const COPY = { final: { title: ['Commencez par ', 'un seul visage'], lede: "Le vôtre, ou celui de quelqu'un que vous aimeriez garder.", - back: "Ou retourner explorer l'arbre partagé", }, footer: { label: 'Pied de page', @@ -220,7 +219,6 @@ export const COPY = { final: { title: ['Start with ', 'a single face'], lede: "Yours, or the face of someone you'd like to keep close.", - back: 'Or go back to the shared tree', }, footer: { label: 'Footer', diff --git a/landing/src/index.css b/landing/src/index.css index f9a3a92..ed9e8ae 100644 --- a/landing/src/index.css +++ b/landing/src/index.css @@ -191,7 +191,6 @@ html.logo-intro .lk-nom { animation: lk-nom 700ms var(--ease-out) 380ms both; } /* fin */ .final { background: var(--peche-50); text-align: center; padding: clamp(64px, 9vw, 112px) var(--gut); } .final .wrap { display: grid; justify-items: center; gap: 22px; } -.final .back { font: 500 14px var(--sans); color: var(--encre2); } .foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 28px; font: 400 13px var(--sans); color: var(--doux); } .foot nav { display: flex; gap: 18px; flex-wrap: wrap; }