Skip to content

Commit

Permalink
Layout under control
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Oct 15, 2022
1 parent 1e51a8b commit f4a2f25
Show file tree
Hide file tree
Showing 21 changed files with 1,465 additions and 824 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"react-datepicker": "^4.5.0",
"react-dom": "17.0.2",
"react-perfect-scrollbar": "^1.5.8",
"react-popper": "^2.2.5"
"react-popper": "^2.2.5",
"rxjs": "^7.5.7"
},
"devDependencies": {
"@types/node": "16.11.11",
Expand Down
25 changes: 25 additions & 0 deletions public/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,51 +1,25 @@
// ** MUI Imports
import Box from '@mui/material/Box'
import Link from '@mui/material/Link'
import { Theme } from '@mui/material/styles'
import Typography from '@mui/material/Typography'
import useMediaQuery from '@mui/material/useMediaQuery'

const FooterContent = () => {
// ** Var
const hidden = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'))
// const hidden = useMediaQuery((theme: Theme) => theme.breakpoints.down('md'))

return (
<Box sx={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', justifyContent: 'space-between' }}>
<Typography sx={{ mr: 2 }}>
{${new Date().getFullYear()}, Made with `}
<Box component='span' sx={{ color: 'error.main' }}>
❤️
</Box>
{` by `}
<Link target='_blank' href='https://themeselection.com/'>
ThemeSelection
{${new Date().getFullYear()}, `}
<Link href='mailto:[email protected]'>
Live Concert Database, LLC.
</Link>

{ } All code is
<Link target='_blank' href='https://github.com/lcdborg'>
{' open source at GitHub. '}
</Link>
</Typography>
{hidden ? null : (
<Box sx={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', '& :not(:last-child)': { mr: 4 } }}>
<Link
target='_blank'
href='https://github.com/themeselection/materio-mui-react-nextjs-admin-template-free/blob/main/LICENSE'
>
MIT License
</Link>
<Link target='_blank' href='https://themeselection.com/'>
More Themes
</Link>
<Link
target='_blank'
href='https://github.com/themeselection/materio-mui-react-nextjs-admin-template-free/blob/main/README.md'
>
Documentation
</Link>
<Link
target='_blank'
href='https://github.com/themeselection/materio-mui-react-nextjs-admin-template-free/issues'
>
Support
</Link>
</Box>
)}
</Box>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ import Link from 'next/link'

// ** MUI Imports
import Box, { BoxProps } from '@mui/material/Box'
import { styled, useTheme } from '@mui/material/styles'
import { styled } from '@mui/material/styles'
import Typography, { TypographyProps } from '@mui/material/Typography'

// ** Type Import
import { Settings } from 'src/@core/context/settingsContext'

// ** Configs
import themeConfig from 'src/configs/themeConfig'

interface Props {
hidden: boolean
settings: Settings
Expand Down Expand Up @@ -51,77 +48,16 @@ const VerticalNavHeader = (props: Props) => {
// ** Props
const { verticalNavMenuBranding: userVerticalNavMenuBranding } = props

// ** Hooks
const theme = useTheme()

return (
<MenuHeaderWrapper className='nav-header' sx={{ pl: 6 }}>
{userVerticalNavMenuBranding ? (
userVerticalNavMenuBranding(props)
) : (
<Link href='/' passHref>
<StyledLink>
<svg
width={30}
height={25}
version='1.1'
viewBox='0 0 30 23'
xmlns='http://www.w3.org/2000/svg'
xmlnsXlink='http://www.w3.org/1999/xlink'
>
<g stroke='none' strokeWidth='1' fill='none' fillRule='evenodd'>
<g id='Artboard' transform='translate(-95.000000, -51.000000)'>
<g id='logo' transform='translate(95.000000, 50.000000)'>
<path
id='Combined-Shape'
fill={theme.palette.primary.main}
d='M30,21.3918362 C30,21.7535219 29.9019196,22.1084381 29.7162004,22.4188007 C29.1490236,23.366632 27.9208668,23.6752135 26.9730355,23.1080366 L26.9730355,23.1080366 L23.714971,21.1584295 C23.1114106,20.7972624 22.7419355,20.1455972 22.7419355,19.4422291 L22.7419355,19.4422291 L22.741,12.7425689 L15,17.1774194 L7.258,12.7425689 L7.25806452,19.4422291 C7.25806452,20.1455972 6.88858935,20.7972624 6.28502902,21.1584295 L3.0269645,23.1080366 C2.07913318,23.6752135 0.850976404,23.366632 0.283799571,22.4188007 C0.0980803893,22.1084381 2.0190442e-15,21.7535219 0,21.3918362 L0,3.58469444 L0.00548573643,3.43543209 L0.00548573643,3.43543209 L0,3.5715689 C3.0881846e-16,2.4669994 0.8954305,1.5715689 2,1.5715689 C2.36889529,1.5715689 2.73060353,1.67359571 3.04512412,1.86636639 L15,9.19354839 L26.9548759,1.86636639 C27.2693965,1.67359571 27.6311047,1.5715689 28,1.5715689 C29.1045695,1.5715689 30,2.4669994 30,3.5715689 L30,3.5715689 Z'
/>
<polygon
id='Rectangle'
opacity='0.077704'
fill={theme.palette.common.black}
points='0 8.58870968 7.25806452 12.7505183 7.25806452 16.8305646'
/>
<polygon
id='Rectangle'
opacity='0.077704'
fill={theme.palette.common.black}
points='0 8.58870968 7.25806452 12.6445567 7.25806452 15.1370162'
/>
<polygon
id='Rectangle'
opacity='0.077704'
fill={theme.palette.common.black}
points='22.7419355 8.58870968 30 12.7417372 30 16.9537453'
transform='translate(26.370968, 12.771227) scale(-1, 1) translate(-26.370968, -12.771227) '
/>
<polygon
id='Rectangle'
opacity='0.077704'
fill={theme.palette.common.black}
points='22.7419355 8.58870968 30 12.6409734 30 15.2601969'
transform='translate(26.370968, 11.924453) scale(-1, 1) translate(-26.370968, -11.924453) '
/>
<path
id='Rectangle'
fillOpacity='0.15'
fill={theme.palette.common.white}
d='M3.04512412,1.86636639 L15,9.19354839 L15,9.19354839 L15,17.1774194 L0,8.58649679 L0,3.5715689 C3.0881846e-16,2.4669994 0.8954305,1.5715689 2,1.5715689 C2.36889529,1.5715689 2.73060353,1.67359571 3.04512412,1.86636639 Z'
/>
<path
id='Rectangle'
fillOpacity='0.35'
fill={theme.palette.common.white}
transform='translate(22.500000, 8.588710) scale(-1, 1) translate(-22.500000, -8.588710) '
d='M18.0451241,1.86636639 L30,9.19354839 L30,9.19354839 L30,17.1774194 L15,8.58649679 L15,3.5715689 C15,2.4669994 15.8954305,1.5715689 17,1.5715689 C17.3688953,1.5715689 17.7306035,1.67359571 18.0451241,1.86636639 Z'
/>
</g>
</g>
</g>
</svg>
<img src="/images/logo.svg" alt="logo" width="30px"/>
<HeaderTitle variant='h6' sx={{ ml: 3 }}>
{themeConfig.templateName}
Live Concert Database
</HeaderTitle>
</StyledLink>
</Link>
Expand Down
4 changes: 2 additions & 2 deletions src/configs/themeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ type ThemeConfig = {

const themeConfig: ThemeConfig = {
// ** Layout Configs
templateName: 'Materio' /* App Name */,
templateName: 'LCDB' /* App Name */,
mode: 'light' /* light | dark */,
contentWidth: 'boxed' /* full | boxed */,
contentWidth: 'full' /* full | boxed */,

// ** Routing Configs
routingLoader: true /* true | false */,
Expand Down
18 changes: 0 additions & 18 deletions src/layouts/UserLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { ReactNode } from 'react'

// ** MUI Imports
import Box from '@mui/material/Box'
import { Theme } from '@mui/material/styles'
import useMediaQuery from '@mui/material/useMediaQuery'

Expand All @@ -14,7 +13,6 @@ import VerticalLayout from 'src/@core/layouts/VerticalLayout'
import VerticalNavItems from 'src/navigation/vertical'

// ** Component Import
import UpgradeToProButton from './components/UpgradeToProButton'
import VerticalAppBarContent from './components/vertical/AppBarContent'

// ** Hook Import
Expand All @@ -38,27 +36,12 @@ const UserLayout = ({ children }: Props) => {
*/
const hidden = useMediaQuery((theme: Theme) => theme.breakpoints.down('lg'))

const UpgradeToProImg = () => {
return (
<Box sx={{ mx: 'auto' }}>
<a
target='_blank'
rel='noreferrer'
href='https://themeselection.com/products/materio-mui-react-nextjs-admin-template/'
>
<img width={230} alt='upgrade to premium' src={`/images/misc/upgrade-banner-${settings.mode}.png`} />
</a>
</Box>
)
}

return (
<VerticalLayout
hidden={hidden}
settings={settings}
saveSettings={saveSettings}
verticalNavItems={VerticalNavItems()} // Navigation Items
afterVerticalNavMenuContent={UpgradeToProImg}
verticalAppBarContent={(
props // AppBar Content
) => (
Expand All @@ -71,7 +54,6 @@ const UserLayout = ({ children }: Props) => {
)}
>
{children}
<UpgradeToProButton />
</VerticalLayout>
)
}
Expand Down
9 changes: 3 additions & 6 deletions src/layouts/components/vertical/AppBarContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ import Magnify from 'mdi-material-ui/Magnify'
// ** Type Import
import { Settings } from 'src/@core/context/settingsContext'

// ** Components
import ModeToggler from 'src/@core/layouts/components/shared-components/ModeToggler'
import UserDropdown from 'src/@core/layouts/components/shared-components/UserDropdown'
import NotificationDropdown from 'src/@core/layouts/components/shared-components/NotificationDropdown'

interface Props {
hidden: boolean
settings: Settings
Expand All @@ -27,7 +22,7 @@ interface Props {

const AppBarContent = (props: Props) => {
// ** Props
const { hidden, settings, saveSettings, toggleNavVisibility } = props
const { hidden, toggleNavVisibility } = props

// ** Hook
const hiddenSm = useMediaQuery((theme: Theme) => theme.breakpoints.down('sm'))
Expand Down Expand Up @@ -57,6 +52,7 @@ const AppBarContent = (props: Props) => {
/>
</Box>
<Box className='actions-right' sx={{ display: 'flex', alignItems: 'center' }}>
{/*
{hiddenSm ? null : (
<Box
component='a'
Expand All @@ -75,6 +71,7 @@ const AppBarContent = (props: Props) => {
<ModeToggler settings={settings} saveSettings={saveSettings} />
<NotificationDropdown />
<UserDropdown />
*/}
</Box>
</Box>
)
Expand Down
75 changes: 15 additions & 60 deletions src/navigation/vertical/index.ts
Original file line number Diff line number Diff line change
@@ -1,78 +1,33 @@
// ** Icon imports
import Login from 'mdi-material-ui/Login'
import Table from 'mdi-material-ui/Table'
import CubeOutline from 'mdi-material-ui/CubeOutline'
import HomeOutline from 'mdi-material-ui/HomeOutline'
import FormatLetterCase from 'mdi-material-ui/FormatLetterCase'
import AccountCogOutline from 'mdi-material-ui/AccountCogOutline'
import CreditCardOutline from 'mdi-material-ui/CreditCardOutline'
import AccountPlusOutline from 'mdi-material-ui/AccountPlusOutline'
import AlertCircleOutline from 'mdi-material-ui/AlertCircleOutline'
import GoogleCirclesExtended from 'mdi-material-ui/GoogleCirclesExtended'

// ** Type import
import { VerticalNavItemsType } from 'src/@core/layouts/types'
import { AccountOutline } from 'mdi-material-ui'

const navigation = (): VerticalNavItemsType => {
return [
{
title: 'Dashboard',
icon: HomeOutline,
path: '/'
},
{
title: 'Account Settings',
icon: AccountCogOutline,
path: '/account-settings'
},
{
sectionTitle: 'Pages'
},
{
title: 'Login',
icon: Login,
path: '/pages/login',
openInNewTab: true
},
{
title: 'Register',
icon: AccountPlusOutline,
path: '/pages/register',
openInNewTab: true
},
{
title: 'Error',
icon: AlertCircleOutline,
path: '/pages/error',
openInNewTab: true
},
{
sectionTitle: 'User Interface'
sectionTitle: 'Artists'
},
{
title: 'Typography',
icon: FormatLetterCase,
path: '/typography'
title: 'Artists',
icon: AccountOutline,
path: '/artists'
},
{
title: 'Icons',
path: '/icons',
icon: GoogleCirclesExtended
title: 'Sources',
icon: AccountOutline,
path: '/source-artists'
},
{
title: 'Cards',
icon: CreditCardOutline,
path: '/cards'
sectionTitle: 'Artist Groups'
},
{
title: 'Tables',
icon: Table,
path: '/tables'
title: 'Artist Groups',
icon: AccountOutline,
path: '/artist-groups'
},
{
icon: CubeOutline,
title: 'Form Layouts',
path: '/form-layouts'
title: 'Artist Group Sources',
icon: AccountOutline,
path: '/source-artist-groups'
}
]
}
Expand Down
Loading

0 comments on commit f4a2f25

Please sign in to comment.