From 40002db40f573dbd0afdf7d66773c68b0afe43c7 Mon Sep 17 00:00:00 2001 From: Paulo Massingue Date: Fri, 20 Nov 2026 11:44:28 +0200 Subject: [PATCH] ajuste em manifestacao de interesse organizacao --- resources/js/components/country-select.tsx | 3 + resources/js/pages/PortalInvestidor.tsx | 545 ++++++++++++--------- 2 files changed, 308 insertions(+), 240 deletions(-) diff --git a/resources/js/components/country-select.tsx b/resources/js/components/country-select.tsx index 50732e4d..5b0c344b 100644 --- a/resources/js/components/country-select.tsx +++ b/resources/js/components/country-select.tsx @@ -9,6 +9,7 @@ export default function CountrySelect({ label = 'País', required = false, error, + className, }: { countries: Country[]; value: string; @@ -19,6 +20,7 @@ export default function CountrySelect({ required?: boolean; allowLegacyValue?: boolean; error?: string; + className?: string; }) { return ( ); } diff --git a/resources/js/pages/PortalInvestidor.tsx b/resources/js/pages/PortalInvestidor.tsx index 908a138a..f87677c6 100644 --- a/resources/js/pages/PortalInvestidor.tsx +++ b/resources/js/pages/PortalInvestidor.tsx @@ -96,23 +96,31 @@ function QueryStatus({ function TopBar({ onNavigate, requestCount, + hideBrand = false, }: { onNavigate: (view: View) => void; requestCount: number; + hideBrand?: boolean; }) { return ( @@ -528,6 +538,9 @@ function OpportunityDetail({ ); } +const interestControlClass = + 'w-full rounded-xl border border-slate-300 bg-white px-3.5 py-3 text-sm text-slate-900 shadow-sm placeholder:text-slate-400 hover:border-slate-400 focus:border-[#ed1c24] focus:outline-none focus:ring-4 focus:ring-[#ed1c24]/10'; + function InterestForm({ preselected, onSubmitted, @@ -660,217 +673,260 @@ function InterestForm({ } return ( -
-

- Manifestar interesse -

-

- Preencha os dados abaixo para que a equipa do portal possa - analisar o seu interesse e entrar em contacto. -

- - {preselected && ( -
- Oportunidade seleccionada:{' '} - {preselected.title} ( - {preselected.reference}) -
- )} - -
- {submitError && ( -

- {submitError} +

+
+
+

+ Manifestar interesse +

+

+ Preencha os dados abaixo para que a equipa do portal + possa analisar o seu interesse e entrar em contacto.

+
+ + {preselected && ( +
+ Oportunidade seleccionada:{' '} + {preselected.title} ( + {preselected.reference}) +
)} -
- - update('name', e.target.value)} - /> - - - update('email', e.target.value)} - /> - - - - update('phone', e.target.value)} - /> - - - - - - - - update('country', value)} - required - allowLegacyValue - /> - - - - - update('declared_origin_country_code', value) - } - /> -

- País de onde apresenta este pedido. Pode ser - diferente do país do requerente. -

-
- - - - - - - - - - -