Skip to content

Commit

Permalink
chore: update files
Browse files Browse the repository at this point in the history
  • Loading branch information
haru52 committed Jun 15, 2024
1 parent 9852232 commit 58333da
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/app/[userScreenName]/edit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function Page({
if (session.user.id !== user.id) notFound();

return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1 className="text-center">{user.name}のプロフィールを編集</h1>
<EditForm user={user} />
<DeleteUserLink />
Expand Down
2 changes: 1 addition & 1 deletion src/app/[userScreenName]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default async function Page({
const socials = user.avatars.map((avatar) => avatar.social).sort(compare);
const posts = await api.post.getAllByUserId(user.id);
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<div className="not-prose avatar">
<div className="w-24 rounded-full">
<Image
Expand Down
2 changes: 1 addition & 1 deletion src/app/contact/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function Page() {
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1>Contact</h1>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function NotFound() {
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1>404 Not Found</h1>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async function Page() {
return session === null ? (
<Hero />
) : (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
{user !== null && avatars !== null && avatars.length >= 1 ? (
<Home user={user} avatars={avatars} />
) : (
Expand Down
2 changes: 1 addition & 1 deletion src/app/privacy-policy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const metadata: Metadata = {

export default function Page() {
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1 className="text-center">プライバシーポリシー</h1>
<p className="text-right">2024 年 6 月 2 日</p>
<ol>
Expand Down
2 changes: 1 addition & 1 deletion src/app/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default async function Page({
: await api.post.searchInCurrentSocial(q);

return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<Posts posts={posts} />
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default async function Page() {
return null;
}
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1>サインアップ</h1>
<SignupForm />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/socials/[screenName]/[avatarScreenName]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default async function Page({
const posts = avatar.posts.reverse();

return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<div className="not-prose avatar">
<div className="w-24 rounded-full">
<Image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default async function Page({
if (post === null) notFound();
const isAuthor = post.createdBy.userId === session.user.id;
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<PostDetailOrEdit post={post} isAuthor={isAuthor} />
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/socials/[screenName]/avatars/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default async function Page({
? undefined
: loginUser.avatars.find((avatar) => avatar.socialId === social.id);
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1 className="text-center">{social.name}のメンバー</h1>
<Avatars avatars={social.avatars} loginAvatarId={loginAvatar?.id} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/socials/[screenName]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default async function Page({
const avatar =
user === null ? null : await api.avatar.getMyAvatarBySocialId(social.id);
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<SocialDetailOrEdit
social={social}
user={user}
Expand Down
2 changes: 1 addition & 1 deletion src/app/socials/new/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CreateSocialForm } from "~/app/_components/socials/create-social-form";

export default function Page() {
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1>ソーシャルを作成</h1>
<CreateSocialForm />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/socials/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function Page() {
const socials = await api.social.getAll();
const avatars = session === null ? null : await api.avatar.getMyAvatars();
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1 className="text-center">ソーシャル</h1>
{session !== null && (
<Link href="/socials/new" className="btn btn-primary">
Expand Down
2 changes: 1 addition & 1 deletion src/app/terms-of-service/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const metadata: Metadata = {

export default function Page() {
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1 className="text-center">利用規約</h1>
<p className="text-right">2024 年 6 月 2 日</p>
<ol>
Expand Down
2 changes: 1 addition & 1 deletion src/app/users/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const metadata: Metadata = {
export default async function Page() {
const users = await api.user.getAll();
return (
<div className="container prose mx-auto mb-10 mt-5">
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1 className="text-center">ユーザー</h1>
<Users users={users} />
</div>
Expand Down

0 comments on commit 58333da

Please sign in to comment.