Skip to content

Commit

Permalink
Apply-exploration-styles (#2)
Browse files Browse the repository at this point in the history
* Pretty good

* Remove debug styles

* Add more mock wallets

* Ensure square cells in wallets grid

* Update no-wallets-installed width

* Set max-height on wide viewport

* Remove comment

* Rename side panel to right panel

* Remove unused comments

* Modify user flow based on layout

* update core version and bump package version

---------

Co-authored-by: Mahmoud Aboelenein <[email protected]>
  • Loading branch information
aryzing and m-aboelenein authored Apr 6, 2024
1 parent 93e5c9e commit 4e1ecfa
Show file tree
Hide file tree
Showing 12 changed files with 371 additions and 203 deletions.
103 changes: 97 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sats-connect/ui",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"main": "dist/index.js",
"files": [
Expand All @@ -12,7 +12,7 @@
"build-app": "tsc && vite build --config vite.config.app.ts"
},
"dependencies": {
"@sats-connect/core": "0.0.3"
"@sats-connect/core": "0.0.4"
},
"devDependencies": {
"@ark-ui/solid": "2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/exampleApp/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function mockAllInstalled(): Config {
export function mockManySomeInstalled() {
return {
// 25 wallets
providers: Array.from({ length: 25 }, (_, i) => {
providers: Array.from({ length: 50 }, (_, i) => {
const id = `wallet-${i + 1}`;
return {
name: `Wallet ${i + 1}`,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ParentProps } from "solid-js";

export function SidePanelContainer(props: ParentProps) {
export function RightPanelContainer(props: ParentProps) {
return (
<div
style={{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ParentProps } from "solid-js";

export function SidePanelContentContainer(props: ParentProps) {
export function RightPanelContentContainer(props: ParentProps) {
return (
<div
style={{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { bodyTextStyles, titleTextStyles } from "../../styles";

export function SidePanelExplainer() {
export function RightPanelExplainer() {
return (
<div
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ import {
buttonTextStyles,
titleTextStyles,
} from "../../styles";
import { openChromeWebStore } from "../utils";
import { openAppStore } from "../utils";

interface Props {
provider: SupportedWallet;
}

export function SidePanelInstallWalletPrompt(props: Props) {
export function RightPanelInstallWalletPrompt(props: Props) {
function handleKeyDown(event: KeyboardEvent) {
if (event.key === "Enter" || event.key === " ") {
openChromeWebStore(props.provider);
openAppStore(props.provider);
}
}
function handleClick() {
openChromeWebStore(props.provider);
openAppStore(props.provider);
}
return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Props {
provider: SupportedWallet;
}

export function SidePanelOpeningWallet(props: Props) {
export function RightPanelOpeningWallet(props: Props) {
return (
<div
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export function WalletProviderOption(props: Props) {
<div
style={{
"aspect-ratio": "1 / 1",
overflow: "hidden",
}}
>
<div
Expand Down
Loading

0 comments on commit 4e1ecfa

Please sign in to comment.