Skip to content

Commit c6ef306

Browse files
author
alejot127
committed
Merge branch 'deploy-staging' into deploy-prod
2 parents 97918a2 + 4b42eca commit c6ef306

File tree

6 files changed

+72
-44
lines changed

6 files changed

+72
-44
lines changed

src/layouts/Main/Main.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ import { Topbar, Sidebar, Footer } from './components';
1414

1515
import pages from '../navigation';
1616

17-
const Main = ({ children, colorInvert = false, bgcolor = null, className = '', navItems = null }) => {
17+
const Main = ({
18+
children,
19+
colorInvert = false,
20+
bgcolor = null,
21+
className = '',
22+
navItems = null,
23+
}) => {
1824
const theme = useTheme();
1925
const isMd = useMediaQuery(theme.breakpoints.up('md'), {
2026
defaultMatches: true,
@@ -43,7 +49,9 @@ const Main = ({ children, colorInvert = false, bgcolor = null, className = '', n
4349
position={'sticky'}
4450
sx={{
4551
top: 0,
46-
backgroundColor: trigger ? theme.palette.background.paper : bgcolor || setAlpha(theme.palette.background.paper, .25)
52+
backgroundColor: trigger
53+
? theme.palette.background.paper
54+
: bgcolor || setAlpha(theme.palette.background.paper, 0.25),
4755
}}
4856
elevation={trigger ? 1 : 0}
4957
>

src/layouts/Main/components/Footer/Footer.js

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Box from '@mui/material/Box';
44
import Button from '@mui/material/Button';
55
import Link from '@mui/material/Link';
66
import Typography from '@mui/material/Typography';
7+
import { Tooltip } from '@mui/material';
78
import BAAAHSLogo from '../../BAAAHSLogo';
89

910
const Footer = ({ links }) => {
@@ -24,12 +25,7 @@ const Footer = ({ links }) => {
2425
width={1}
2526
flexDirection={{ xs: 'column', sm: 'row' }}
2627
>
27-
<Box
28-
display={'flex'}
29-
component="a"
30-
href="/"
31-
width={100}
32-
>
28+
<Box display={'flex'} component="a" href="/" width={100}>
3329
<BAAAHSLogo />
3430
</Box>
3531
<Box
@@ -38,19 +34,26 @@ const Footer = ({ links }) => {
3834
alignItems="center"
3935
gap={2}
4036
>
41-
{navItems.map((item, i) => (
42-
<Box key={i} marginTop={1} gap={2}>
43-
<Link
44-
underline="none"
45-
component="a"
46-
href={item.href}
47-
color="text.primary"
48-
variant={'subtitle2'}
49-
>
50-
{item.title}
51-
</Link>
52-
</Box>
53-
))}
37+
{navItems.map((item, i) => {
38+
const link = (
39+
<Box key={i} marginTop={1} gap={2}>
40+
<Link
41+
underline="none"
42+
component="a"
43+
href={item.href}
44+
color="text.primary"
45+
variant={'subtitle2'}
46+
>
47+
{item.title}
48+
</Link>
49+
</Box>
50+
);
51+
return item.tbd ? (
52+
<Tooltip title={item.tbd}>{link}</Tooltip>
53+
) : (
54+
link
55+
);
56+
})}
5457
<Box marginTop={1}>
5558
<Button
5659
variant="outlined"

src/layouts/Main/components/Sidebar/components/SidebarNav/SidebarNav.js

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Box from '@mui/material/Box';
44
// import Button from '@mui/material/Button';
55
import Link from '@mui/material/Link';
66
// import NavItem from './components/NavItem';
7+
import { Tooltip } from '@mui/material';
78
import BAAAHSLogo from '../../../../BAAAHSLogo';
89

910
const SidebarNav = ({ pages }) => {
@@ -27,22 +28,35 @@ const SidebarNav = ({ pages }) => {
2728
title="BAAAHS"
2829
width={{ xs: 120, md: 150 }}
2930
>
30-
<BAAAHSLogo/>
31+
<BAAAHSLogo />
3132
</Box>
3233
</Box>
3334
<Box paddingX={2} paddingY={2}>
34-
{sections.map((section) => (
35-
<Box>
36-
<Link
37-
underline="none"
38-
component="a"
39-
href={section.href}
40-
sx={{ display: 'flex', alignItems: 'center', fontWeight: 'bold', textTransform: 'lowercase' }}
41-
>
42-
{section.title}
43-
</Link>
44-
</Box>
45-
))}
35+
{sections.map((section) => {
36+
const link = (
37+
<Box>
38+
<Link
39+
underline="none"
40+
component="a"
41+
href={section.href}
42+
sx={{
43+
display: 'flex',
44+
alignItems: 'center',
45+
fontWeight: 'bold',
46+
textTransform: 'lowercase',
47+
}}
48+
>
49+
{section.title}
50+
</Link>
51+
</Box>
52+
);
53+
54+
return section.tbd ? (
55+
<Tooltip title={section.tbd}>{link}</Tooltip>
56+
) : (
57+
link
58+
);
59+
})}
4660

4761
{/*<Box>*/}
4862
{/* <NavItem title={'Landings'} items={landingPages} />*/}

src/layouts/Main/components/Topbar/Topbar.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import IconFacebook from 'svg/illustrations/IconFacebook';
1212
import BAAAHSLogo from '../../BAAAHSLogo';
1313

1414
import pages from '../../../navigation';
15+
import { Tooltip } from '@mui/material';
1516

1617
const Topbar = ({ onSidebarOpen, colorInvert = false, data }) => {
1718
const theme = useTheme();
@@ -24,17 +25,12 @@ const Topbar = ({ onSidebarOpen, colorInvert = false, data }) => {
2425
alignItems={'center'}
2526
width={1}
2627
>
27-
<Box
28-
display={'flex'}
29-
component="a"
30-
href="/"
31-
width={{ xs: 120, md: 150 }}
32-
>
28+
<Box display={'flex'} component="a" href="/" width={{ xs: 120, md: 150 }}>
3329
<BAAAHSLogo />
3430
</Box>
3531
<Box sx={{ display: { xs: 'none', md: 'flex' } }} alignItems={'center'}>
3632
{navItems.map((item, i) => {
37-
return (
33+
const link = (
3834
<Box key={i} marginRight={{ xs: 2, sm: 4 }}>
3935
<Link
4036
underline="none"
@@ -52,6 +48,7 @@ const Topbar = ({ onSidebarOpen, colorInvert = false, data }) => {
5248
</Link>
5349
</Box>
5450
);
51+
return item.tbd ? <Tooltip title={item.tbd}>{link}</Tooltip> : link;
5552
})}
5653
</Box>
5754
<Box sx={{ display: { xs: 'none', md: 'flex' } }} alignItems={'right'}>

src/views/Campout/Home.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,12 @@ const CampoutHome = () => {
191191
your fav BAAAHS DJs and special guests on our world class
192192
sound system!
193193
<p>
194-
Here's this year's <a href="/campout/dj-lineup">line-up!</a>
194+
{/* Here's this year's <a href="/campout/dj-lineup">line-up!</a> */}
195+
DJ LINE UP COMING SOON!
195196
</p>
196197
</fragment>
197198
}
198-
link={'/campout/dj-lineup'}
199+
// link={'/campout/dj-lineup'}
199200
img={{ src: '/images/resized/ben_dancing_lights.webp' }}
200201
/>
201202
<ContentItem

src/views/Campout/NavItems.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
const NavItems = [
22
{ title: 'campout home', href: '/campout' },
33
{ title: 'what to expect', href: '/campout/what-to-expect' },
4-
{ title: 'dj line up', href: '/campout/dj-lineup' },
4+
{
5+
title: 'dj line up',
6+
// href: '/campout/dj-lineup',
7+
href: '',
8+
tbd: 'COMING SOON!',
9+
},
510
{ title: 'previous years', href: '/campout/last-year' },
611
{ title: 'q & a', href: '/campout/q-and-a' },
712
//{ title: 'schedule', href: '/campout/schedule' },

0 commit comments

Comments
 (0)