Skip to content

Commit 577a7a2

Browse files
authored
fix(landing): inset careers row hover, drop trusted-by section, gate contact submit (#5380)
1 parent b4b666b commit 577a7a2

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

apps/sim/app/(landing)/careers/careers.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
JobGroups,
1010
} from '@/app/(landing)/careers/components/job-board'
1111
import { careersSearchParamsCache } from '@/app/(landing)/careers/search-params'
12-
import { TrustedBy } from '@/app/(landing)/components/trusted-by'
1312

1413
interface CareersProps {
1514
searchParams: Promise<SearchParams>
@@ -87,8 +86,6 @@ export default async function Careers({ searchParams }: CareersProps) {
8786
>
8887
<JobBoard postings={postings} />
8988
</Suspense>
90-
91-
<TrustedBy className='pt-6' />
9289
</section>
9390
</main>
9491
)

apps/sim/app/(landing)/careers/components/job-board/job-groups.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ function JobRow({ posting }: JobRowProps) {
8383
target='_blank'
8484
rel='noopener noreferrer'
8585
className={cn(
86-
'group flex items-center justify-between gap-6 border-[var(--border)] border-t py-5',
87-
'transition-colors hover:bg-[var(--surface-hover)]'
86+
'-mx-3 group flex items-center justify-between gap-6 rounded-lg border-[var(--border)]',
87+
'border-t px-3 py-5 transition-colors hover:bg-[var(--surface-hover)]'
8888
)}
8989
>
9090
<div className='flex min-w-0 flex-col gap-1.5'>

apps/sim/app/(landing)/contact/components/contact-form/contact-form.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from '@/lib/api/contracts/contact'
1313
import { flattenFieldErrors } from '@/lib/api/contracts/primitives'
1414
import { getEnv } from '@/lib/core/config/env'
15+
import { quickValidateEmail } from '@/lib/messaging/email/validation'
1516
import { captureClientEvent } from '@/lib/posthog/client'
1617
import { useSubmitContact } from '@/hooks/queries/contact'
1718

@@ -175,6 +176,13 @@ export function ContactForm() {
175176
)
176177
}
177178

179+
const canSubmit =
180+
quickValidateEmail(form.email.trim()).isValid &&
181+
form.name.trim().length > 0 &&
182+
form.topic.length > 0 &&
183+
form.subject.trim().length > 0 &&
184+
form.message.trim().length > 0
185+
178186
const isBusy = contactMutation.isPending || isSubmitting
179187

180188
const submitError = contactMutation.isError
@@ -336,7 +344,7 @@ export function ContactForm() {
336344
variant='primary'
337345
flush
338346
fullWidth
339-
disabled={isBusy}
347+
disabled={isBusy || !canSubmit}
340348
className='mt-1 justify-center [&>span]:flex-none'
341349
>
342350
{isBusy ? 'Sending…' : 'Send message'}

0 commit comments

Comments
 (0)