-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "become a sustainer" button and view to badge dialog
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
- Loading branch information
1 parent
749bd6b
commit 8f27d29
Showing
11 changed files
with
197 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
stylesheets/components/BadgeSustainerInstructionsDialog.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright 2021 Signal Messenger, LLC | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
.BadgeSustainerInstructionsDialog { | ||
user-select: none; | ||
|
||
// We use this selector for specificity. | ||
&.module-Modal { | ||
max-width: 420px; | ||
} | ||
|
||
&__header { | ||
@include font-title-2; | ||
text-align: center; | ||
} | ||
|
||
&__subheader { | ||
@include font-body-1; | ||
font-weight: normal; | ||
text-align: center; | ||
} | ||
|
||
&__instructions { | ||
@include font-body-2; | ||
padding: 0; | ||
list-style-position: inside; | ||
|
||
&::before { | ||
background-size: contain; | ||
content: ''; | ||
display: block; | ||
height: 160px; | ||
margin: 24px auto; | ||
width: 146px; | ||
|
||
@include light-theme { | ||
background-image: url('../images/mobile-settings-light.svg'); | ||
} | ||
@include dark-theme { | ||
background-image: url('../images/mobile-settings-dark.svg'); | ||
} | ||
} | ||
|
||
> li { | ||
margin-top: 1em; | ||
|
||
&:first-child { | ||
margin-top: 0; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2021 Signal Messenger, LLC | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
import type { ReactElement } from 'react'; | ||
import React from 'react'; | ||
import type { LocalizerType } from '../types/Util'; | ||
import { Modal } from './Modal'; | ||
|
||
export function BadgeSustainerInstructionsDialog({ | ||
i18n, | ||
onClose, | ||
}: Readonly<{ i18n: LocalizerType; onClose: () => unknown }>): ReactElement { | ||
return ( | ||
<Modal | ||
hasXButton | ||
moduleClassName="BadgeSustainerInstructionsDialog" | ||
i18n={i18n} | ||
onClose={onClose} | ||
> | ||
<h1 className="BadgeSustainerInstructionsDialog__header"> | ||
{i18n('BadgeSustainerInstructions__header')} | ||
</h1> | ||
<h2 className="BadgeSustainerInstructionsDialog__subheader"> | ||
{i18n('BadgeSustainerInstructions__subheader')} | ||
</h2> | ||
<ol className="BadgeSustainerInstructionsDialog__instructions"> | ||
<li>{i18n('BadgeSustainerInstructions__instructions__1')}</li> | ||
<li>{i18n('BadgeSustainerInstructions__instructions__2')}</li> | ||
<li>{i18n('BadgeSustainerInstructions__instructions__3')}</li> | ||
</ol> | ||
</Modal> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters