Skip to content

Commit

Permalink
Merge pull request #7 from luzmo-official/feat/improve-styling-and-fe…
Browse files Browse the repository at this point in the history
…atures

Feat: improve styling and features of wearables app
  • Loading branch information
jooststessens authored Sep 2, 2024
2 parents da25855 + e17c94c commit e671538
Show file tree
Hide file tree
Showing 16 changed files with 787 additions and 193 deletions.
Binary file modified wearables-dashboard/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion wearables-dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
rel="stylesheet"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Flex showcase</title>
<title>Healthosia - Luzmo Flex SDK sample application</title>
</head>
<body>
<div id="root"></div>
Expand Down
100 changes: 100 additions & 0 deletions wearables-dashboard/package-lock.json

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

1 change: 1 addition & 0 deletions wearables-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@luzmo/react-embed": "next",
"@mui/icons-material": "^5.16.4",
"@mui/lab": "^5.0.0-alpha.172",
"axios": "^1.7.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"userflow.js": "^2.12.1"
Expand Down
51 changes: 36 additions & 15 deletions wearables-dashboard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@ const theme = createTheme({
typography: {
fontFamily: "Lato",
},
palette: {
primary: {
main: "#6440EB",
},
secondary: {
main: "#fefefe",
},
// background color for the entire app
background: {
default: "#f4f5fd",
},
},
breakpoints: {
values: {
xs: 0,
sm: 900,
md: 1200,
lg: 1536,
xl: 1920,
},
},
});

import "./App.css";
Expand All @@ -33,23 +54,23 @@ function App() {
<>
<UserContext.Provider value={{ user, switchUser }}>
<ThemeProvider theme={theme}>
<Topnav selectedTab={selectedTab} onTabChange={setSelectedTab} />
<Grid
container
spacing={2}
paddingX={2}
paddingBottom={2}
<Box
className="userflow-wearables"
bgcolor="background.default"
minHeight="100vh"
>
{selectedTab === "analytics" && <Analytics />}
{selectedTab === "settings" && (
<Grid item xs={12}>
<Box padding={2}>
<Settings />
</Box>
</Grid>
)}
</Grid>
<Topnav selectedTab={selectedTab} onTabChange={setSelectedTab} />
<Grid container spacing={2} padding={2}>
{selectedTab === "analytics" && <Analytics />}
{selectedTab === "settings" && (
<Grid item xs={12}>
<Box padding={2}>
<Settings />
</Box>
</Grid>
)}
</Grid>
</Box>
</ThemeProvider>
</UserContext.Provider>
</>
Expand Down
Loading

0 comments on commit e671538

Please sign in to comment.