-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add mobile deprecation popup (#7177)
* feat: add mobile deprecation message * style: polish text
- Loading branch information
1 parent
373f37d
commit 5209e8e
Showing
5 changed files
with
33 additions
and
4 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
20 changes: 20 additions & 0 deletions
20
packages/shared/components/popups/MobileDeprecation.svelte
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,20 @@ | ||
<script lang="typescript"> | ||
import { localize } from '@core/i18n' | ||
import { closePopup } from '@lib/popup' | ||
import { Icon, Button, Text } from 'shared/components' | ||
</script> | ||
|
||
<mobile-deprecation-popup class="flex flex-col text-center justify-between"> | ||
<div class="flex flex-row space-x-3 items-center justify-center"> | ||
<Icon icon="warning" classes="text-orange-500" /> | ||
<Text type="h4" classes="text-center capitalize">{localize('popups.mobileDeprecation.title')}</Text> | ||
</div> | ||
<Text type="p">{localize('popups.mobileDeprecation.body')}</Text> | ||
<Button classes="w-full" onClick={closePopup}>{localize('actions.okIUnderstand')}</Button> | ||
</mobile-deprecation-popup> | ||
|
||
<style lang="scss"> | ||
mobile-deprecation-popup { | ||
min-height: 80vh; | ||
} | ||
</style> |
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