Skip to content

Commit

Permalink
added aps logo, needs better alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
lstillwe committed May 2, 2024
1 parent e857fef commit cbcf297
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/components/control-panel/control-panel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react';
import { useLayers } from '@context/map-context';
import { Sheet, ButtonGroup, Button, Typography, IconButton } from '@mui/joy';
import { Sheet, ButtonGroup, Button, Typography, IconButton, Box } from '@mui/joy';
import { ArrowUpward, ArrowDownward } from '@mui/icons-material';
import apsLogo from '@images/aps-trans-logo.png';


//import { useLayers } from '@context';
Expand All @@ -12,6 +13,7 @@ export const ControlPanel = () => {
const layers = [...defaultModelLayers];

return (
<>
<Sheet
variant="plain"
sx={{
Expand All @@ -27,7 +29,14 @@ export const ControlPanel = () => {
borderRadius: 10,

}}
> { (layers.length) &&
>
<Box
component="img"
sx={{height: 64,}}
alt="ADCIRC Prediction System"
src={apsLogo}
/>
{ (layers.length) &&
<p style={{paddingLeft: 30, color: 'white'}}>model run date: {layers[0].properties.run_date}</p>
}
<Typography sx={{ paddingLeft: 10, color: "white" }} component="label" endDecorator={<ButtonGroup>
Expand Down Expand Up @@ -59,5 +68,6 @@ export const ControlPanel = () => {
})};
</ButtonGroup>
</Sheet>
</>
);
};

0 comments on commit cbcf297

Please sign in to comment.