Skip to content

Commit

Permalink
fix: update assets, closes #337 (#339)
Browse files Browse the repository at this point in the history
* fix: update assets, closes #337

* chore: add changeset

---------

Co-authored-by: janniks <[email protected]>
  • Loading branch information
janniks and janniks authored Oct 23, 2023
1 parent 0ed0111 commit 2b0f867
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-vans-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@stacks/connect-ui': patch
---

Update Leather wallet assets
Binary file not shown.
Binary file not shown.

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 2 additions & 8 deletions packages/connect-ui/src/components/modal/modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
padding: 20px 24px 20px;
box-sizing: border-box;
overflow-y: scroll;
-ms-overflow-style: none;
scrollbar-width: none;
-ms-overflow-style: none;
scrollbar-width: none;
&::-webkit-scrollbar {
display: none;
}
Expand Down Expand Up @@ -74,12 +74,6 @@
flex-direction: column;
}

.download-hiro-wallet {
background-image: $hiro-wallet-download;
height: 269px;
width: 310px;
}

.modal-title {
color: #242629;
font-family: 'Open Sauce One', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial,
Expand Down
19 changes: 8 additions & 11 deletions packages/connect-ui/src/components/modal/modal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, h, Prop, State, Element } from '@stencil/core';
import CloseIcon from './assets/close-icon.svg';
import HiroWalletLogo from './assets/hiro-wallet-logo.svg';
import LeatherLogo from './assets/leather-logo.svg';
import XverseWalletLogo from './assets/xverse-wallet-logo.svg';
import { getBrowser, getPlatform } from './utils';

Expand Down Expand Up @@ -83,13 +83,13 @@ export class Modal {
<div class="modal-content">
<div class="wallet-container">
<div class="modal-wallet-card">
<img src={HiroWalletLogo} />
<img src={LeatherLogo} />
<div class="modal-wallet-card-content">
<span class="modal-subheading">Hiro Wallet</span>
<span class="modal-subheading">Leather</span>
{browser && !isMobile ? (
<div class="modal-wallet-text">
Hiro Wallet is your gateway to Stacks apps like{' '}
{this.authOptions.appDetails.name}. Add it to {browser} to continue{' '}
Leather is the only Bitcoin wallet you need to tap into the emerging Bitcoin
economy.
</div>
) : (
<div class="modal-wallet-text">
Expand All @@ -108,17 +108,14 @@ export class Modal {
{` on desktop.`}
</div>
)}
<span
class="link"
onClick={() => window.open('https://www.hiro.so/wallet', '_blank')}
>
About Hiro Wallet →
<span class="link" onClick={() => window.open('https://leather.io/', '_blank')}>
About Leather →
</span>
{browser && !isMobile && (
<div class="download-app-container">
{this.hasOpenedInstall ? (
<div class="modal-wallet-text">
After installing Hiro Wallet, reload this page and sign in.
After installing Leather, reload this page and sign in.
</div>
) : (
<button
Expand Down

1 comment on commit 2b0f867

@vercel
Copy link

@vercel vercel bot commented on 2b0f867 Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.