Skip to content

Commit

Permalink
ニュースもだった
Browse files Browse the repository at this point in the history
  • Loading branch information
naohanpen committed Aug 17, 2024
1 parent ed87f05 commit 9edcb7f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/app/news/[news_id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import { container } from "@styled-system/patterns";
import { css } from "@styled-system/css";
import useSWR from "swr";
import { assignType } from "@/lib/openapi";
import { News } from "@/common_components/news/News";
Expand Down Expand Up @@ -28,7 +29,15 @@ const NewsDetailsPage: NextPage<{ params: { news_id: string } }> = ({ params })

return (
<div className={container({ maxWidth: "4xl" })}>
<News news={news} />
<div
className={css({
marginBottom: "60px",
md: {
marginBottom: 0,
},
})}>
<News news={news} />
</div>
</div>
);
};
Expand Down
9 changes: 8 additions & 1 deletion src/app/news/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ const NewsPage: NextPage = () => {
<Title className={css({ fontSize: "2xl", fontWeight: "bold" })}>お知らせ一覧</Title>
</div>
<div className={center()}>
<div className={css({ width: "90%" })}>
<div
className={css({
width: "90%",
marginBottom: "60px",
md: {
marginBottom: 0,
},
})}>
<NewsView />
</div>
</div>
Expand Down

0 comments on commit 9edcb7f

Please sign in to comment.