-
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.
Bug: #1 Signed-off-by: Laurent Fasani <[email protected]>
- Loading branch information
Showing
9 changed files
with
127 additions
and
5 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
Binary file not shown.
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
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,41 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 CEA LIST. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Obeo - initial API and implementation | ||
*******************************************************************************/ | ||
import IconButton from '@mui/material/IconButton'; | ||
import Link from '@mui/material/Link'; | ||
import { emphasize } from '@mui/material/styles'; | ||
import { makeStyles } from 'tss-react/mui'; | ||
import HelpIcon from '@mui/icons-material/Help'; | ||
|
||
const useHelpStyle = makeStyles()((theme) => ({ | ||
onDarkBackground: { | ||
'&:hover': { | ||
backgroundColor: emphasize(theme.palette.secondary.main, 0.08), | ||
}, | ||
}, | ||
})); | ||
|
||
export const Help = () => { | ||
const { classes } = useHelpStyle(); | ||
return ( | ||
<Link | ||
href="https://github.com/ObeoNetwork/pepper" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
color="inherit" | ||
data-testid="help-link"> | ||
<IconButton className={classes.onDarkBackground} color="inherit"> | ||
<HelpIcon /> | ||
</IconButton> | ||
</Link> | ||
); | ||
}; |
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,17 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 CEA LIST. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Obeo - initial API and implementation | ||
*******************************************************************************/ | ||
import pepperImage from '../icons/pepper-icon.png'; | ||
|
||
export const PepperIcon = () => { | ||
return <img src={pepperImage} alt="Back to the homepage" height="25px" width="25px" />; | ||
}; |
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,39 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 CEA LIST. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Obeo - initial API and implementation | ||
*******************************************************************************/ | ||
import Link from '@mui/material/Link'; | ||
import { makeStyles } from 'tss-react/mui'; | ||
import Typography from '@mui/material/Typography'; | ||
|
||
const useFooterStyles = makeStyles()((theme) => ({ | ||
footer: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
margin: theme.spacing(2), | ||
'& > *': { | ||
marginLeft: theme.spacing(0.5), | ||
marginRight: theme.spacing(0.5), | ||
}, | ||
}, | ||
})); | ||
|
||
export const Footer = () => { | ||
const { classes } = useFooterStyles(); | ||
return ( | ||
<footer className={classes.footer}> | ||
<Typography variant="caption">© {new Date().getFullYear()} CEA LIST. Powered by </Typography> | ||
<Link variant="caption" href="https://github.com/ObeoNetwork/pepper" rel="noopener noreferrer" target="_blank"> | ||
ObeoNetwork/Pepper | ||
</Link> | ||
</footer> | ||
); | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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