From 524bba282ff51d64e7550e267b1ac0944305b459 Mon Sep 17 00:00:00 2001 From: Sami Lazreg Date: Thu, 22 Aug 2024 14:26:13 +0200 Subject: [PATCH] Perfect (#153) * Perfect * Alexify alignment :D --- web/public/index.html | 2 +- .../HomePage/ContactSection/CampaignContact.tsx | 16 +++++++++++++--- .../HomePage/ContactSection/styles.css | 1 + web/src/pages/_app.tsx | 4 ++-- web/src/pages/kampanjer/selskap/index.tsx | 12 +++++------- web/src/pages/kampanjer/startup/index.tsx | 10 +++++----- 6 files changed, 27 insertions(+), 18 deletions(-) diff --git a/web/public/index.html b/web/public/index.html index 590097f..fdb50db 100644 --- a/web/public/index.html +++ b/web/public/index.html @@ -3,7 +3,7 @@ - + { }); } + const handleFocus = (event) => { + const element = event.target; + setTimeout(() => { + element.scrollIntoView({ behavior: 'auto', block: 'center', inline: 'nearest' }); + }, 50); + }; + useEffect(() => { if (!hasMountedForm) { mountFormDispatcher(); @@ -55,14 +62,15 @@ const CampaignContact = ({ subject }: Props) => { className={dispatchSuccess ? 'hidden' : 'flex lg:flex-row flex-col items-center justify-center gap-10 w-full'} >
- - - + + +
{
{
- + KodeWorks @@ -116,7 +116,7 @@ function Main(): JSX.Element {