feat: update layout and page content for Takasumi-Neody Minecraft server project
This commit is contained in:
@@ -16,8 +16,8 @@ const geistMono = Geist_Mono({
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: "Takasumi-Neodyマイクラサーバプロジェクト接続ガイド",
|
||||
description: "Takasumi-Neodyマイクラサーバプロジェクト(サバイバル鯖・建築鯖)への接続方法とサーバアドレスを案内します。",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
@@ -27,7 +27,7 @@ export default function RootLayout({
|
||||
}>) {
|
||||
return (
|
||||
<html
|
||||
lang="en"
|
||||
lang="ja"
|
||||
className={cn("h-full", "antialiased", geistSans.variable, geistMono.variable, "font-sans", inter.variable)}
|
||||
>
|
||||
<body className="min-h-full flex flex-col">{children}</body>
|
||||
|
||||
152
app/page.tsx
152
app/page.tsx
@@ -1,64 +1,104 @@
|
||||
import Image from "next/image";
|
||||
"use client";
|
||||
|
||||
import { ExternalLink, Pickaxe, Sprout, Wifi } from "lucide-react";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { buttonVariants } from "@/components/ui/button";
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardFooter,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const servers = [
|
||||
{
|
||||
name: "サバイバル鯖",
|
||||
description: "採掘・冒険・建築を楽しむ通常ワールドです。",
|
||||
address: "survival.mc.neody.ad.jp",
|
||||
icon: Sprout,
|
||||
badgeVariant: "default" as const,
|
||||
},
|
||||
{
|
||||
name: "建築鯖",
|
||||
description: "大型建築や街づくり向けのクリエイティブ環境です。",
|
||||
address: "kenchiku.mc.neody.ad.jp",
|
||||
icon: Pickaxe,
|
||||
badgeVariant: "secondary" as const,
|
||||
},
|
||||
];
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div className="flex flex-col flex-1 items-center justify-center bg-zinc-50 font-sans dark:bg-black">
|
||||
<main className="flex flex-1 w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
|
||||
<Image
|
||||
className="dark:invert"
|
||||
src="/next.svg"
|
||||
alt="Next.js logo"
|
||||
width={100}
|
||||
height={20}
|
||||
priority
|
||||
/>
|
||||
<div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
|
||||
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
|
||||
To get started, edit the page.tsx file.
|
||||
<div className="relative flex min-h-full flex-1 flex-col overflow-x-clip bg-background">
|
||||
<div className="pointer-events-none absolute inset-x-0 top-0 -z-10 h-[380px] bg-gradient-to-b from-emerald-200/40 via-sky-200/25 to-transparent blur-3xl dark:from-emerald-500/20 dark:via-sky-500/20" />
|
||||
<main className="mx-auto flex w-full max-w-6xl flex-1 flex-col gap-10 px-4 py-10 sm:px-8 sm:py-14">
|
||||
<section className="rounded-3xl border bg-card/70 p-6 shadow-sm backdrop-blur sm:p-10">
|
||||
<Badge variant="outline" className="mb-4">
|
||||
Takasumi-Neodyマイクラサーバプロジェクト接続ガイド
|
||||
</Badge>
|
||||
<h1 className="text-3xl font-semibold tracking-tight sm:text-5xl">
|
||||
Minecraft サーバへ接続する
|
||||
</h1>
|
||||
<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
|
||||
Looking for a starting point or more instructions? Head over to{" "}
|
||||
<a
|
||||
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
className="font-medium text-zinc-950 dark:text-zinc-50"
|
||||
>
|
||||
Templates
|
||||
</a>{" "}
|
||||
or the{" "}
|
||||
<a
|
||||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
className="font-medium text-zinc-950 dark:text-zinc-50"
|
||||
>
|
||||
Learning
|
||||
</a>{" "}
|
||||
center.
|
||||
<p className="mt-4 max-w-3xl text-sm leading-7 text-muted-foreground sm:text-base">
|
||||
サーバー追加画面で下記アドレスを入力してください。Java Edition と
|
||||
統合版のどちらにも対応しています。
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
|
||||
<a
|
||||
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
|
||||
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<Image
|
||||
className="dark:invert"
|
||||
src="/vercel.svg"
|
||||
alt="Vercel logomark"
|
||||
width={16}
|
||||
height={16}
|
||||
/>
|
||||
Deploy Now
|
||||
</a>
|
||||
<a
|
||||
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
|
||||
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Documentation
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="grid gap-4 md:grid-cols-2">
|
||||
{servers.map((server) => {
|
||||
const Icon = server.icon;
|
||||
return (
|
||||
<Card key={server.name} className="border-foreground/10">
|
||||
<CardHeader>
|
||||
<div className="mb-2 flex items-center justify-between gap-3">
|
||||
<Badge variant={server.badgeVariant}>{server.name}</Badge>
|
||||
<span className="inline-flex items-center gap-1.5 text-xs text-muted-foreground">
|
||||
<Wifi className="size-3.5" />
|
||||
Java / 統合版 対応
|
||||
</span>
|
||||
</div>
|
||||
<CardTitle className="flex items-center gap-2 text-xl">
|
||||
<Icon className="size-5" />
|
||||
{server.name}
|
||||
</CardTitle>
|
||||
<CardDescription>{server.description}</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="rounded-xl border bg-background px-4 py-3">
|
||||
<p className="text-xs text-muted-foreground">サーバアドレス</p>
|
||||
<p className="mt-1 break-all font-mono text-sm">{server.address}</p>
|
||||
</div>
|
||||
</CardContent>
|
||||
<CardFooter className="gap-2">
|
||||
<a
|
||||
className={cn(buttonVariants(), "w-full sm:w-auto")}
|
||||
href={`minecraft://?addExternalServer=${server.name}|${server.address}`}
|
||||
>
|
||||
Minecraft で開く
|
||||
<ExternalLink className="size-4" />
|
||||
</a>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
);
|
||||
})}
|
||||
</section>
|
||||
|
||||
<section className="rounded-3xl border bg-card p-6 shadow-sm sm:p-8">
|
||||
<h2 className="text-xl font-semibold">接続手順</h2>
|
||||
<Separator className="my-4" />
|
||||
<ol className="space-y-3 text-sm leading-7 sm:text-base">
|
||||
<li>1. Minecraft(Java Edition または統合版)を起動する。</li>
|
||||
<li>2. サーバー追加画面を開く(Java: マルチプレイ / 統合版: サーバー)。</li>
|
||||
<li>3. 接続したい鯖のサーバアドレスを入力して保存する。</li>
|
||||
<li>4. 一覧からサーバを選んで接続する。</li>
|
||||
</ol>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user