Skip to content

Commit 09c3457

Browse files
committed
feat(copilot): flesh out mobile fallback with illustration and copilot link
Add the form-copilot illustration, reuse the desktop tagline, and link out to simplepdf.com/copilot so mobile visitors who cannot run the demo still understand what Copilot is and where to learn more. Headline + tagline are bumped one Tailwind step up for legibility.
1 parent 9062b12 commit 09c3457

24 files changed

Lines changed: 65 additions & 24 deletions

copilot/src/components/layout.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { CerfaDorModal } from './easter-eggs/cerfa_dor_modal'
88
import { FormPicker } from './form_picker'
99

1010
const CERFA_DOR_LOGO_URL = 'https://cdn.simplepdf.com/simple-pdf/assets/form-copilot/cerfa-dor.jpeg'
11+
const MOBILE_ILLUSTRATION_URL =
12+
'https://cdn.simplepdf.com/simple-pdf/assets/common/form-copilot-illustration.png'
1113

1214
const homeRoute = getRouteApi('/')
1315

@@ -20,6 +22,7 @@ type LayoutProps = {
2022

2123
export const Layout = ({ locale, currentFormId, editor, chat }: LayoutProps) => {
2224
const { t } = useTranslation()
25+
const learnMoreHref = buildSimplepdfUrl({ locale, path: '/copilot', query: { s: 'copilot' } })
2326
return (
2427
<div className="flex h-screen flex-col bg-slate-50">
2528
<Header locale={locale} currentFormId={currentFormId} />
@@ -33,7 +36,22 @@ export const Layout = ({ locale, currentFormId, editor, chat }: LayoutProps) =>
3336
</main>
3437
<div className="flex flex-1 items-center justify-center p-6 lg:hidden">
3538
<div className="flex w-full max-w-md flex-col items-center gap-6 text-center">
36-
<h1 className="text-lg font-semibold text-slate-900">{t('mobileFallback.headline')}</h1>
39+
<h1 className="text-2xl font-semibold text-slate-900">{t('mobileFallback.headline')}</h1>
40+
<img
41+
src={MOBILE_ILLUSTRATION_URL}
42+
alt=""
43+
aria-hidden="true"
44+
className="block h-auto w-full max-w-xs object-contain"
45+
/>
46+
<p className="max-w-[300px] text-base font-medium text-slate-900">{t('header.tagline')}</p>
47+
<a
48+
href={learnMoreHref}
49+
target="_blank"
50+
rel="noreferrer"
51+
className="text-sm font-medium text-sky-700 hover:text-sky-800 underline underline-offset-4"
52+
>
53+
{t('mobileFallback.learnMore')}
54+
</a>
3755
</div>
3856
</div>
3957
</div>

copilot/src/locales/ar.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"poweredBy": "مدعوم من SimplePDF"
88
},
99
"mobileFallback": {
10-
"headline": "SimplePDF Copilot يُستخدم بأفضل شكل على سطح المكتب"
10+
"headline": "SimplePDF Copilot يُستخدم بأفضل شكل على سطح المكتب",
11+
"learnMore": "تعرّف على المزيد حول SimplePDF Copilot"
1112
},
1213
"infoModal": {
1314
"title": "تعبئة نماذج بمساعدة الذكاء الاصطناعي، مع إشراف بشري",

copilot/src/locales/cs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"poweredBy": "Pohoní SimplePDF"
88
},
99
"mobileFallback": {
10-
"headline": "SimplePDF Copilot si nejlépe vychutnáte na počítači"
10+
"headline": "SimplePDF Copilot si nejlépe vychutnáte na počítači",
11+
"learnMore": "Zjistěte více o SimplePDF Copilot"
1112
},
1213
"infoModal": {
1314
"title": "Vyplňování formulářů s podporou AI, s člověkem ve smyčce",

copilot/src/locales/da.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"poweredBy": "Drevet af SimplePDF"
88
},
99
"mobileFallback": {
10-
"headline": "SimplePDF Copilot opleves bedst på skrivebordet"
10+
"headline": "SimplePDF Copilot opleves bedst på skrivebordet",
11+
"learnMore": "Læs mere om SimplePDF Copilot"
1112
},
1213
"infoModal": {
1314
"title": "AI-assisteret udfyldning af formularer, med et menneske i løkken",

copilot/src/locales/de.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"poweredBy": "Unterstützt von SimplePDF"
88
},
99
"mobileFallback": {
10-
"headline": "SimplePDF Copilot erleben Sie am besten auf dem Desktop"
10+
"headline": "SimplePDF Copilot erleben Sie am besten auf dem Desktop",
11+
"learnMore": "Mehr über SimplePDF Copilot erfahren"
1112
},
1213
"infoModal": {
1314
"title": "KI-gestütztes Ausfüllen von Formularen, mit einem Menschen in der Schleife",

copilot/src/locales/el.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"poweredBy": "Με την υποστήριξη του SimplePDF"
88
},
99
"mobileFallback": {
10-
"headline": "Το SimplePDF Copilot αποδίδει καλύτερα σε υπολογιστή"
10+
"headline": "Το SimplePDF Copilot αποδίδει καλύτερα σε υπολογιστή",
11+
"learnMore": "Μάθετε περισσότερα για το SimplePDF Copilot"
1112
},
1213
"infoModal": {
1314
"title": "Συμπλήρωση φορμών με υποστήριξη AI, με άνθρωπο στη διαδικασία",

copilot/src/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"poweredBy": "Powered by SimplePDF"
88
},
99
"mobileFallback": {
10-
"headline": "SimplePDF Copilot is best experienced on desktop"
10+
"headline": "SimplePDF Copilot is best experienced on desktop",
11+
"learnMore": "Learn more about SimplePDF Copilot"
1112
},
1213
"infoModal": {
1314
"title": "AI-assisted form filling, with a human in the loop",

copilot/src/locales/es.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"poweredBy": "Con tecnología de SimplePDF"
88
},
99
"mobileFallback": {
10-
"headline": "SimplePDF Copilot se disfruta mejor en un ordenador"
10+
"headline": "SimplePDF Copilot se disfruta mejor en un ordenador",
11+
"learnMore": "Más información sobre SimplePDF Copilot"
1112
},
1213
"infoModal": {
1314
"title": "Completado de formularios asistido por IA, con un humano en el proceso",

copilot/src/locales/et.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"poweredBy": "Jooksutab SimplePDF"
88
},
99
"mobileFallback": {
10-
"headline": "SimplePDF Copilot töötab kõige paremini arvutis"
10+
"headline": "SimplePDF Copilot töötab kõige paremini arvutis",
11+
"learnMore": "Loe lähemalt SimplePDF Copiloti kohta"
1112
},
1213
"infoModal": {
1314
"title": "Tehisintellekti abil vormide täitmine, inimene silmusesse",

copilot/src/locales/fi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"poweredBy": "Toteuttaja: SimplePDF"
88
},
99
"mobileFallback": {
10-
"headline": "SimplePDF Copilot toimii parhaiten tietokoneella"
10+
"headline": "SimplePDF Copilot toimii parhaiten tietokoneella",
11+
"learnMore": "Lue lisää SimplePDF Copilotista"
1112
},
1213
"infoModal": {
1314
"title": "Tekoälyavusteinen lomakkeiden täyttö, ihminen mukana",

0 commit comments

Comments
 (0)