Skip to content

Commit

Permalink
Merge pull request #8 from Jim-Hodapp-Coaching/5-create-a-standard-lo…
Browse files Browse the repository at this point in the history
…gin-screen-using-material-ui-components
  • Loading branch information
jhodapp authored Nov 21, 2023
2 parents 21aee6e + 9b2cc56 commit 6ca6eb4
Show file tree
Hide file tree
Showing 102 changed files with 5,655 additions and 252 deletions.
885 changes: 818 additions & 67 deletions package-lock.json

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,33 @@
"lint": "next lint"
},
"dependencies": {
"@emotion/cache": "11.10.5",
"@emotion/react": "^11.11.1",
"@emotion/server": "11.10.0",
"@emotion/styled": "^11.11.0",
"@fontsource/roboto": "^5.0.8",
"@heroicons/react": "2.0.16",
"@mui/lab": "5.0.0-alpha.120",
"@mui/material": "^5.14.18",
"next": "14.0.1",
"@mui/system": "5.11.9",
"@mui/x-date-pickers": "5.0.19",
"apexcharts": "3.37.0",
"date-fns": "2.29.3",
"formik": "2.2.9",
"nprogress": "0.2.0",
"prop-types": "15.8.1",
"next": "^14.0.3",
"react": "^18",
"react-dom": "^18"
"react-apexcharts": "1.4.0",
"react-dom": "^18",
"simplebar-react": "^3.2.1",
"yup": "1.0.0"

},
"devDependencies": {
"@types/node": "^20",
"@types/nprogress": "0.2.0",
"@types/numeral": "2.0.2",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
Expand Down
1 change: 0 additions & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
94 changes: 94 additions & 0 deletions public/assets/auth-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-alcides-antonio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-anika-visser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-cao-yu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-carson-darrin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-chinasa-neo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-fran-perez.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-iulia-albu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-jane-rotanson.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-jie-yan-song.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-marcus-finn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-miron-vitold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-nasimiyu-danai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-neha-punita.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-omar-darboe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-penjani-inyene.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/avatars/avatar-seo-hyeon-ji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/devias-kit-pro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/errors/error-401.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/errors/error-404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/errors/error-500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/logos/logo-dropbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/logos/logo-github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/logos/logo-lyft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/logos/logo-medium.png
Binary file added public/assets/logos/logo-slack.png
Binary file added public/assets/logos/logo-squarespace.png
Binary file added public/assets/products/product-1.png
Binary file added public/assets/products/product-2.png
Binary file added public/assets/products/product-4.png
Binary file added public/assets/products/product-5.png
Binary file added public/assets/products/product-6.png
Binary file added public/assets/products/product-7.png
Binary file added public/assets/thumbnail.png
Binary file added public/favicon-16x16.png
Binary file added public/favicon-32x32.png
Binary file added public/favicon.ico
Binary file not shown.
15 changes: 15 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "Devias Kit",
"name": "Devias Kit",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
Binary file removed src/app/favicon.ico
Binary file not shown.
27 changes: 0 additions & 27 deletions src/app/globals.css

This file was deleted.

22 changes: 0 additions & 22 deletions src/app/layout.tsx

This file was deleted.

113 changes: 0 additions & 113 deletions src/app/page.tsx

This file was deleted.

9 changes: 9 additions & 0 deletions src/components/chart.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import dynamic from 'next/dynamic';
import { styled } from '@mui/material/styles';

const ApexChart = dynamic(() => import('react-apexcharts'), {
ssr: false,
loading: () => null
});

export const Chart = styled(ApexChart)``;
26 changes: 26 additions & 0 deletions src/components/logo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { useTheme } from '@mui/material/styles';

export const Logo = () => {
const theme = useTheme();
const fillColor = theme.palette.primary.main;

return (
<svg
fill="none"
height="100%"
viewBox="0 0 24 24"
width="100%"
xmlns="http://www.w3.org/2000/svg"
>
<path
opacity={0.16}
d="M7.242 11.083c.449-1.674 2.17-3.394 3.843-3.843l10.434-2.796c1.673-.448 2.666.545 2.218 2.218L20.94 17.096c-.449 1.674-2.17 3.394-3.843 3.843L6.664 23.735c-1.673.448-2.666-.545-2.218-2.218l2.796-10.434Z"
fill={fillColor}
/>
<path
d="M3.06 6.9c.448-1.674 2.168-3.394 3.842-3.843L17.336.261c1.673-.448 2.667.545 2.218 2.218l-2.796 10.434c-.449 1.674-2.169 3.394-3.843 3.843L2.481 19.552C.808 20-.185 19.007.263 17.334L3.06 6.9Z"
fill={fillColor}
/>
</svg>
);
};
4 changes: 4 additions & 0 deletions src/components/scrollbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import SimpleBar from 'simplebar-react';
import { styled } from '@mui/material/styles';

export const Scrollbar = styled(SimpleBar)``;
58 changes: 58 additions & 0 deletions src/components/severity-pill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import PropTypes from 'prop-types';
import { styled } from '@mui/material/styles';

const SeverityPillRoot = styled('span')(({ theme, ownerState }) => {
const backgroundColor = theme.palette[ownerState.color].alpha12;
const color = theme.palette.mode === 'dark'
? theme.palette[ownerState.color].main
: theme.palette[ownerState.color].dark;

return {
alignItems: 'center',
backgroundColor,
borderRadius: 12,
color,
cursor: 'default',
display: 'inline-flex',
flexGrow: 0,
flexShrink: 0,
fontFamily: theme.typography.fontFamily,
fontSize: theme.typography.pxToRem(12),
lineHeight: 2,
fontWeight: 600,
justifyContent: 'center',
letterSpacing: 0.5,
minWidth: 20,
paddingLeft: theme.spacing(1),
paddingRight: theme.spacing(1),
textTransform: 'uppercase',
whiteSpace: 'nowrap'
};
});

export const SeverityPill = (props) => {
const { color = 'primary', children, ...other } = props;

const ownerState = { color };

return (
<SeverityPillRoot
ownerState={ownerState}
{...other}
>
{children}
</SeverityPillRoot>
);
};

SeverityPill.propTypes = {
children: PropTypes.node,
color: PropTypes.oneOf([
'primary',
'secondary',
'error',
'info',
'warning',
'success'
])
};
Loading

0 comments on commit 6ca6eb4

Please sign in to comment.