Skip to content

Commit

Permalink
Merge pull request #97 from cohstats/master-conatiner
Browse files Browse the repository at this point in the history
Make the master container bigger
  • Loading branch information
petrvecera committed Mar 11, 2023
2 parents 20a230b + 8e3e00d commit ee48beb
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
12 changes: 12 additions & 0 deletions components/Content-container.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Container } from "@mantine/core";

interface ContentContainerProps {
children: React.ReactNode;
}

// Do we need any media queries here for responsiveness?
const ContentContainer: React.FC<ContentContainerProps> = ({ children }) => (
<Container size={1250}>{children}</Container>
);

export default ContentContainer;
6 changes: 5 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import CustomSpotlightProvider from "../components/customSpotlightProvider";
import { useEffect, useRef } from "react";
import NProgress from "nprogress";
import "../components/other/nprogress.css";
import ContentContainer from "../components/Content-container";

webFirebase.init();

Expand Down Expand Up @@ -80,7 +81,10 @@ export default function App(props: AppProps & { colorScheme: ColorScheme }) {
const contentWithLayout = (
<>
<Header />
<Component {...pageProps} />
<ContentContainer>
{" "}
<Component {...pageProps} />
</ContentContainer>
<Footer />
</>
);
Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Discord } from "../components/icon/discord";

const Home: NextPage = () => {
return (
<Container size={"lg"}>
<Container fluid>
<Image
src="/coming-soon/coh3-background.jpg"
alt={"coh3-background"}
Expand Down
2 changes: 1 addition & 1 deletion pages/leaderboards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const Leaderboards = ({
content={`COH3 Ranked leaderboards for faction ${localizedRace} and game type ${localizedType}.`}
/>
</Head>
<Container size={"lg"}>
<Container fluid>
<Container fluid>
<Group position={"apart"}>
<Group>
Expand Down
2 changes: 1 addition & 1 deletion pages/players/[playerID].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const PlayerCard = ({
content={`COH3 Stats - player card for player ${playerData.info.name}.`}
/>
</Head>
<Container size={"lg"}>
<Container fluid>
<Container fluid>
<Group>
<Avatar
Expand Down
2 changes: 1 addition & 1 deletion pages/unit-example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { UnitUpgradeCard } from "../components/unit-cards/unit-upgrade-card";
*/
const UnitExample = () => {
return (
<Container size="lg">
<Container fluid>
<Title order={3} mb={8}>
<Text fw={700}>This is an example Unit Stats Page.</Text>
</Title>
Expand Down

0 comments on commit ee48beb

Please sign in to comment.