From d2d0c857c4d4a0afb7381a8dbf8beac327f055d8 Mon Sep 17 00:00:00 2001
From: Nico <60229704+Marchand-Nicolas@users.noreply.github.com>
Date: Mon, 16 Dec 2024 16:59:09 +0100
Subject: [PATCH 1/2] fix: mui theme
---
app/layout.tsx | 18 ++++++--------
app/provider.tsx | 53 +----------------------------------------
components/UI/theme.tsx | 13 ----------
styles/theme.ts | 49 +++++++++++++++++++++++++++++++++----
4 files changed, 52 insertions(+), 81 deletions(-)
delete mode 100644 components/UI/theme.tsx
diff --git a/app/layout.tsx b/app/layout.tsx
index aef1e218..2cdc80b5 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -4,14 +4,14 @@ import { Providers } from "./provider";
import "@styles/globals.css";
import Navbar from "@components/UI/navbar";
import Footer from "@components/UI/footer";
-import { ThemeProvider } from "@mui/material";
-import { theme } from "@components/UI/theme";
export const metadata: Metadata = {
title: "Starknet Quest",
description:
"Starknet Quest helps protocols attract and retain users by creating gamified quest experiences on Starknet.",
- metadataBase: process.env.NEXT_PUBLIC_APP_LINK ? new URL(process.env.NEXT_PUBLIC_APP_LINK) : undefined,
+ metadataBase: process.env.NEXT_PUBLIC_APP_LINK
+ ? new URL(process.env.NEXT_PUBLIC_APP_LINK)
+ : undefined,
openGraph: {
title: "Starknet Quest - Accomplish quests to get unique NFTs.",
description:
@@ -21,7 +21,7 @@ export const metadata: Metadata = {
images: [
{
url: "/visuals/starknetquest.webp",
- width: 680,
+ width: 680,
height: 680,
},
],
@@ -55,13 +55,9 @@ export default function RootLayout({
-
-
-
- {children}
-
-
-
+
+ {children}
+
diff --git a/app/provider.tsx b/app/provider.tsx
index e6af9378..12aa217a 100644
--- a/app/provider.tsx
+++ b/app/provider.tsx
@@ -21,6 +21,7 @@ import { NotificationProvider } from "@context/NotificationProvider";
import { LocalizationProvider } from "@mui/x-date-pickers";
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
import { getConnectors } from "@utils/walletConfig";
+import theme from "@styles/theme";
// Traffic measures
if (typeof window !== "undefined") {
@@ -47,58 +48,6 @@ export function Providers({ children }: { children: React.ReactNode }) {
}),
});
- const theme = createTheme({
- palette: {
- primary: {
- main: "#6affaf",
- light: "#5ce3fe",
- },
- secondary: {
- main: "#f4faff",
- dark: "#eae0d5",
- },
- background: {
- default: "#29282b",
- },
- },
- components: {
- MuiTabs: {
- styleOverrides: {
- root: {
- "& .MuiTabs-flexContainer": {
- display: "flex",
- flexDirection: "column", // For mobile versions
- alignItems: "center",
- ["@media (min-width:768px)"]: {
- flexDirection: "row", // For desktop versions
- },
- },
- },
- // Overrides the styles for the selected tab indicator
- indicator: {
- backgroundColor: "transparent",
- },
- },
- },
- MuiTab: {
- styleOverrides: {
- // Overrides the styles for unselected tabs
- root: {
- color: "#E1DCEA", // Text color for unselected tabs
- width: "100%",
- ["@media (min-width:768px)"]: {
- width: "fit-content",
- },
- "&.Mui-selected": {
- color: "#000", // Text color for the selected tab
- backgroundColor: "#fff", // Background of the selected tab
- },
- },
- },
- },
- },
- });
-
return (
Date: Fri, 20 Dec 2024 10:46:09 +0100
Subject: [PATCH 2/2] removing footer copy
---
app/layout.tsx | 1 -
1 file changed, 1 deletion(-)
diff --git a/app/layout.tsx b/app/layout.tsx
index aee3734c..895b6582 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -20,7 +20,6 @@ export default function RootLayout({
{children}
-
{pathname !== "/" && }