diff --git a/packages/web-app/src/components/ModalWithOverlay/ModalWithOverlay.tsx b/packages/web-app/src/components/ModalWithOverlay/ModalWithOverlay.tsx index 1d3c86a2e..fa5620f77 100644 --- a/packages/web-app/src/components/ModalWithOverlay/ModalWithOverlay.tsx +++ b/packages/web-app/src/components/ModalWithOverlay/ModalWithOverlay.tsx @@ -20,6 +20,9 @@ const styles: (theme: SaladTheme) => Record = (theme: Sa fontFamily: theme.fontMallory, top: '0px', left: '0px', + '@media (max-height: 670px)': { + alignItems: 'flex-start', + }, }, modalContainer: { position: 'relative', diff --git a/packages/web-app/src/modules/demand-monitor-views/DemandMonitorPage/GetNotifiedDemandChangesModal/GetNotifiedDemandChangesModal.tsx b/packages/web-app/src/modules/demand-monitor-views/DemandMonitorPage/GetNotifiedDemandChangesModal/GetNotifiedDemandChangesModal.tsx index 37e94cb37..2b5c51c52 100644 --- a/packages/web-app/src/modules/demand-monitor-views/DemandMonitorPage/GetNotifiedDemandChangesModal/GetNotifiedDemandChangesModal.tsx +++ b/packages/web-app/src/modules/demand-monitor-views/DemandMonitorPage/GetNotifiedDemandChangesModal/GetNotifiedDemandChangesModal.tsx @@ -1,6 +1,5 @@ import { Button } from '@saladtechnologies/garden-components' import type CSS from 'csstype' -import { Img } from 'react-image' import type { WithStyles } from 'react-jss' import withStyles from 'react-jss' import type { SaladTheme } from '../../../../SaladTheme' @@ -10,16 +9,28 @@ import type { DemandedHardwarePerformance } from '../../DemandMonitorStore' import saladBackgroundUrl from './assets/background.png' const styles: (theme: SaladTheme) => Record = (theme: SaladTheme) => ({ + modalWrapper: { + position: 'relative', + display: 'flex', + justifyContent: 'space-between', + alignItems: 'flex-start', + flexDirection: 'row', + maxWidth: '700px', + maxHeight: '430px', + }, modalContent: { position: 'relative', - width: '100%', + width: '80%', display: 'flex', backgroundColor: theme.darkBlue, - padding: '48px 48px 72px 180px', + padding: '48px 64px 72px 24px', flexDirection: 'column', alignItems: 'flex-start', - maxWidth: '800px', boxSizing: 'border-box', + '@media (max-width: 812px)': { + padding: '24px 16px 36px 16px', + width: '100%', + }, }, title: { color: theme.green, @@ -27,6 +38,9 @@ const styles: (theme: SaladTheme) => Record = (theme: Sa display: 'flex', flexDirection: 'column', fontSize: '28px', + '@media (max-width: 812px)': { + fontSize: '20px', + }, }, subtitle: { color: theme.green, @@ -50,10 +64,23 @@ const styles: (theme: SaladTheme) => Record = (theme: Sa textDecoration: 'underline', cursor: 'pointer', }, + saladImageWrapper: { + position: 'relative', + height: '500px', + width: '35%', + '@media (max-width: 812px)': { + display: 'none', + }, + }, saladImage: { position: 'absolute', top: '0px', - left: '0px', + right: '0px', + width: '100%', + height: '100%', + backgroundImage: `url(${saladBackgroundUrl})`, + backgroundRepeat: 'no-repeat', + backgroundSize: 'contain', }, closeIcon: { position: 'absolute', @@ -108,36 +135,40 @@ const _GetNotifiedDemandChangesModal = ({ return ( -
-

Get Notified Of Demand Changes

-

- You can set up alerts to be notified when the demand level of a GPU reaches your sweet spot, even at a - specific priority tier. -

-
-

Already have an account?

+
+
+
+
+
+

Get Notified Of Demand Changes

- Setting up alerts is easier and more powerful while{' '} - - logged in - + You can set up alerts to be notified when the demand level of a GPU reaches your sweet spot, even at a + specific priority tier.

-
-

Not yet a chef? No problem!

-

- No need to create an account, simply select the GPU you wish to get alerts for and click continue. -

-
-
-
- {demandHardwareOptions && } -
+
+

Already have an account?

+

+ Setting up alerts is easier and more powerful while{' '} + + logged in + +

-
-
- salad-background
)