Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selector modal: customization options #63

Merged
merged 37 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
5e4939a
remove unused
awojciak Sep 5, 2023
1f357f2
main component merge
awojciak Sep 5, 2023
e8a73c0
better animation observing
awojciak Sep 6, 2023
1ce3b3a
max widths
awojciak Sep 6, 2023
d2dc215
improve desktop transitions
awojciak Sep 6, 2023
9726ded
bump motion
awojciak Sep 6, 2023
e6a5818
get rid of most of motion
awojciak Sep 6, 2023
743a20b
transitions refactor
awojciak Sep 6, 2023
2576c1b
get rid of resize observers
awojciak Sep 6, 2023
061d095
better responsiveness
awojciak Sep 6, 2023
4b04210
override styles, version 1
awojciak Sep 6, 2023
b7dd2ab
override
awojciak Sep 6, 2023
9980076
first naming adjustments, get rid of unnecessary stuff
awojciak Sep 6, 2023
1e6b2b4
move animation
awojciak Sep 7, 2023
837f04b
header cleanup
awojciak Sep 7, 2023
8e3f156
fix modal width
awojciak Sep 7, 2023
94150e8
desktop view cleanup
awojciak Sep 7, 2023
ddd3e14
mobile main refactor
awojciak Sep 7, 2023
9556670
rename components
awojciak Sep 7, 2023
3974568
qr cleanup
awojciak Sep 7, 2023
1190bd6
remove zindex
awojciak Sep 7, 2023
425c700
justify mobile items
awojciak Sep 7, 2023
354eae2
back button adjustments
awojciak Sep 7, 2023
aeef25a
connect view adjustments
awojciak Sep 7, 2023
0ded7b0
mobile wallets list refactor
awojciak Sep 7, 2023
e683c2f
all classes cleaned up
awojciak Sep 8, 2023
5e4c283
qr override
awojciak Sep 8, 2023
ab73934
fix images in bundle
awojciak Sep 8, 2023
9c72c39
storybook font fix
awojciak Sep 8, 2023
db7af9d
use proper regular font
awojciak Sep 8, 2023
35827cb
variables, need better override
awojciak Sep 8, 2023
44eb095
finally progress overwriting variables works, now need to fix classes
awojciak Sep 8, 2023
aa762ad
overrides finally work fine
awojciak Sep 8, 2023
7b58631
colors and font sizes moved to css variables
awojciak Sep 9, 2023
2b9a343
images moved to css variables
awojciak Sep 9, 2023
5986b41
done
awojciak Sep 9, 2023
b0cb71d
logo size fix
awojciak Sep 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion sdk/apps/modal-example/src/routes/aleph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,33 @@ export default function Polkadot() {
network: 'AlephZero'
},
true, // change this to false to test disabling eager connect
document.getElementById('modalAnchor')
document.getElementById('modalAnchor'),
{
variablesOverride: {
'--nc-color-primary': 'green',
'--nc-img-logo': 'url(https://alephzero.org/aleph-design/brand-elements/logo-day.svg)'
},
stylesOverride: `
.nc_headerWrapper {
background-color: red;
}

.nc_headerLogo {
width: 200px;
}

.nc_modalContent {
border-radius: 0;
background-color: var(--nc-color-elements-8);
border: 3px solid var(--nc-color-primary);
}
`,
qrConfigOverride: {
dotsOptions: {
color: 'gold'
}
}
}
)

adapter.canEagerConnect().then((canEagerConnect) => {
Expand Down
7 changes: 0 additions & 7 deletions sdk/packages/modal/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<style>
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;600&display=swap');

/* Firefox */
* {
font-family: 'Prompt';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-smooth: never;
}
body {
background-color: black;
}
Expand Down
1 change: 0 additions & 1 deletion sdk/packages/modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"build-storybook": "storybook build"
},
"dependencies": {
"@lit-labs/motion": "^1.0.3",
"@nightlylabs/qr-code": "2.0.3",
"autoprefixer": "^10.4.14",
"lit": "^2.7.2",
Expand Down
1 change: 0 additions & 1 deletion sdk/packages/modal/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default [
'postcss',
'postcss-lit',
'tailwindcss',
'@lit-labs/motion',
'lit/directives/style-map.js',
'lit/directives/unsafe-html.js',
'lit/decorators.js'
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading