fix: remove frame in onboarding UI

This commit is contained in:
Liyang Zhu
2022-06-06 15:12:48 +08:00
parent befe35f3d6
commit b490a864f1
2 changed files with 7 additions and 26 deletions
+7 -11
View File
@@ -22,17 +22,13 @@ export default function OnboardingPage() {
<title>Rustchat Setup</title> <title>Rustchat Setup</title>
</Helmet> </Helmet>
<StyledOnboardingPage> <StyledOnboardingPage>
<div className="horizontalBox"> {step === 0 && <WelcomeStep {...props} />}
<div className="verticalBox"> {step === 1 && <ServerNameStep {...props} />}
{step === 0 && <WelcomeStep {...props} />} {step === 2 && <AdminCredentialsStep {...props} />}
{step === 1 && <ServerNameStep {...props} />} {step === 3 && <InviteRuleStep {...props} />}
{step === 2 && <AdminCredentialsStep {...props} />} {step === 4 && <InviteLinkStep {...props} />}
{step === 3 && <InviteRuleStep {...props} />} {step === 5 && <CompletedStep {...props} />}
{step === 4 && <InviteLinkStep {...props} />} {step === 6 && <Navigate replace to="/" />}
{step === 5 && <CompletedStep {...props} />}
{step === 6 && <Navigate replace to="/" />}
</div>
</div>
</StyledOnboardingPage> </StyledOnboardingPage>
</> </>
); );
-15
View File
@@ -4,21 +4,6 @@ const StyledOnboardingPage = styled.div`
height: 100vh; height: 100vh;
overflow-y: auto; overflow-y: auto;
> .horizontalBox {
width: calc(100vw - 40px);
max-width: 860px;
margin: 0 auto;
padding: max(50vh - 340px, 50px) 0;
> .verticalBox {
position: relative;
height: 680px;
border: 1px solid #f2f4f7;
border-radius: 12px;
box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
}
}
// shared with child components // shared with child components
.primaryText, .primaryText,
.secondaryText { .secondaryText {