Skip to content

Commit

Permalink
feat(join): 🐛 larger stepper
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Jan 14, 2024
1 parent 26a580d commit ecda49e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion public/locales/en/getstarted.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"description": "using the Launcher"
},
"step2": {
"title": "Use the Ip {{ip}}",
"title": "Use the IP <b>{{ip}}</b>",
"description": "to connect to the server"
},
"step3": {
Expand Down
23 changes: 19 additions & 4 deletions src/pages/join/visit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import {
ActionIcon,
Button,
Center,
Code,
Container,
Grid,
Group,
rem,
Stack,
Stepper,
Text,
Title,
rem,
useMantineColorScheme,
useMantineTheme,
} from '@mantine/core';
Expand Down Expand Up @@ -207,7 +208,7 @@ const Visit: NextPage = ({ data }: any) => {
>
{t('visit.country.title', { country: selected.location })}
</h1>
<Stepper active={1} orientation="vertical" my="xl">
<Stepper active={1} orientation="vertical" my="xl" size="lg">
<Stepper.Step
label={t('visit.country.step0.title')}
description={t('visit.country.step0.description')}
Expand All @@ -220,14 +221,28 @@ const Visit: NextPage = ({ data }: any) => {
/>
{selected.type == 'standalone' ? (
<Stepper.Step
label={t('visit.country.step2.title', { ip: selected?.ip })}
label={
<div
dangerouslySetInnerHTML={{
__html: t('visit.country.step2.title', {
ip: selected?.ip,
}),
}}
/>
}
description={t('visit.country.step2.description', { ip: selected?.ip })}
icon={<IconServer style={{ width: rem(18), height: rem(18) }} />}
/>
) : (
<>
<Stepper.Step
label={t('visit.country.step2.title', { ip: 'buildtheearth.net' })}
label={
<div
dangerouslySetInnerHTML={{
__html: t('visit.country.step2.title', { ip: 'buildtheearth.net' }),
}}
/>
}
description={t('visit.country.step2.description', { ip: 'buildtheearth.net' })}
icon={<IconServer style={{ width: rem(18), height: rem(18) }} />}
/>
Expand Down

0 comments on commit ecda49e

Please sign in to comment.