Professional Documents
Culture Documents
UTS PBW No.7
UTS PBW No.7
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-
manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
<title>REFIL</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
CSS
html,body{
height: 100%;
position: relative;
}
JS
function Home() {
const [anchorElNav, setAnchorElNav] = useState(null);
useEffect(() => {
if (value === 0) navigate("/");
else if (value === 1) navigate("/home.js");
else if (value === 2) navigate("/movies");
else if (value === 3) navigate("/series");
else if (value === 4) navigate("/books");
}, [value, navigate]);
return (
<>
<ThemeProvider theme={theme}>
<AppBar position="static" color="primary">
<Container maxWidth="xl">
<Toolbar disableGutters>
<Typography
variant="h6"
fontSize={30}
noWrap
component="a"
href="/"
sx={{
mr: 15,
display: { xs: "flex", md: "flex" },
fontFamily: "monospace",
fontWeight: 1000,
letterSpacing: ".3rem",
color: "red",
textDecoration: "none",
}}
>
ReFil
</Typography>
<Box
sx={{ flexGrow: 1, display: { xs: "none", md: "flex" } }}
></Box>