diff --git a/src/components/layouts/footer/styles.css.ts b/src/components/layouts/footer/styles.css.ts index 6b55f85..c6f9152 100644 --- a/src/components/layouts/footer/styles.css.ts +++ b/src/components/layouts/footer/styles.css.ts @@ -4,7 +4,7 @@ import { theme } from "../../../theme/theme.css"; export const container = styled.css` position: relative; width: 100%; - max-width: ${theme.fontSize.calc(45)}; + max-width: ${theme.fontSize.calc(50)}; margin: 0 auto; padding: ${theme.spacing.calc(5)} ${theme.spacing.calc(8)}; display: flex; diff --git a/src/components/layouts/grid/styles.css.ts b/src/components/layouts/grid/styles.css.ts index 94fb19c..49097d0 100644 --- a/src/components/layouts/grid/styles.css.ts +++ b/src/components/layouts/grid/styles.css.ts @@ -15,11 +15,11 @@ export const container = styled.css` > * { width: calc((100% - ${theme.spacing.calc(4)}) / 3); - @media screen and (max-width: ${theme.fontSize.calc(75)}) { + @media screen and (max-width: ${theme.fontSize.calc(80)}) { width: calc((100% - ${theme.spacing.calc(2)}) / 2); } - @media screen and (max-width: ${theme.fontSize.calc(45)}) { + @media screen and (max-width: ${theme.fontSize.calc(50)}) { width: 100%; } } diff --git a/src/components/layouts/main/index.tsx b/src/components/layouts/main/index.tsx index 2ce86d9..c25adad 100644 --- a/src/components/layouts/main/index.tsx +++ b/src/components/layouts/main/index.tsx @@ -1,8 +1,11 @@ import React, { PropsWithChildren } from "react"; +import { cx } from "@syfxlin/reve"; import * as styles from "./styles.css"; -export type MainProps = PropsWithChildren; +export type MainProps = PropsWithChildren<{ + className?: string; +}>; -export const Main: React.FC = ({ children }) => { - return
{children}
; +export const Main: React.FC = ({ children, className }) => { + return
{children}
; }; diff --git a/src/components/layouts/main/styles.css.ts b/src/components/layouts/main/styles.css.ts index d949eca..f6051b7 100644 --- a/src/components/layouts/main/styles.css.ts +++ b/src/components/layouts/main/styles.css.ts @@ -6,7 +6,7 @@ export const container = styled.css` position: relative; margin: 0 auto; width: 100%; - max-width: ${theme.fontSize.calc(45)}; + max-width: ${theme.fontSize.calc(50)}; padding: 0 ${theme.spacing.calc(8)}; animation: fade-in 0.5s ease; `; diff --git a/src/components/templates/articles/index.tsx b/src/components/templates/articles/index.tsx index 11a79f1..4c22e8f 100644 --- a/src/components/templates/articles/index.tsx +++ b/src/components/templates/articles/index.tsx @@ -59,27 +59,29 @@ export const TemplateArticles: React.FC = (props) => { return ( <>
-
- - {props.display === "document" && ( + {props.display === "document" && ( +
- - {t("articles.heading")} - {props.articles.map(item => )} - + +
- )} - {props.display === "articles" && ( - <> -
- {props.articles.items.map(item => ( - - ))} -
- - - )} -
+
+ {t("articles.heading")} + {props.articles.map(item => )} +
+
+ )} + {props.display === "articles" && ( +
+ +
+ {props.articles.items.map(item => ( + + ))} +
+ +
+ )}