Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

インデックスページの修正 #10

Merged
merged 14 commits into from
Jun 17, 2023
16 changes: 16 additions & 0 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export default function () {
return <>
<footer className="bg-zinc-600 text-white">
<div className="flex flex-wrap">
<div>
<div className="font-bold uppercase opacity-50">Links</div>
<div></div>
</div>
</div>
<div className="text-center">
<div>&copy; 2023 LiberChat Team. MIT LICENSED. All Rights Reserved.</div>
<div>Producted by <a href="https://liberluna.github.io" className="cursor-pointer underline hover:no-underline">LiberLuna</a></div>
</div>
</footer>
</>
}
5 changes: 5 additions & 0 deletions components/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default function () {
return <header className="sticky top-0 w-full">
LiberChat
</header>
}
14 changes: 14 additions & 0 deletions components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Header from "./Header.tsx"
import Footer from "./Footer.tsx"

export default function (props) {
return <>
<Header />
<div className="dark:bg-gray-800 dark:text-gray-50">
<div className="mx-10">
{ props.children }
</div>
</div>
<Footer />
</>
}
46 changes: 27 additions & 19 deletions routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Head } from "$fresh/runtime.ts";
import Join from "~/islands/Join.tsx";
import { Head } from "$fresh/runtime.ts"
import Join from "~/islands/Join.tsx"
import Layout from "~/components/Layout.tsx"

export default function JoinPage() {
return (
Expand All @@ -11,27 +12,34 @@ export default function JoinPage() {
content="LiberChat : 更新不要なリアルタイムチャットを最高峰のUI/UXで、Liberlunaが提供します。"
/>
</Head>
<div className="bg-gray-800 w-full h-screen text-white flex flex-col">
<h1 className="hidden">LiberChat</h1>
<img
src="https://raw.githubusercontent.com/Liberluna/LiberChat/main/assets/concept.svg"
alt="Logo"
className="h-20"
/>
<div className="text-center mt-8">LiberChatへようこそ!</div>
<div className="text-center">
LiberChatはオープンソースのリアルタイムチャットサービスです。
</div>
<div className="text-center">
<a href="https://github.com/Liberluna/" className="underline">
Liberluna
</a>
により開発されています。
<Layout>
<div className="mx-auto text-center">
<div>
<img
src="https://raw.githubusercontent.com/Liberluna/LiberChat/main/assets/concept.svg"
alt="Logo"
height="150"
className="h-80 mx-auto text-center"
/>
</div>
<div className="leading-loose">LiberChat 0.1.0 Alpha</div>
<div>
<div className="text-2xl">About</div>
<div>LiberChatは、自由で開かれたチャットサイトです。</div>
<div>
13歳未満使用禁止、16歳未満使用禁止...<br />
ネット上のサイトには、さまざまな年齢制限があります。
しかし、LiberChatには年齢制限はありません。
誰でも、年齢性別関係なく、公平に話せるチャットサイトです。
</div>
</div>
</div>
<div className="text-center mt-5">
<div className="text-2xl">さあ!始めよう!</div>
<Join />
<div>Room IDを入力してください。同じRoom Idの人と話すことができます。何も入力しないと、みんながいるルームに入ります。</div>
</div>
</div>
</Layout>
</>
);
}