import PropTypes from 'prop-types'; import React from 'react'; import CssBaseline from '@material-ui/core/CssBaseline'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import Typography from '@material-ui/core/Typography'; import IconButton from '@material-ui/core/IconButton'; import GitHubIcon from '@material-ui/icons/GitHub'; import NewReleases from '@material-ui/icons/NewReleases'; import HomeIcon from '@material-ui/icons/Home'; import MenuIcon from '@material-ui/icons/Menu'; import Tooltip from '@material-ui/core/Tooltip'; import { Link as GatsbyLink } from 'gatsby'; import logo from '../images/codeceptjs-logo.png'; import cucumberLogo from '../images/cucumber-logo.png'; import Sidebar from './Sidebar'; import Drawer from '@material-ui/core/Drawer'; import Hidden from '@material-ui/core/Hidden'; import Avatar from '@material-ui/core/Avatar'; import Search from './Search'; import TelegramIcon from '@material-ui/icons/Telegram'; const drawerWidth = 240; const useStyles = makeStyles(theme => ({ root: { display: 'flex', }, drawer: { [theme.breakpoints.up('sm')]: { width: drawerWidth, flexShrink: 0, }, }, appBar: { zIndex: theme.zIndex.drawer + 1, }, menuButton: { marginRight: theme.spacing(2), [theme.breakpoints.up('md')]: { display: 'none', }, }, toolbar: theme.mixins.toolbar, drawerPaper: { width: drawerWidth, }, content: { flexGrow: 1, padding: theme.spacing(3), }, title: { flexGrow: 1, textDecoration: 'none', color: 'white', '&:hover': { textDecoration: 'none', color: 'lightgray', }, }, logoSection: { height: '65px', width: '65px', }, image: { width: '3%', height: '3%', 'margin-right': '10px', opacity: 0.9, }, cucumberImage: { width: '3.4%', height: '3.4%', 'margin-right': '10px', 'margin-left': '-30px', zIndex: -1, }, })); function Header({ siteTitle, siteDescription }, props) { const { container, location } = props; const classes = useStyles(); const theme = useTheme(); const [mobileOpen, setMobileOpen] = React.useState(false); const handleDrawerToggle = () => { setMobileOpen(!mobileOpen); }; return (
Codeceptjs BDD Framework Documentations Codeceptjs BDD { window.open( 'https://github.com/salesforce/codeceptjs-bdd', '_blank' ); }} >
); } Header.propTypes = { siteTitle: PropTypes.string, container: PropTypes.instanceOf( typeof Element === 'undefined' ? Object : Element ), }; Header.defaultProps = { siteTitle: ``, }; export default Header;