Skip to content

Commit 18cee44

Browse files
スタイルの調整とコンテンツの追加
1 parent cfe8580 commit 18cee44

File tree

6 files changed

+29
-9
lines changed

6 files changed

+29
-9
lines changed

src/app/[article_year]/[month]/[aid]/page.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ html {
247247
margin-top: 40px;
248248
top: 20px;
249249
max-width: 250px;
250+
background-color: transparent;
250251
/* スクロール時に追従 */
251252
}
252253

@@ -295,12 +296,17 @@ html {
295296
.other-articles {
296297
position: relative;
297298
/* stickyを無効化 */
298-
max-width: none;
299+
max-width: 90vw;
300+
margin: 0 auto;
299301
top: auto;
300302
margin-top: 20px;
301303
/* 記事の下部に配置 */
302304
}
303305

306+
.other-articles .article-link {
307+
width: 90%;
308+
}
309+
304310
.article-content {
305311
position: relative;
306312
width: calc(100vw - 64px);

src/app/article/article.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
}
99

1010
.article-link {
11+
box-sizing: border-box;
1112
text-decoration: none;
1213
color: inherit;
1314
display: block;

src/app/article/page.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ export default async function Home() {
1212
<section className="title">
1313
<h1>{t("article.title")}</h1>
1414
</section>
15+
<section className="description">
16+
<p>{t("article.description.msg1")}</p>
17+
<p>{t("article.description.msg2")}</p>
18+
</section>
1519
<section className="articles">
1620
{articles.map(
1721
(article: Article): ReactNode => generateArticleButton(article)

src/app/globals.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,16 @@ main>section.title>h1 {
125125
padding: 2rem;
126126
}
127127

128+
section.title {
129+
background-color: transparent;
130+
}
131+
128132
section {
129133
padding: 1rem;
130134
margin: 1rem;
135+
border-radius: 16px;
136+
background-color: color-mix(in srgb, transparent 50%, var(--background));
137+
backdrop-filter: blur(4px);
131138
}
132139

133140
section h1,

src/app/layout/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { Chakra_Petch } from "next/font/google";
44
import Link from "next/link";
55
import Image from "next/image"; // Import Image component
6-
import TheInfiniteImage from "../../../public/The-Infinite.svg";
6+
// import TheInfiniteImage from "../../../public/The-Infinite.svg";
77
import React, { useState } from "react";
88
import { TheInfiniteX } from "./img";
99
const chakraPetch = Chakra_Petch({
@@ -56,7 +56,7 @@ export default function Header() {
5656
justifyContent: "flex-start",
5757
}}
5858
>
59-
<Image src={TheInfiniteImage} alt="" width={30} height={30} />
59+
{/* <Image src={TheInfiniteImage} alt="" width={30} height={30} /> */}
6060
<h1
6161
className={`${chakraPetch.className} italic font-semibold text-3xl`} // Use Tailwind classes
6262
style={{

src/app/page.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ export default function Home() {
77
<section className="title">
88
<h1>{t("home.title")}</h1>
99
</section>
10-
<p>{t("home.description.msg1")}</p>
11-
<p>{t("home.description.msg2")}</p>
12-
<p>{t("home.description.msg3")}</p>
13-
<p>{t("home.description.msg4")}</p>
14-
<p>{t("home.description.msg5")}</p>
15-
<p>{t("home.description.msg6")}</p>
10+
<section>
11+
<p>{t("home.description.msg1")}</p>
12+
<p>{t("home.description.msg2")}</p>
13+
<p>{t("home.description.msg3")}</p>
14+
<p>{t("home.description.msg4")}</p>
15+
<p>{t("home.description.msg5")}</p>
16+
<p>{t("home.description.msg6")}</p>
17+
</section>
1618
</>
1719
);
1820
}

0 commit comments

Comments
 (0)