-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/feat/argent-one-button-connector' into beta
- Loading branch information
Showing
13 changed files
with
170 additions
and
129 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
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,85 @@ | ||
<script lang="ts"> | ||
import { StoreVersion } from "../../../types/modal" | ||
import AppleIcon from "../../components/icons/brands/AppleIcon.svelte"; | ||
import PlayStore from "../../components/icons/brands/PlayStore.svelte"; | ||
import ChromeIcon from "../../components/icons/brands/ChromeIcon.svelte"; | ||
import EdgeIcon from "../../components/icons/brands/EdgeIcon.svelte" | ||
import FirefoxIcon from "../../components/icons/brands/FirefoxIcon.svelte" | ||
import ArgentMobileGraphic from "./graphics/ArgentMobileGraphic.svelte"; | ||
import ArgentXGraphic from "./graphics/ArgentXGraphic.svelte"; | ||
import GeneralizedGraphic from "./graphics/GeneralizedGraphic.svelte" | ||
import ArgentDownloadItem from "./DownloadWalletItem.svelte"; | ||
import Link from "../../components/buttons/Link.svelte"; | ||
import HorizontalLine from "../../components/HorizontalLine.svelte"; | ||
export let isArgent: boolean = false; | ||
export let extensionName: string = "" | ||
export let store: StoreVersion | null; | ||
export let storeLink: string | undefined; | ||
const storeData = ({ // @dev - Be mindful of name property length, it might break the UI | ||
chrome: { | ||
name: "Chrome", | ||
icon: ChromeIcon, | ||
}, | ||
edge: { | ||
name: "Edge", | ||
icon: EdgeIcon, | ||
}, | ||
firefox: { | ||
name: "Firefox", | ||
icon: FirefoxIcon, | ||
} | ||
}) | ||
</script> | ||
|
||
<section class="flex flex-col flex-grow justify-between"> | ||
<div class="flex flex-col gap-2"> | ||
{#if isArgent} | ||
<ArgentDownloadItem title="Argent mobile" subtitle="Download Argent wallet on your mobile." link="https://www.argent.xyz/app"> | ||
<svelte:fragment slot="icons"> | ||
<AppleIcon /> | ||
<PlayStore /> | ||
</svelte:fragment> | ||
|
||
<svelte:fragment slot="button"> | ||
Download | ||
</svelte:fragment> | ||
|
||
<svelte:fragment slot="graphic"> | ||
<ArgentMobileGraphic /> | ||
</svelte:fragment> | ||
</ArgentDownloadItem> | ||
{/if} | ||
|
||
{#if store && storeLink} | ||
<ArgentDownloadItem title={extensionName} subtitle={`Install ${extensionName} extension.`} link={storeLink}> | ||
<svelte:fragment slot="button"> | ||
<div class="flex gap-1 items-center whitespace-nowrap"> | ||
<svelte:component this={storeData[store].icon} /> Install for {storeData[store].name} | ||
</div> | ||
</svelte:fragment> | ||
|
||
<svelte:fragment slot="graphic"> | ||
{#if isArgent} | ||
<ArgentXGraphic /> | ||
{:else} | ||
<GeneralizedGraphic /> | ||
{/if} | ||
</svelte:fragment> | ||
</ArgentDownloadItem> | ||
{/if} | ||
</div> | ||
|
||
<footer class="flex flex-col gap-4"> | ||
{#if isArgent} | ||
<HorizontalLine /> | ||
<p class="text-[13px] text-secondary">If you want to learn more about argent visit our site: | ||
<Link as="a" className="text-brand" href="https://www.argent.xyz/">www.argent.xyz</Link> | ||
</p> | ||
{/if} | ||
</footer> | ||
</section> |
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
File renamed without changes.
File renamed without changes.
43 changes: 43 additions & 0 deletions
43
src/modal/layouts/DownloadWallet/graphics/GeneralizedGraphic.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,43 @@ | ||
<svg width="109" height="109" viewBox="0 0 109 109" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<mask id="mask0_697_1274" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="109" height="109"> | ||
<ellipse cx="54.201" cy="54.2667" rx="53.9" ry="54.2667" fill="#F2F2F2"/> | ||
</mask> | ||
<g mask="url(#mask0_697_1274)"> | ||
<path d="M54.4182 108.477C84.171 108.477 108.29 84.1937 108.29 54.2386C108.29 24.2834 84.171 0 54.4182 0C24.6655 0 0.546143 24.2834 0.546143 54.2386C0.546143 84.1937 24.6655 108.477 54.4182 108.477Z" fill="#BFBFBF" fill-opacity="0.2"/> | ||
<rect x="16.4709" y="21.7067" width="75.46" height="105.573" rx="4.9" fill="black"/> | ||
<ellipse opacity="0.4" cx="54.2011" cy="44.3999" rx="9.31" ry="9.37333" fill="#6D6D6D"/> | ||
<rect x="49.791" y="43.4133" width="5.39" height="1.97333" rx="0.986666" fill="#8C8C8C"/> | ||
<rect x="56.6511" y="43.4133" width="1.96" height="1.97333" rx="0.98" fill="#8C8C8C"/> | ||
<rect x="49.301" y="27.6266" width="10.29" height="1.48" rx="0.74" fill="#595959"/> | ||
<rect x="21.3711" y="69.4933" width="65.66" height="11.76" rx="1.96" fill="#3A3A3A"/> | ||
<rect x="31.1711" y="73.4133" width="18.62" height="1.47" rx="0.735" fill="#CDCDCD"/> | ||
<rect x="31.1711" y="75.8633" width="34.3" height="1.47" rx="0.735" fill="#8C8C8C"/> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M83.52 75.373C83.52 74.0199 82.4231 72.923 81.07 72.923H78.2117C76.8586 72.923 75.7617 74.0199 75.7617 75.373C75.7617 76.7261 76.8586 77.823 78.2117 77.823H81.07C82.4231 77.823 83.52 76.7261 83.52 75.373Z" fill="#919191"/> | ||
<g filter="url(#filter0_d_697_1274)"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M81.0701 77.4147C79.9426 77.4147 79.0285 76.5006 79.0285 75.373C79.0285 74.2454 79.9426 73.3314 81.0701 73.3314C82.1977 73.3314 83.1118 74.2454 83.1118 75.373C83.1118 76.5006 82.1977 77.4147 81.0701 77.4147Z" fill="#CDCDCD"/> | ||
</g> | ||
<path d="M24.8874 74.0835C24.9425 74.03 25.0173 74 25.0953 74H27.4473C27.5252 74 27.6 74.03 27.6552 74.0835C27.7103 74.137 27.7413 74.2095 27.7413 74.2851V75.1219C27.7413 76.4368 26.5897 76.8719 26.3658 76.9442C26.3046 76.9653 26.2379 76.9653 26.1768 76.9442C25.9528 76.8719 24.8013 76.4368 24.8013 75.1219V74.2851C24.8013 74.2095 24.8322 74.137 24.8874 74.0835Z" fill="#CDCDCD"/> | ||
<rect x="21.3711" y="87.1334" width="65.66" height="6.86" rx="1.96" fill="#262626"/> | ||
<rect x="30.6812" y="90.0734" width="34.79" height="1.47" rx="0.735" fill="#595959"/> | ||
<path d="M81.1511 89.5834L82.1311 90.5634L81.1511 91.5434" stroke="#595959" stroke-width="0.98" stroke-linecap="round" stroke-linejoin="round"/> | ||
<rect x="25.7812" y="89.5834" width="2.45" height="2.45" rx="0.49" fill="#595959"/> | ||
<rect x="21.3711" y="96.9333" width="65.66" height="6.86" rx="1.96" fill="#262626"/> | ||
<rect x="30.6812" y="99.8734" width="34.79" height="1.47" rx="0.735" fill="#595959"/> | ||
<path d="M81.1511 99.3834L82.1311 100.363L81.1511 101.343" stroke="#595959" stroke-width="0.98" stroke-linecap="round" stroke-linejoin="round"/> | ||
<rect x="25.7812" y="99.3834" width="2.45" height="2.45" rx="0.49" fill="#595959"/> | ||
<rect x="21.3711" y="59.6934" width="65.66" height="6.86" rx="1.96" fill="#0F0F0F"/> | ||
<rect x="39.0112" y="62.6334" width="30.87" height="1.47" rx="0.735" fill="#595959"/> | ||
<rect x="80.1711" y="62.1434" width="2.45" height="2.45" rx="0.49" fill="#595959"/> | ||
</g> | ||
<defs> | ||
<filter id="filter0_d_697_1274" x="78.7019" y="73.3314" width="4.73659" height="4.73665" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> | ||
<feFlood flood-opacity="0" result="BackgroundImageFix"/> | ||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/> | ||
<feOffset dy="0.326667"/> | ||
<feGaussianBlur stdDeviation="0.163333"/> | ||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/> | ||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_697_1274"/> | ||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_697_1274" result="shape"/> | ||
</filter> | ||
</defs> | ||
</svg> |
19 changes: 0 additions & 19 deletions
19
src/modal/layouts/ExtensionDownloadList/ExtensionDownloadItem.svelte
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
src/modal/layouts/ExtensionDownloadList/ExtensionDownloadList.svelte
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.