Skip to content

Commit

Permalink
upgraded material ui & added custom media query for home
Browse files Browse the repository at this point in the history
  • Loading branch information
ferso committed Oct 5, 2024
1 parent 9a21437 commit 8ad0f4b
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 99 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"@dfinity/candid": "^2.0.0",
"@dfinity/identity": "^2.0.0",
"@dfinity/principal": "^2.0.0",
"@emotion/react": "^11.13.0",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^5.16.7",
"@mui/material": "^5.16.7",
"@mui/icons-material": "^6.1.2",
"@mui/material": "^6.1.2",
"@supabase/auth-ui-react": "^0.4.7",
"@supabase/auth-ui-shared": "^0.1.8",
"@supabase/supabase-js": "^2.45.1",
Expand Down
40 changes: 22 additions & 18 deletions src/lib/dash/interface/screens/home/home.screen.tsx
Original file line number Diff line number Diff line change
@@ -1,51 +1,55 @@
import { Button, Container, Grid, Stack } from "@mui/material";
import { MainLayout } from "@dash/interface/layouts/main.layout";
import { ScreenTitle } from "@dash/interface/components/screen-title/screen-title";
import { CardAmount } from "@dash/interface/components/card-amount/card-amount";
import { CardInfo } from "@dash/interface/components/card-info/card-info";
import { ScreenTitle } from "@dash/interface/components/screen-title/screen-title";
import { MainLayout } from "@dash/interface/layouts/main.layout";
import { Button, Container, Grid2, Stack } from "@mui/material";
export const HomeScreen = () => {
return (
<MainLayout>
<Container maxWidth="md">
<Grid container spacing={4}>
<Grid item xs={12}>
<Container maxWidth="md" sx={{ pb: 3 }}>
<Grid2 container spacing={4}>
<Grid2 size={{ xs: 12, sm: 12, md: 9 }}>
<ScreenTitle label={"Dashboard"} />
</Grid>
<Grid item xs={12}>
</Grid2>
<Grid2 size={{ xs: 12, sm: 12, md: 3 }}>
<Stack
direction="row"
spacing={1}
justifyContent="flex-end"
justifyContent="space-between"
sx={{ mb: 2 }}
>
<Button variant="outlined" color="secondary">
<Button variant="outlined" color="secondary" fullWidth>
Transfer
</Button>
<Button variant="contained" color="secondary">
<Button variant="contained" color="secondary" fullWidth>
Deposit
</Button>
</Stack>
</Grid2>

<Grid2 size={{ xs: 12 }}>
<CardAmount
label="12,000,000,000.00 "
currency="MXN"
currency="MXNT"
sublabel={"Current Balance "}
/>
</Grid>
<Grid item xs={12} md={6}>
</Grid2>
<Grid2 size={{ xs: 12, md: 6 }}>
<CardInfo
label="Get Sandbox API"
context="Use the Sandbox API to test our funcionalities or explor our sample app "
btnLabel="Get API Key"
/>
</Grid>
<Grid item xs={12} md={6}>
</Grid2>

<Grid2 size={{ xs: 12, md: 6 }}>
<CardInfo
label="See our documentation"
context="Find guides and references tod help with integration"
btnLabel="See Guides"
/>
</Grid>
</Grid>
</Grid2>
</Grid2>
</Container>
</MainLayout>
);
Expand Down
9 changes: 0 additions & 9 deletions src/lib/shared/interface/themes/theme.default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ import { createTheme } from "@mui/material/styles";
import { red } from "@mui/material/colors";

const theme = createTheme({
components: {
MuiCssBaseline: {
styleOverrides: {
root: {
background: "#000",
},
},
},
},
typography: {
fontFamily: ["Poppins", "sans-serif"].join(","),
},
Expand Down
172 changes: 103 additions & 69 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,20 @@
dependencies:
"@babel/helper-plugin-utils" "^7.24.7"

"@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.23.9", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7":
"@babel/runtime@^7.12.5", "@babel/runtime@^7.18.3", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7":
version "7.25.0"
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.0.tgz"
integrity sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==
dependencies:
regenerator-runtime "^0.14.0"

"@babel/runtime@^7.25.6":
version "7.25.7"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.25.7.tgz#7ffb53c37a8f247c8c4d335e89cdf16a2e0d0fb6"
integrity sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==
dependencies:
regenerator-runtime "^0.14.0"

"@babel/template@^7.25.0":
version "7.25.0"
resolved "https://registry.npmjs.org/@babel/template/-/template-7.25.0.tgz"
Expand Down Expand Up @@ -280,9 +287,9 @@
source-map "^0.5.7"
stylis "4.2.0"

"@emotion/cache@^11.11.0", "@emotion/cache@^11.13.0":
"@emotion/cache@^11.13.0", "@emotion/cache@^11.13.1":
version "11.13.1"
resolved "https://registry.npmjs.org/@emotion/cache/-/cache-11.13.1.tgz"
resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-11.13.1.tgz#fecfc54d51810beebf05bf2a161271a1a91895d7"
integrity sha512-iqouYkuEblRcXmylXIwwOodiEK5Ifl7JcX7o6V4jI3iW4mLXX3dmt5xwBtIkJiQEXFAI+pC8X0i67yiPkH9Ucw==
dependencies:
"@emotion/memoize" "^0.9.0"
Expand All @@ -308,15 +315,15 @@
resolved "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.9.0.tgz"
integrity sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==

"@emotion/react@^11.13.0":
version "11.13.0"
resolved "https://registry.npmjs.org/@emotion/react/-/react-11.13.0.tgz"
integrity sha512-WkL+bw1REC2VNV1goQyfxjx1GYJkcc23CRQkXX+vZNLINyfI7o+uUn/rTGPt/xJ3bJHd5GcljgnxHf4wRw5VWQ==
"@emotion/react@^11.13.3":
version "11.13.3"
resolved "https://registry.yarnpkg.com/@emotion/react/-/react-11.13.3.tgz#a69d0de2a23f5b48e0acf210416638010e4bd2e4"
integrity sha512-lIsdU6JNrmYfJ5EbUCf4xW1ovy5wKQ2CkPRM4xogziOxH1nXxBSjpC9YqbFAP7circxMfYp+6x676BqWcEiixg==
dependencies:
"@babel/runtime" "^7.18.3"
"@emotion/babel-plugin" "^11.12.0"
"@emotion/cache" "^11.13.0"
"@emotion/serialize" "^1.3.0"
"@emotion/serialize" "^1.3.1"
"@emotion/use-insertion-effect-with-fallbacks" "^1.1.0"
"@emotion/utils" "^1.4.0"
"@emotion/weak-memoize" "^0.4.0"
Expand All @@ -333,14 +340,25 @@
"@emotion/utils" "^1.4.0"
csstype "^3.0.2"

"@emotion/serialize@^1.3.1":
version "1.3.2"
resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-1.3.2.tgz#e1c1a2e90708d5d85d81ccaee2dfeb3cc0cccf7a"
integrity sha512-grVnMvVPK9yUVE6rkKfAJlYZgo0cu3l9iMC77V7DW6E1DUIrU68pSEXRmFZFOFB1QFo57TncmOcvcbMDWsL4yA==
dependencies:
"@emotion/hash" "^0.9.2"
"@emotion/memoize" "^0.9.0"
"@emotion/unitless" "^0.10.0"
"@emotion/utils" "^1.4.1"
csstype "^3.0.2"

"@emotion/sheet@^1.4.0":
version "1.4.0"
resolved "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.4.0.tgz"
integrity sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==

"@emotion/styled@^11.13.0":
version "11.13.0"
resolved "https://registry.npmjs.org/@emotion/styled/-/styled-11.13.0.tgz"
resolved "https://registry.yarnpkg.com/@emotion/styled/-/styled-11.13.0.tgz#633fd700db701472c7a5dbef54d6f9834e9fb190"
integrity sha512-tkzkY7nQhW/zC4hztlwucpT8QEZ6eUzpXDRhww/Eej4tFfO0FxQYWRyg/c5CCXa4d/f174kqeXYjuQRnhzf6dA==
dependencies:
"@babel/runtime" "^7.18.3"
Expand All @@ -350,6 +368,11 @@
"@emotion/use-insertion-effect-with-fallbacks" "^1.1.0"
"@emotion/utils" "^1.4.0"

"@emotion/unitless@^0.10.0":
version "0.10.0"
resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.10.0.tgz#2af2f7c7e5150f497bdabd848ce7b218a27cf745"
integrity sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==

"@emotion/unitless@^0.9.0":
version "0.9.0"
resolved "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.9.0.tgz"
Expand All @@ -365,6 +388,11 @@
resolved "https://registry.npmjs.org/@emotion/utils/-/utils-1.4.0.tgz"
integrity sha512-spEnrA1b6hDR/C68lC2M7m6ALPUHZC0lIY7jAS/B/9DuuO1ZP04eov8SMv/6fwRd8pzmsn2AuJEznRREWlQrlQ==

"@emotion/utils@^1.4.1":
version "1.4.1"
resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-1.4.1.tgz#b3adbb43de12ee2149541c4f1337d2eb7774f0ad"
integrity sha512-BymCXzCG3r72VKJxaYVwOXATqXIZ85cuvg0YOUDxMGNrKc1DJRZk8MgV5wyXRyEayIMd4FuXJIUgTBXvDNW5cA==

"@emotion/weak-memoize@^0.4.0":
version "0.4.0"
resolved "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz"
Expand Down Expand Up @@ -705,82 +733,83 @@
"@jridgewell/resolve-uri" "^3.1.0"
"@jridgewell/sourcemap-codec" "^1.4.14"

"@mui/core-downloads-tracker@^5.16.7":
version "5.16.7"
resolved "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.16.7.tgz"
integrity sha512-RtsCt4Geed2/v74sbihWzzRs+HsIQCfclHeORh5Ynu2fS4icIKozcSubwuG7vtzq2uW3fOR1zITSP84TNt2GoQ==
"@mui/core-downloads-tracker@^6.1.2":
version "6.1.2"
resolved "https://registry.yarnpkg.com/@mui/core-downloads-tracker/-/core-downloads-tracker-6.1.2.tgz#a15eb14d433100f734e56929f842c2ccc7cab691"
integrity sha512-1oE4U38/TtzLWRYWEm/m70dUbpcvBx0QvDVg6NtpOmSNQC1Mbx0X/rNvYDdZnn8DIsAiVQ+SZ3am6doSswUQ4g==

"@mui/icons-material@^5.16.7":
version "5.16.7"
resolved "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.16.7.tgz"
integrity sha512-UrGwDJCXEszbDI7yV047BYU5A28eGJ79keTCP4cc74WyncuVrnurlmIRxaHL8YK+LI1Kzq+/JM52IAkNnv4u+Q==
"@mui/icons-material@^6.1.2":
version "6.1.2"
resolved "https://registry.yarnpkg.com/@mui/icons-material/-/icons-material-6.1.2.tgz#3e4537c312687afbdd2fd289d5412731d5da3d11"
integrity sha512-7NNcjW5JoT9jHagrVbARA1o41vQY2xezDamtke+mEKKZmsJyejfRBOacSrPDfjZQ//lyhIjNKyzAwisxYJR47w==
dependencies:
"@babel/runtime" "^7.23.9"
"@babel/runtime" "^7.25.6"

"@mui/material@^5.16.7":
version "5.16.7"
resolved "https://registry.npmjs.org/@mui/material/-/material-5.16.7.tgz"
integrity sha512-cwwVQxBhK60OIOqZOVLFt55t01zmarKJiJUWbk0+8s/Ix5IaUzAShqlJchxsIQ4mSrWqgcKCCXKtIlG5H+/Jmg==
"@mui/material@^6.1.2":
version "6.1.2"
resolved "https://registry.yarnpkg.com/@mui/material/-/material-6.1.2.tgz#9f47bfa6adcf3b8245799cbf4c027e3cb949bcc6"
integrity sha512-5TtHeAVX9D5d2LYfB1GAUn29BcVETVsrQ76Dwb2SpAfQGW3JVy4deJCAd0RrIkI3eEUrsl0E4xuBdreszxdTTg==
dependencies:
"@babel/runtime" "^7.23.9"
"@mui/core-downloads-tracker" "^5.16.7"
"@mui/system" "^5.16.7"
"@mui/types" "^7.2.15"
"@mui/utils" "^5.16.6"
"@babel/runtime" "^7.25.6"
"@mui/core-downloads-tracker" "^6.1.2"
"@mui/system" "^6.1.2"
"@mui/types" "^7.2.17"
"@mui/utils" "^6.1.2"
"@popperjs/core" "^2.11.8"
"@types/react-transition-group" "^4.4.10"
clsx "^2.1.0"
"@types/react-transition-group" "^4.4.11"
clsx "^2.1.1"
csstype "^3.1.3"
prop-types "^15.8.1"
react-is "^18.3.1"
react-transition-group "^4.4.5"

"@mui/private-theming@^5.16.6":
version "5.16.6"
resolved "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.16.6.tgz"
integrity sha512-rAk+Rh8Clg7Cd7shZhyt2HGTTE5wYKNSJ5sspf28Fqm/PZ69Er9o6KX25g03/FG2dfpg5GCwZh/xOojiTfm3hw==
"@mui/private-theming@^6.1.2":
version "6.1.2"
resolved "https://registry.yarnpkg.com/@mui/private-theming/-/private-theming-6.1.2.tgz#1e093c7194dd9f8a511179e0e5c5b10798a4bfae"
integrity sha512-S8WcjZdNdi++8UhrrY8Lton5h/suRiQexvdTfdcPAlbajlvgM+kx+uJstuVIEyTb3gMkxzIZep87knZ0tqcR0g==
dependencies:
"@babel/runtime" "^7.23.9"
"@mui/utils" "^5.16.6"
"@babel/runtime" "^7.25.6"
"@mui/utils" "^6.1.2"
prop-types "^15.8.1"

"@mui/styled-engine@^5.16.6":
version "5.16.6"
resolved "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.16.6.tgz"
integrity sha512-zaThmS67ZmtHSWToTiHslbI8jwrmITcN93LQaR2lKArbvS7Z3iLkwRoiikNWutx9MBs8Q6okKvbZq1RQYB3v7g==
"@mui/styled-engine@^6.1.2":
version "6.1.2"
resolved "https://registry.yarnpkg.com/@mui/styled-engine/-/styled-engine-6.1.2.tgz#bef156ac2e47a67d49982ddb5fa4211974740a26"
integrity sha512-uKOfWkR23X39xj7th2nyTcCHqInTAXtUnqD3T5qRVdJcOPvu1rlgTleTwJC/FJvWZJBU6ieuTWDhbcx5SNViHQ==
dependencies:
"@babel/runtime" "^7.23.9"
"@emotion/cache" "^11.11.0"
"@babel/runtime" "^7.25.6"
"@emotion/cache" "^11.13.1"
"@emotion/sheet" "^1.4.0"
csstype "^3.1.3"
prop-types "^15.8.1"

"@mui/system@^5.16.7":
version "5.16.7"
resolved "https://registry.npmjs.org/@mui/system/-/system-5.16.7.tgz"
integrity sha512-Jncvs/r/d/itkxh7O7opOunTqbbSSzMTHzZkNLM+FjAOg+cYAZHrPDlYe1ZGKUYORwwb2XexlWnpZp0kZ4AHuA==
dependencies:
"@babel/runtime" "^7.23.9"
"@mui/private-theming" "^5.16.6"
"@mui/styled-engine" "^5.16.6"
"@mui/types" "^7.2.15"
"@mui/utils" "^5.16.6"
clsx "^2.1.0"
"@mui/system@^6.1.2":
version "6.1.2"
resolved "https://registry.yarnpkg.com/@mui/system/-/system-6.1.2.tgz#28840b04c6fc70780620759d67de2c20bdc7d1c7"
integrity sha512-mzW7F1ZMIYS1aLON48Nrk9c65OrVEVQ+R4lUcTWs1lCSul0VGK23eo4dmY0NX5PS7Oe4xz3P5B9tQZZ7SYgxcg==
dependencies:
"@babel/runtime" "^7.25.6"
"@mui/private-theming" "^6.1.2"
"@mui/styled-engine" "^6.1.2"
"@mui/types" "^7.2.17"
"@mui/utils" "^6.1.2"
clsx "^2.1.1"
csstype "^3.1.3"
prop-types "^15.8.1"

"@mui/types@^7.2.15":
version "7.2.15"
resolved "https://registry.npmjs.org/@mui/types/-/types-7.2.15.tgz"
integrity sha512-nbo7yPhtKJkdf9kcVOF8JZHPZTmqXjJ/tI0bdWgHg5tp9AnIN4Y7f7wm9T+0SyGYJk76+GYZ8Q5XaTYAsUHN0Q==
"@mui/types@^7.2.17":
version "7.2.17"
resolved "https://registry.yarnpkg.com/@mui/types/-/types-7.2.17.tgz#329826062d4079de5ea2b97007575cebbba1fdbc"
integrity sha512-oyumoJgB6jDV8JFzRqjBo2daUuHpzDjoO/e3IrRhhHo/FxJlaVhET6mcNrKHUq2E+R+q3ql0qAtvQ4rfWHhAeQ==

"@mui/utils@^5.16.6":
version "5.16.6"
resolved "https://registry.npmjs.org/@mui/utils/-/utils-5.16.6.tgz"
integrity sha512-tWiQqlhxAt3KENNiSRL+DIn9H5xNVK6Jjf70x3PnfQPz1MPBdh7yyIcAyVBT9xiw7hP3SomRhPR7hzBMBCjqEA==
"@mui/utils@^6.1.2":
version "6.1.2"
resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-6.1.2.tgz#3717cd9373324a92e48c34f74385350104be652c"
integrity sha512-6+B1YZ8cCBWD1fc3RjqpclF9UA0MLUiuXhyCO+XowD/Z2ku5IlxeEhHHlgglyBWFGMu4kib4YU3CDsG5/zVjJQ==
dependencies:
"@babel/runtime" "^7.23.9"
"@mui/types" "^7.2.15"
"@types/prop-types" "^15.7.12"
"@babel/runtime" "^7.25.6"
"@mui/types" "^7.2.17"
"@types/prop-types" "^15.7.13"
clsx "^2.1.1"
prop-types "^15.8.1"
react-is "^18.3.1"
Expand Down Expand Up @@ -1070,22 +1099,27 @@
resolved "https://registry.yarnpkg.com/@types/phoenix/-/phoenix-1.6.5.tgz#5654e14ec7ad25334a157a20015996b6d7d2075e"
integrity sha512-xegpDuR+z0UqG9fwHqNoy3rI7JDlvaPh2TY47Fl80oq6g+hXT+c/LEuE43X48clZ6lOfANl5WrPur9fYO1RJ/w==

"@types/prop-types@*", "@types/prop-types@^15.7.12":
"@types/prop-types@*":
version "15.7.12"
resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz"
integrity sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==

"@types/prop-types@^15.7.13":
version "15.7.13"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.13.tgz#2af91918ee12d9d32914feb13f5326658461b451"
integrity sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==

"@types/react-dom@^18.3.0":
version "18.3.0"
resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.0.tgz"
integrity sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==
dependencies:
"@types/react" "*"

"@types/react-transition-group@^4.4.10":
version "4.4.10"
resolved "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.10.tgz"
integrity sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==
"@types/react-transition-group@^4.4.11":
version "4.4.11"
resolved "https://registry.yarnpkg.com/@types/react-transition-group/-/react-transition-group-4.4.11.tgz#d963253a611d757de01ebb241143b1017d5d63d5"
integrity sha512-RM05tAniPZ5DZPzzNFP+DmrcOdD0efDUxMy3145oljWSl3x9ZV5vhme98gTxFrj2lhXvmGNnUiuDyJgY9IKkNA==
dependencies:
"@types/react" "*"

Expand Down Expand Up @@ -1684,7 +1718,7 @@ class-validator@^0.14.1:
libphonenumber-js "^1.10.53"
validator "^13.9.0"

clsx@^2.1.0, clsx@^2.1.1:
clsx@^2.1.1:
version "2.1.1"
resolved "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz"
integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==
Expand Down

0 comments on commit 8ad0f4b

Please sign in to comment.