Skip to content

Commit

Permalink
Add image to asset page
Browse files Browse the repository at this point in the history
  • Loading branch information
mrica-equinor committed Sep 4, 2024
1 parent e2898cc commit a7b82a1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ import { config } from 'config'
import { AlertType, useAlertContext } from 'components/Contexts/AlertContext'
import { FailedRequestAlertContent, FailedRequestAlertListContent } from 'components/Alerts/FailedRequestAlert'
import { AlertCategory } from 'components/Alerts/AlertsBanner'
import assetImage from 'mediaAssets/assetPage.jpg'

const Centered = styled.div`
display: flex;
flex-direction: column;
align-items: center;
margin-top: 5rem;
padding-top: 10px;
`
const StyledAssetSelection = styled.div`
display: flex;
Expand All @@ -32,6 +33,22 @@ const StyledCheckbox = styled(Checkbox)`
const StyledButton = styled(Button)`
justify-content: center;
`
const StyledImage = styled.img`
width: 100vw;
object-fit: cover;
height: 500px;
@media (max-width: 500px) {
height: 400px;
}
`
const StyledContent = styled.div`
display: flex;
flex-direction: column;
align-items: center;
padding-top: 80px;
gap: 80px;
`

const handleLogin = (instance: IPublicClientApplication) => {
instance.loginRedirect(loginRequest).catch((e) => {
Expand All @@ -54,10 +71,10 @@ export const AssetSelectionPage = () => {
{isAuthenticated ? (
<>
<Header page={'root'} />
<Centered>
<StyledContent>
<InstallationPicker />
{/* TODO! ADD image here*/}
</Centered>
<StyledImage src={assetImage} />
</StyledContent>
</>
) : (
<Centered>
Expand Down
Binary file added frontend/src/mediaAssets/assetPage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a7b82a1

Please sign in to comment.