generated from RENCI/react-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from RENCI/feature/nopp
Logo changes for NOPP branded website
- Loading branch information
Showing
3 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React from 'react'; | ||
import { | ||
Box, | ||
Stack, | ||
} from '@mui/joy'; | ||
import apsLogo from '@images/aps-trans-logo.png'; | ||
import noppLogo from '@images/nopp-logo.png'; | ||
import { getBrandingHandler } from "@utils/map-utils"; | ||
|
||
|
||
export const Branding = () => { | ||
|
||
// get the branded website if any | ||
let product_code = getBrandingHandler(); | ||
// for testing: let product_code = '&project_code=nopp'; | ||
if (product_code) { | ||
product_code = product_code.split('=')[1]; | ||
} | ||
|
||
return ( | ||
<div> | ||
{product_code === "nopp" ? | ||
( <Stack direction="row" gap={ 1 } alignItems="center"> | ||
<Box | ||
component="img" | ||
width="100px" | ||
alt="National Oceanograhic Partnership Program" | ||
src={noppLogo} | ||
/> | ||
<Box | ||
component="img" | ||
width="150px" | ||
alt="ADCIRC Prediction System" | ||
src={apsLogo} | ||
/> | ||
</Stack>) | ||
: | ||
( <Stack direction="column" gap={ 1 } alignItems="center"> | ||
<Box | ||
component="img" | ||
width="250px" | ||
alt="ADCIRC Prediction System" | ||
src={apsLogo} | ||
/> | ||
</Stack>) | ||
} | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.