Added icon, removed multi platform building

main
Guus van Meerveld 3 years ago
parent f61679b7f9
commit 3d556ef5bc
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -56,11 +56,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: test needs: test
steps: steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
@ -77,10 +72,7 @@ jobs:
with: with:
push: true push: true
tags: guusvanmeerveld/materialtube:latest tags: guusvanmeerveld/materialtube:latest
platforms: |
linux/amd64
linux/arm64
linux/arm/v7
# Cache # Cache
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max

@ -4,9 +4,6 @@
**/ **/
module.exports = { module.exports = {
reactStrictMode: true, reactStrictMode: true,
experimental: {
emotion: true
},
eslint: { eslint: {
ignoreDuringBuilds: true ignoreDuringBuilds: true
}, },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 935 B

@ -17,7 +17,8 @@ import {
Menu, Menu,
Whatshot, Whatshot,
PlaylistAddCheck, PlaylistAddCheck,
Settings Settings,
PlayCircleOutline
} from "@mui/icons-material"; } from "@mui/icons-material";
import Drawer from "@components/Navbar/Drawer"; import Drawer from "@components/Navbar/Drawer";
@ -39,20 +40,20 @@ const Navbar: FC = () => {
}; };
const pages = [ const pages = [
{ name: "Trending", icon: <Whatshot sx={{ mr: 1 }} />, link: "trending" }, { name: "Trending", icon: <Whatshot />, link: "trending" },
{ {
name: "Subscriptions", name: "Subscriptions",
icon: <Subscriptions sx={{ mr: 1 }} />, icon: <Subscriptions />,
link: "subscriptions" link: "subscriptions"
}, },
{ {
name: "Watch History", name: "Watch History",
icon: <History sx={{ mr: 1 }} />, icon: <History />,
link: "history" link: "history"
}, },
{ {
name: "Playlists", name: "Playlists",
icon: <PlaylistAddCheck sx={{ mr: 1 }} />, icon: <PlaylistAddCheck />,
link: "playlists" link: "playlists"
} }
]; ];
@ -77,25 +78,30 @@ const Navbar: FC = () => {
> >
<Menu /> <Menu />
</IconButton> </IconButton>
<Typography variant="h6" component="div" sx={{ mr: 2 }}> <Typography
variant="h6"
component="div"
sx={{ mr: 2, display: "flex", alignItems: "center" }}
>
<PlayCircleOutline sx={{ mr: 1 }} />
{packageInfo.displayName} {packageInfo.displayName}
</Typography> </Typography>
<Box sx={{ flexGrow: 1, display: { md: "flex", xs: "none" } }}> <Box sx={{ flexGrow: 1, display: { md: "flex", xs: "none" } }}>
{pages.map((page, i) => ( {pages.map((page, i) => (
<Link key={i} href={"/" + page.link}> <Link key={i} href={"/" + page.link} passHref>
<a> <Button
<Button sx={{
sx={{ my: 2,
my: 2, color: "white",
color: "white", display: "flex",
display: "flex", alignItems: "center"
alignItems: "center" }}
}} >
> <Box sx={{ mr: 1, display: "flex", alignItems: "center" }}>
{page.icon} {page.icon}
{page.name} </Box>
</Button> {page.name}
</a> </Button>
</Link> </Link>
))} ))}
</Box> </Box>

@ -8,9 +8,6 @@ import { useMemo } from "react";
import { QueryClient, QueryClientProvider } from "react-query"; import { QueryClient, QueryClientProvider } from "react-query";
import { ReactQueryDevtools } from "react-query/devtools"; import { ReactQueryDevtools } from "react-query/devtools";
import createCache from "@emotion/cache";
import { CacheProvider } from "@emotion/react";
import CssBaseline from "@mui/material/CssBaseline"; import CssBaseline from "@mui/material/CssBaseline";
import { ThemeProvider } from "@mui/material/styles"; import { ThemeProvider } from "@mui/material/styles";
import useMediaQuery from "@mui/material/useMediaQuery"; import useMediaQuery from "@mui/material/useMediaQuery";
@ -21,26 +18,22 @@ import "@styles/globals.sass";
const queryClient = new QueryClient(); const queryClient = new QueryClient();
const cache = createCache({ key: "next" });
const App = ({ Component, pageProps }: AppProps) => { const App = ({ Component, pageProps }: AppProps) => {
const prefersDarkMode = useMediaQuery("(prefers-color-scheme: dark)"); const prefersDarkMode = useMediaQuery("(prefers-color-scheme: dark)");
const theme = useMemo(() => createTheme(prefersDarkMode), [prefersDarkMode]); const theme = useMemo(() => createTheme(prefersDarkMode), [prefersDarkMode]);
return ( return (
<CacheProvider value={cache}> <QueryClientProvider client={queryClient}>
<QueryClientProvider client={queryClient}> {process.env.NODE_ENV != "production" && (
{process.env.NODE_ENV != "production" && ( <ReactQueryDevtools initialIsOpen={true} />
<ReactQueryDevtools initialIsOpen={true} /> )}
)} <ThemeProvider theme={theme}>
<ThemeProvider theme={theme}> <CssBaseline />
<CssBaseline /> <DefaultSeo {...SEO} />
<DefaultSeo {...SEO} /> <Component {...pageProps} />
<Component {...pageProps} /> </ThemeProvider>
</ThemeProvider> </QueryClientProvider>
</QueryClientProvider>
</CacheProvider>
); );
}; };

Loading…
Cancel
Save