mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-28 22:56:06 +00:00
Theme skip setup card
This commit is contained in:
parent
6a81b30585
commit
de5d47a730
|
@ -19,7 +19,7 @@ export function useModal(id: string) {
|
||||||
export function ModalCard(props: { children?: ReactNode }) {
|
export function ModalCard(props: { children?: ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<div className="w-full max-w-[30rem] m-4">
|
<div className="w-full max-w-[30rem] m-4">
|
||||||
<div className="w-full bg-dropdown-background rounded-xl p-8 pointer-events-auto">
|
<div className="w-full bg-modal-background rounded-xl p-8 pointer-events-auto">
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -31,18 +31,20 @@ export function OnboardingPage() {
|
||||||
<PageTitle subpage k="global.pages.onboarding" />
|
<PageTitle subpage k="global.pages.onboarding" />
|
||||||
<Modal id={skipModal.id}>
|
<Modal id={skipModal.id}>
|
||||||
<ModalCard>
|
<ModalCard>
|
||||||
<ModalCard>
|
<Heading1 className="!mt-0 !mb-4 !text-2xl">
|
||||||
<Heading1 className="!mt-0">
|
|
||||||
{t("onboarding.defaultConfirm.title")}
|
{t("onboarding.defaultConfirm.title")}
|
||||||
</Heading1>
|
</Heading1>
|
||||||
<Paragraph>{t("onboarding.defaultConfirm.description")}</Paragraph>
|
<Paragraph className="!mt-1 !mb-12">
|
||||||
|
{t("onboarding.defaultConfirm.description")}
|
||||||
|
</Paragraph>
|
||||||
|
<div className="flex items-end justify-between">
|
||||||
<Button theme="secondary" onClick={skipModal.hide}>
|
<Button theme="secondary" onClick={skipModal.hide}>
|
||||||
{t("onboarding.defaultConfirm.cancel")}
|
{t("onboarding.defaultConfirm.cancel")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button theme="danger" onClick={() => completeAndRedirect()}>
|
<Button theme="purple" onClick={() => completeAndRedirect()}>
|
||||||
{t("onboarding.defaultConfirm.confirm")}
|
{t("onboarding.defaultConfirm.confirm")}
|
||||||
</Button>
|
</Button>
|
||||||
</ModalCard>
|
</div>
|
||||||
</ModalCard>
|
</ModalCard>
|
||||||
</Modal>
|
</Modal>
|
||||||
<CenterContainer>
|
<CenterContainer>
|
||||||
|
|
|
@ -138,6 +138,11 @@ export const defaultTheme = {
|
||||||
accentB: tokens.blue.c500,
|
accentB: tokens.blue.c500,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Modals
|
||||||
|
modal: {
|
||||||
|
background: tokens.shade.c800,
|
||||||
|
},
|
||||||
|
|
||||||
// typography
|
// typography
|
||||||
type: {
|
type: {
|
||||||
logo: tokens.purple.c100,
|
logo: tokens.purple.c100,
|
||||||
|
|
|
@ -95,6 +95,10 @@ export default createTheme({
|
||||||
accentB: tokens.blue.c500
|
accentB: tokens.blue.c500
|
||||||
},
|
},
|
||||||
|
|
||||||
|
modal: {
|
||||||
|
background: tokens.shade.c800,
|
||||||
|
},
|
||||||
|
|
||||||
type: {
|
type: {
|
||||||
logo: tokens.purple.c100,
|
logo: tokens.purple.c100,
|
||||||
text: tokens.shade.c50,
|
text: tokens.shade.c50,
|
||||||
|
|
|
@ -95,6 +95,10 @@ export default createTheme({
|
||||||
accentB: tokens.blue.c500
|
accentB: tokens.blue.c500
|
||||||
},
|
},
|
||||||
|
|
||||||
|
modal: {
|
||||||
|
background: tokens.shade.c800,
|
||||||
|
},
|
||||||
|
|
||||||
type: {
|
type: {
|
||||||
logo: tokens.purple.c100,
|
logo: tokens.purple.c100,
|
||||||
text: tokens.shade.c50,
|
text: tokens.shade.c50,
|
||||||
|
|
|
@ -95,6 +95,10 @@ export default createTheme({
|
||||||
accentB: tokens.blue.c500
|
accentB: tokens.blue.c500
|
||||||
},
|
},
|
||||||
|
|
||||||
|
modal: {
|
||||||
|
background: tokens.shade.c800,
|
||||||
|
},
|
||||||
|
|
||||||
type: {
|
type: {
|
||||||
logo: tokens.purple.c100,
|
logo: tokens.purple.c100,
|
||||||
text: tokens.shade.c50,
|
text: tokens.shade.c50,
|
||||||
|
|
|
@ -95,6 +95,10 @@ export default createTheme({
|
||||||
accentB: tokens.blue.c500
|
accentB: tokens.blue.c500
|
||||||
},
|
},
|
||||||
|
|
||||||
|
modal: {
|
||||||
|
background: tokens.shade.c800,
|
||||||
|
},
|
||||||
|
|
||||||
type: {
|
type: {
|
||||||
logo: tokens.purple.c100,
|
logo: tokens.purple.c100,
|
||||||
text: tokens.shade.c50,
|
text: tokens.shade.c50,
|
||||||
|
|
Loading…
Reference in a new issue