mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
feat: simplify hero section buttons and update call-to-action text
This commit is contained in:
@@ -315,43 +315,18 @@ function Hero({ primaryHref, isAuthed }: { primaryHref: string; isAuthed: boolea
|
||||
{t('landing.hero.description')}
|
||||
</Text>
|
||||
|
||||
<Group gap="md" mt="sm" justify="center">
|
||||
{isAuthed ? (
|
||||
<Group justify="center">
|
||||
<Button
|
||||
component={Link}
|
||||
to={primaryHref}
|
||||
size="lg"
|
||||
variant="white"
|
||||
color="dark"
|
||||
style={{ boxShadow: '0 8px 24px rgba(0,0,0,0.18)' }}
|
||||
>
|
||||
{t('landing.auth.dashboard')}
|
||||
</Button>
|
||||
) : (
|
||||
<>
|
||||
<Button
|
||||
component={Link}
|
||||
to="/signup"
|
||||
to={isAuthed ? primaryHref : '/signup'}
|
||||
size="lg"
|
||||
variant="white"
|
||||
color="dark"
|
||||
leftSection={<IconShip size={20} />}
|
||||
style={{ boxShadow: '0 8px 24px rgba(0,0,0,0.18)' }}
|
||||
>
|
||||
{t('landing.cta.iAmSeafarer')}
|
||||
{isAuthed ? t('landing.auth.dashboard') : t('landing.cta.getStarted')}
|
||||
</Button>
|
||||
<Button
|
||||
component={Link}
|
||||
to="/signup"
|
||||
size="lg"
|
||||
variant="outline"
|
||||
color="white"
|
||||
leftSection={<IconAnchor size={20} />}
|
||||
>
|
||||
{t('landing.cta.iAmVesselOwner')}
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
</Group>
|
||||
|
||||
<Group gap="xs" mt="xl" justify="center" wrap="wrap">
|
||||
|
||||
@@ -51,8 +51,7 @@ export const landingEn = {
|
||||
},
|
||||
|
||||
cta: {
|
||||
iAmSeafarer: "I'm a Seafarer",
|
||||
iAmVesselOwner: "I'm a Vessel Owner",
|
||||
getStarted: 'Get Started',
|
||||
},
|
||||
|
||||
quickAccess: {
|
||||
@@ -239,8 +238,7 @@ export const landingAm: LandingCopy = {
|
||||
},
|
||||
|
||||
cta: {
|
||||
iAmSeafarer: 'መርከበኛ ነኝ',
|
||||
iAmVesselOwner: 'የመርከብ ባለቤት ነኝ',
|
||||
getStarted: 'ይጀምሩ',
|
||||
},
|
||||
|
||||
quickAccess: {
|
||||
|
||||
Reference in New Issue
Block a user