Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions app/(main)/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
interface Props {
label: string;
bannerImage: string;
}
export default function Banner({
label,
bannerImage,
}: Props) {
return (
<section className="mb-10 md:mb-20 w-full h-[10rem] md:h-[20rem] bg-neutral-800 relative overflow-hidden">
<img
src={bannerImage}
alt="バナー"
className="w-full object-cover blur-sm"
/>
<div className="pl-10 md:pl-20 w-full h-full flex flex-col justify-center absolute inset-0">
<h1 className="mt-16 md:mt-0 text-white text-3xl md:text-5xl font-bold tracking-wider">
{label}
</h1>
</div>
</section>
);
}
interface Props {
label: string;
bannerImage: string;
}

export default function Banner({
label,
bannerImage,
}: Props) {
return (
<section className="mb-10 md:mb-20 w-full h-[10rem] md:h-[20rem] bg-neutral-800 relative overflow-hidden">
<img
src={bannerImage}
alt="バナー"
className="w-full object-cover blur-xs"
/>

<div className="pl-10 md:pl-20 w-full h-full flex flex-col justify-center absolute inset-0">
<h1 className="mt-16 md:mt-0 text-white text-3xl md:text-5xl font-bold tracking-wider">
{label}
</h1>
</div>
</section>
);
}
3 changes: 2 additions & 1 deletion app/(main)/menu/Item.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import Link from 'next/link';
import type { ReactNode } from 'react';

interface ItemProps {
href: string;
name: string;
nameSp: string;
icon: JSX.Element;
icon: ReactNode;
}

export default function Item({
Expand Down
2 changes: 1 addition & 1 deletion app/(main)/newbie/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function Banner() {
<img
src="/newbie/banner.webp"
alt="バナー"
className="w-full object-cover blur-sm"
className="w-full object-cover blur-xs"
/>

<ServerInfo />
Expand Down
2 changes: 1 addition & 1 deletion app/(main)/specials/Psi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function Button({
className={
active
? 'w-full h-full text-white bg-blue-900 outline outline-4 outline-offset-4 outline-blue-400 flex flex-row rounded-xl transition-all ease-in duration-100 relative'
: 'w-full h-full text-white bg-blue-900 outline outline-4 outline-offset-4 outline-none flex flex-row rounded-xl transition-all ease-in duration-100 relative'
: 'w-full h-full text-white bg-blue-900 outline outline-4 outline-offset-4 outline-hidden flex flex-row rounded-xl transition-all ease-in duration-100 relative'
}
onClick={() => {
onClick(index);
Expand Down
16 changes: 6 additions & 10 deletions app/(main)/wiki/[title]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@ import { redirect } from 'next/navigation';

export const runtime = 'edge';

export const GET = async (
request: Request,
{
params,
}: {
params: { title: string };
},
) => {
export async function GET(
_: Request,
{ params }: { params: Promise<{ title: string }> },
) {
// タイトルを取得し、EUC-JPに変換
const title = params.title;
const title = (await params).title;
const escaped = encodeEucJP(title);

console.log('received:', title);
Expand All @@ -23,7 +19,7 @@ export const GET = async (
);

redirect(`https://wiki.mikage.click/d/${escaped}`);
};
}

function encodeEucJP(str: string) {
const arr = Encoding.stringToCode(str);
Expand Down
8 changes: 5 additions & 3 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;
@import 'tailwindcss';

@theme {
--font-sans: Figtree, Noto Sans JP, Meiryo, sans-serif;
}

body {
-webkit-tap-highlight-color: transparent;
Expand Down
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Loading