File size: 1,009 Bytes
0509f82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from 'react';
import { AppBar, Toolbar, Typography, Box, Container } from '@mui/material';
import MovieIcon from '@mui/icons-material/Movie';
import { Link } from 'wouter';

function Header() {
  return (
    <AppBar position="static" sx={{ backgroundColor: '#2C3E50', boxShadow: 2, mb: 2 }}>

      <Container maxWidth="lg">

        <Toolbar sx={{ justifyContent: 'space-between' }}>

          <Box sx={{ display: 'flex', alignItems: 'center' }}>

            <MovieIcon sx={{ mr: 1, fontSize: 28 }} />

            <Typography

              variant="h6"

              component={Link}

              to="/"

              sx={{ 

                textDecoration: 'none', 

                color: 'white', 

                fontWeight: 'bold',

                cursor: 'pointer'

              }}

            >

              Movie Review Analyzer

            </Typography>

          </Box>

        </Toolbar>

      </Container>

    </AppBar>
  );
}

export default Header;