Skip to content

Commit 29c798e

Browse files
committed
footerを追加, 下部のpaddingを追加
1 parent 08babd9 commit 29c798e

File tree

6 files changed

+64
-5
lines changed

6 files changed

+64
-5
lines changed

app/(docs)/@chat/chat/[chatId]/chatArea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function ChatAreaContainer(props: {
2727
"has-chat-1:shadow-md has-chat-1:bg-base-200",
2828
// navbar(z-40)よりは下、ChatListForSectionのdropdown(デフォルトでz-999だがz-30に変えている)よりも上
2929
"z-35",
30-
"p-4",
30+
"p-4 pb-16",
3131
"flex flex-col",
3232
"overflow-y-auto"
3333
)}

app/(docs)/@docs/[lang]/[pageId]/pageContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export function PageContent(props: PageContentProps) {
146146
const [isFormVisible, setIsFormVisible] = useState(false);
147147

148148
return (
149-
<div className="flex-1 p-4 flex flex-col">
149+
<div className="flex-1 p-4 pb-16 flex flex-col">
150150
<div
151151
className="max-w-full mx-auto grid"
152152
style={{

app/footer.tsx

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
export function Footer() {
2+
return (
3+
<footer className="footer sm:footer-horizontal bg-neutral text-neutral-content p-10 z-30">
4+
<aside>
5+
<h6 className="flex gap-2 items-center">
6+
<img src="/icon.svg" alt="my.code(); Logo" className="w-12 h-12" />
7+
<span className="text-3xl font-semibold font-mono drop-shadow-sm">
8+
my.code();
9+
</span>
10+
</h6>
11+
<p className="text-lg">環境構築不要、その場で実践。</p>
12+
<a
13+
className="link link-hover"
14+
href="https://github.com/ut-code/my-code"
15+
target="_blank"
16+
>
17+
{/*<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->*/}
18+
<svg
19+
fill="currentColor"
20+
className="inline-block w-4 h-4 mr-1"
21+
viewBox="0 0 24 24"
22+
>
23+
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
24+
</svg>
25+
ut-code / my-code
26+
</a>
27+
<p>Copyright © 2026 ut.code();</p>
28+
</aside>
29+
<nav>
30+
<h6 className="footer-title normal-case">ut.code(); について</h6>
31+
<a
32+
className="link link-hover"
33+
href="https://utcode.net/"
34+
target="_blank"
35+
>
36+
公式ウェブサイト
37+
</a>
38+
<a
39+
className="link link-hover"
40+
href="https://twitter.com/utokyo_code"
41+
target="_blank"
42+
>
43+
公式 𝕏 アカウント
44+
</a>
45+
</nav>
46+
</footer>
47+
);
48+
}

app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { AutoAnonymousLogin } from "./accountMenu";
1313
import { SidebarMdProvider } from "./sidebar";
1414
import { RuntimeProvider } from "@my-code/runtime/context";
1515
import { getPagesList } from "@/lib/docs";
16+
import { Footer } from "./footer";
1617

1718
export const metadata: Metadata = {
1819
title: {
@@ -53,6 +54,7 @@ export default async function RootLayout({
5354
</div>
5455
</div>
5556
</SidebarMdProvider>
57+
<Footer />
5658
</body>
5759
</html>
5860
);

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const metadata: Metadata = {
1515
export default async function Home() {
1616
const pagesList = await getPagesList();
1717
return (
18-
<div className="w-full p-4">
18+
<div className="w-full p-4 pb-16 md:pb-20 lg:pb-24">
1919
<div className="max-w-docs mx-auto">
2020
<div
2121
className={clsx(

app/sidebar.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
"use client";
22
import Link from "next/link";
33
import { usePathname } from "next/navigation";
4-
import { DynamicMarkdownSection, LangId, LanguageEntry, PagePath, PageSlug } from "@/lib/docs";
4+
import {
5+
DynamicMarkdownSection,
6+
LangId,
7+
LanguageEntry,
8+
PagePath,
9+
PageSlug,
10+
} from "@/lib/docs";
511
import { AccountMenu } from "./accountMenu";
612
import { ThemeToggle } from "./themeToggle";
713
import {
@@ -151,7 +157,10 @@ export function Sidebar({ pagesList }: { pagesList: LanguageEntry[] }) {
151157
</span>
152158

153159
<ul
154-
className="menu w-full h-max flex-nowrap grow-1 overflow-y-auto overflow-x-clip"
160+
className={clsx(
161+
"menu w-full h-max flex-nowrap grow-1 overflow-y-auto overflow-x-clip",
162+
"pb-8 md:pb-12 lg:pb-16"
163+
)}
155164
style={{
156165
scrollbarGutter: "stable",
157166
// DaisyUIはスクロールバーカラーを変更しているが、sidebarを開いた際にはさらに暗い色に変更してしまう

0 commit comments

Comments
 (0)