Skip to content
Open
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
37 changes: 37 additions & 0 deletions .github/workflows/cdn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy CDN assets

on:
push:
branches: [main]
paths:
- "public/cdn/**"
- ".github/workflows/cdn.yml"
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.S3_REGION || 'auto' }}
AWS_REQUEST_CHECKSUM_CALCULATION: when_required
AWS_RESPONSE_CHECKSUM_VALIDATION: when_required
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Ensure public/cdn is populated
run: |
if [ -z "$(find public/cdn -type f 2>/dev/null)" ]; then
echo "public/cdn is empty — refusing to sync (would delete web/static)." >&2
exit 1
fi

- name: Sync public/cdn to S3-compatible storage (web/static)
run: |
aws s3 sync public/cdn "s3://${{ secrets.S3_BUCKET }}/web/static" \
--endpoint-url "${{ secrets.S3_ENDPOINT }}" \
--delete \
--no-progress \
--cache-control "public, max-age=604800"
2 changes: 1 addition & 1 deletion .migration/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Positioner); typecheck + full build clean.
- Close button, header/footer/title/description classes, `showCloseButton`
prop, `data-slot` attributes: UNCHANGED.
- Leftover scan clean: `grep -n "radix-ui\|@radix-ui\|data-\[state="
src/components/ui/dialog.tsx` → no matches.
src/components/ui/dialog.tsx` → no matches.

- `src/components/CookieConsentModal.tsx` (consumer)
- Removed the three Radix-only dismiss handlers from `<DialogContent>`:
Expand Down
2 changes: 1 addition & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "next dev",
"lint": "next lint",
"start": "next start",
"format": "oxfmt"
"format": "oxfmt",
"cdn:fetch": "bash scripts/fetch-cdn-assets.sh"
},
"dependencies": {
"@base-ui/react": "^1.7.0",
Expand All @@ -26,7 +27,7 @@
"cnfast": "^0.1.0",
"daisyui": "^5.7.16",
"elysia": "^1.4.29",
"gsap": "^3.15.0",
"gsap": "^3.13.0",
"lucide-react": "^1.31.0",
"maath": "^0.10.8",
"motion": "^12.43.0",
Expand Down
Binary file added public/cdn/airi.mp4
Binary file not shown.
Binary file added public/cdn/bar.glb
Binary file not shown.
Binary file added public/cdn/cube.glb
Binary file not shown.
Binary file added public/cdn/lens.glb
Binary file not shown.
Binary file added public/cdn/vroid/hi.vrma
Binary file not shown.
Binary file added public/cdn/vroid/horahora.vrma
Binary file not shown.
Binary file added public/cdn/vroid/mikan-web.vrm
Binary file not shown.
Binary file added public/cdn/vroid/shikanoko.vrma
Binary file not shown.
Binary file added public/cdn/vroid/soware.vrma
Binary file not shown.
Binary file added public/cdn/vroid/telepathy.vrma
Binary file not shown.
Binary file added public/cdn/vroid/tetoris.vrma
Binary file not shown.
Binary file added public/cdn/vroid/uishig.vrma
Binary file not shown.
Binary file removed public/vroid/hi.vrma
Binary file not shown.
Binary file removed public/vroid/mikan.dev(long).vrm
Binary file not shown.
Binary file removed public/vroid/mikan.dev(web).vrm
Binary file not shown.
Binary file removed public/vroid/mikan.dev_short.vrm
Binary file not shown.
Binary file removed public/vroid/shikanoko.vrma
Binary file not shown.
33 changes: 15 additions & 18 deletions src/app/[locale]/(homepage)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ import DecryptedText from "@/components/DecryptedText";
import CurvedLoop from "@/components/CurvedLoop";
import ScrollFloat from "@/components/ScrollFloat";
import SplitText from "@/components/SplitText";
import { OSSProductCard } from "@/components/OSSProductCard";
import { SolutionsFolder } from "@/components/SolutionsFolder";
import { VRM } from "@/components/vrm";
import { IdCard } from "lucide-react";

import NeodyLogo from "@/assets/img/NeodyLogo.png";
import KuronekoLogo from "@/assets/img/kuroneko.png";
import RTLogo from "@/assets/img/rt.png";
import TakasumiLogo from "@/assets/img/takasumi.png";
import KaraSnapIcon from "@/assets/img/karasnap.png";

export default function IndexPage() {
const t = useTranslations("home");
const [showCircularText, setShowCircularText] = useState(false);
const [folderOpen, setFolderOpen] = useState(false);

return (
<main className="flex flex-col items-center justify-center w-full overflow-x-hidden">
Expand Down Expand Up @@ -100,21 +99,19 @@ export default function IndexPage() {
<h3 className="text-lg md:text-xl text-gray-400 text-center w-full md:w-11/12">
{t("OpenSourceBlurb")}
</h3>
<div className={"grid grid-cols-1 md:grid-cols-2 w-full mt-5 gap-4"}>
<OSSProductCard
name={t("ossProducts.karaSnap.title")}
description={t("ossProducts.karaSnap.description")}
icon={KaraSnapIcon.src}
repoUrl="https://github.com/mikndotdev/karasnap"
websiteUrl="https://karasnap.mikn.dev"
/>
<OSSProductCard
name={t("ossProducts.nextDiscordAuth.title")}
description={t("ossProducts.nextDiscordAuth.description")}
icon={IdCard}
repoUrl="https://github.com/mikndotdev/next-discord-auth"
websiteUrl="https://npm.im/@mikandev/next-discord-auth"
/>
<div className="flex flex-col items-center gap-12 mt-10 pt-16">
<SolutionsFolder onOpenChange={setFolderOpen} />
<div
className={`transition-transform duration-300 ease-in-out ${
folderOpen ? "translate-y-20" : ""
}`}
>
<Link href={"/solutions"}>
<Button variant="default" size="lg">
{t("hero.primaryCta")}
</Button>
</Link>
</div>
</div>
</div>

Expand Down
33 changes: 33 additions & 0 deletions src/app/[locale]/(pages)/solutions/[solution]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { use } from "react";
import { notFound } from "next/navigation";
import { useTranslations } from "next-intl";
import { setRequestLocale } from "next-intl/server";

import { SolutionHero } from "@/components/SolutionHero";
import { SolutionList } from "@/constants/solutions";

export function generateStaticParams() {
return SolutionList.map((solution) => ({ solution: solution.slug }));
}

export default function SolutionPage({
params,
}: {
params: Promise<{ locale: string; solution: string }>;
}) {
const { locale, solution: slug } = use(params);
setRequestLocale(locale);
const t = useTranslations();

const solution = SolutionList.find((entry) => entry.slug === slug);
if (!solution) notFound();

return (
<SolutionHero
name={t(solution.name)}
source={solution.source}
url={solution.url}
cover={solution.cover}
/>
);
}
25 changes: 25 additions & 0 deletions src/app/[locale]/(pages)/solutions/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use client";

import { useTranslations } from "next-intl";

import { SolutionCard } from "@/components/SolutionCard";
import { SolutionList } from "@/constants/solutions";

export default function SolutionsPage() {
const t = useTranslations("solutions");

return (
<main>
<div className="flex flex-col items-center gap-4 text-center">
<h1 className="text-4xl font-bold text-white lg:text-6xl">{t("title")}</h1>
<p className="max-w-2xl text-lg text-muted-foreground">{t("subtitle")}</p>
</div>

<div className="mx-auto mt-12 grid w-full max-w-7xl grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
{SolutionList.map((solution) => (
<SolutionCard key={solution.name} solution={solution} />
))}
</div>
</main>
);
}
2 changes: 2 additions & 0 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Link from "next/link";
import { Noto_Sans_JP } from "next/font/google";
import { Button } from "@/components/animate-ui/components/buttons/button";
import { ConfusedCorner } from "@/components/ConfusedCorner";
import "./globals.css";

const notoSansJP = Noto_Sans_JP({
Expand All @@ -20,6 +21,7 @@ export default function NotFound() {
<Button className={"mt-5"}>Take me back</Button>
</Link>
</div>
<ConfusedCorner />
</body>
</html>
</>
Expand Down
Binary file added src/assets/img/confused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading