-
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.
- Loading branch information
Showing
9 changed files
with
276 additions
and
303 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export default function Cams() { | ||
return <div></div>; | ||
return <div></div>; | ||
} |
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 |
---|---|---|
@@ -1,62 +1,62 @@ | ||
'use client' | ||
"use client"; | ||
|
||
import * as React from 'react'; | ||
import { styled, alpha } from '@mui/material/styles'; | ||
import SearchIcon from '@mui/icons-material/Search'; | ||
import InputBase from '@mui/material/InputBase'; | ||
import * as React from "react"; | ||
import { styled, alpha } from "@mui/material/styles"; | ||
import SearchIcon from "@mui/icons-material/Search"; | ||
import InputBase from "@mui/material/InputBase"; | ||
|
||
const Search = styled('div')(({ theme }) => ({ | ||
position: 'relative', | ||
borderRadius: theme.shape.borderRadius, | ||
backgroundColor: '#efefef', | ||
'&:hover': { | ||
backgroundColor: alpha(theme.palette.common.white, 0.25), | ||
}, | ||
marginLeft: 0, | ||
width: '100%', | ||
[theme.breakpoints.up('sm')]: { | ||
marginLeft: theme.spacing(1), | ||
width: 'auto', | ||
}, | ||
const Search = styled("div")(({ theme }) => ({ | ||
position: "relative", | ||
borderRadius: theme.shape.borderRadius, | ||
backgroundColor: "#efefef", | ||
"&:hover": { | ||
backgroundColor: alpha(theme.palette.common.white, 0.25), | ||
}, | ||
marginLeft: 0, | ||
width: "100%", | ||
[theme.breakpoints.up("sm")]: { | ||
marginLeft: theme.spacing(1), | ||
width: "auto", | ||
}, | ||
})); | ||
|
||
const SearchIconWrapper = styled('div')(({ theme }) => ({ | ||
padding: theme.spacing(0, 2), | ||
height: '100%', | ||
position: 'absolute', | ||
pointerEvents: 'none', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
const SearchIconWrapper = styled("div")(({ theme }) => ({ | ||
padding: theme.spacing(0, 2), | ||
height: "100%", | ||
position: "absolute", | ||
pointerEvents: "none", | ||
display: "flex", | ||
alignItems: "center", | ||
justifyContent: "center", | ||
})); | ||
|
||
const StyledInputBase = styled(InputBase)(({ theme }) => ({ | ||
color: 'inherit', | ||
width: '100%', | ||
'& .MuiInputBase-input': { | ||
padding: theme.spacing(1, 1, 1, 0), | ||
// vertical padding + font size from searchIcon | ||
paddingLeft: `calc(1em + ${theme.spacing(4)})`, | ||
transition: theme.transitions.create('width'), | ||
[theme.breakpoints.up('sm')]: { | ||
width: '12ch', | ||
'&:focus': { | ||
width: '20ch', | ||
}, | ||
}, | ||
}, | ||
color: "inherit", | ||
width: "100%", | ||
"& .MuiInputBase-input": { | ||
padding: theme.spacing(1, 1, 1, 0), | ||
// vertical padding + font size from searchIcon | ||
paddingLeft: `calc(1em + ${theme.spacing(4)})`, | ||
transition: theme.transitions.create("width"), | ||
[theme.breakpoints.up("sm")]: { | ||
width: "12ch", | ||
"&:focus": { | ||
width: "20ch", | ||
}, | ||
}, | ||
}, | ||
})); | ||
|
||
export default function Home() { | ||
return ( | ||
<Search> | ||
<SearchIconWrapper> | ||
<SearchIcon /> | ||
</SearchIconWrapper> | ||
<StyledInputBase | ||
placeholder="Search…" | ||
inputProps={{ 'aria-label': 'search' }} | ||
/> | ||
</Search> | ||
); | ||
return ( | ||
<Search> | ||
<SearchIconWrapper> | ||
<SearchIcon /> | ||
</SearchIconWrapper> | ||
<StyledInputBase | ||
placeholder="Search…" | ||
inputProps={{ "aria-label": "search" }} | ||
/> | ||
</Search> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import Navbar from '@/app/components/Navbar' | ||
import Navbar from "@/app/components/Navbar"; | ||
|
||
export default function NavLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<> | ||
<Navbar /> | ||
<div>{children}</div> | ||
</> | ||
); | ||
export default function NavLayout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<> | ||
<Navbar /> | ||
<div>{children}</div> | ||
</> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
export default function Stat() { | ||
return ( | ||
<div>stat page</div> | ||
); | ||
return <div>stat page</div>; | ||
} |
Oops, something went wrong.