Skip to content

Commit

Permalink
fixed zIndex for agenda overlay and sponsors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dooman87 committed Dec 12, 2024
1 parent cc4911b commit 6e9c7c9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 27 deletions.
2 changes: 0 additions & 2 deletions components/Agenda/SessionDetails.styled.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { breakpoint, breakpointMax } from 'components/utils/styles/breakpoints'
import { calcRem } from 'components/utils/styles/calcRem'
import styled from '@emotion/styled'
import { zIndex } from 'components/utils/styles/zindex'
import ReactModal from 'react-modal'

export const StyledDialogOverlay = styled(ReactModal)({
Expand All @@ -11,7 +10,6 @@ export const StyledDialogOverlay = styled(ReactModal)({
bottom: 0,
left: 0,
overflow: 'auto',
zIndex: zIndex.agendaOverlay,
background: `hsla(0, 0%, 0%, 0.33)`,
})
StyledDialogOverlay.displayName = 'StyledDialogOverlay'
Expand Down
40 changes: 16 additions & 24 deletions config/sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,31 +38,23 @@ const goldSponsors: Sponsor[] = [
{
id: 'webjet',
imageUrl: '/static/images/sponsors/2024-webjet.png',
name: 'MakerX',
name: 'Webjet',
type: SponsorType.Gold,
url: 'https://webjet.com.au',
},
{
id: 'insight',
imageUrl: '/static/images/sponsors/2024-insight.jpg',
name: 'Insight',
type: SponsorType.Gold,
url: 'https://au.insight.com/',
url: 'https://www.webjet.com.au/',
},
{
id: 'netwealth',
imageUrl: '/static/images/sponsors/2024-netwealth.jpg',
name: 'Netwealth',
type: SponsorType.Gold,
url: 'https://netwealth.com.au',
url: 'https://www.netwealth.com.au/',
},
{
id: 'github',
imageUrl: '/static/images/sponsors/2024-github.png',
name: 'GitHub',
id: 'ndcmelb',
imageUrl: '/static/images/sponsors/2025-ndcmelb.png',
name: 'NDC Melbourne',
type: SponsorType.Gold,
url: 'https://github.com',
logoSize: '50',
url: 'https://ndcmelbourne.com/',
},
]

Expand Down Expand Up @@ -103,15 +95,15 @@ const serviceSponsors: Sponsor[] = [
// url: 'https://www.ssw.com.au/',
// logoSize: '58',
// },
// {
// id: '2024-luminary',
// imageUrl: '/static/images/sponsors/2024-luminary.png',
// name: 'Luminary',
// type: SponsorType.Service,
// serviceProvided: 'Wi-Fi',
// url: 'https://luminary.com/',
// logoSize: '40',
// },
{
id: '2024-luminary',
imageUrl: '/static/images/sponsors/2024-luminary.png',
name: 'Luminary',
type: SponsorType.Service,
serviceProvided: 'Wi-Fi',
url: 'https://luminary.com/',
logoSize: '40',
},
]

const communityPartners: Sponsor[] = []
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
7 changes: 7 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ import { ConfigProvider } from 'Context/Config'
import { AppProps } from 'next/app'
import Script from 'next/script'
import ReactModal from 'react-modal'
import { zIndex } from '../components/utils/styles/zindex'

ReactModal.setAppElement('#content')
ReactModal.defaultStyles = {
overlay: {
zIndex: zIndex.agendaOverlay,
position: 'fixed',
},
}

function CustomApp({ Component, pageProps }: AppProps): JSX.Element {
return (
Expand Down

0 comments on commit 6e9c7c9

Please sign in to comment.