style: format code for consistency across multiple files
Some checks failed
/ print-content (push) Failing after 26s
Some checks failed
/ print-content (push) Failing after 26s
This commit is contained in:
parent
0a63fbd10c
commit
e33f173101
11 changed files with 364 additions and 363 deletions
|
|
@ -7,21 +7,21 @@ const sortedEvents = [...events].sort((a, b) => b.date.localeCompare(a.date));
|
|||
const years = [...new Set(sortedEvents.map((event) => event.date.slice(0, 4)))];
|
||||
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
|
||||
const eventsByYear = years.map((year) => ({
|
||||
year,
|
||||
events: sortedEvents.filter((event) => event.date.startsWith(year)),
|
||||
year,
|
||||
events: sortedEvents.filter((event) => event.date.startsWith(year)),
|
||||
}));
|
||||
|
||||
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
|
||||
const getShortDate = (date: string) => {
|
||||
const [, month, day] = date.split("-");
|
||||
return `${month}.${day}`;
|
||||
const [, month, day] = date.split("-");
|
||||
return `${month}.${day}`;
|
||||
};
|
||||
|
||||
const currentYear = new Date().getFullYear();
|
||||
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
|
||||
const daysUntilYearEnd = Math.ceil(
|
||||
(new Date(currentYear + 1, 0, 1).getTime() - Date.now()) /
|
||||
(1000 * 60 * 60 * 24),
|
||||
(new Date(currentYear + 1, 0, 1).getTime() - Date.now()) /
|
||||
(1000 * 60 * 60 * 24),
|
||||
);
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,154 +1,154 @@
|
|||
---
|
||||
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
|
||||
const groups = [
|
||||
{
|
||||
id: "direct",
|
||||
title: "연락처",
|
||||
items: [
|
||||
{
|
||||
name: "개인 이메일",
|
||||
value: "me@imnya.ng",
|
||||
href: "mailto:me@imnya.ng",
|
||||
icon: "mail",
|
||||
tone: "pink",
|
||||
email: true,
|
||||
},
|
||||
{
|
||||
name: "dazzle.st 이메일",
|
||||
value: "imnyang@dazzle.st",
|
||||
href: "mailto:imnyang@dazzle.st",
|
||||
icon: "mail",
|
||||
tone: "green",
|
||||
email: true,
|
||||
},
|
||||
{
|
||||
name: "Discord",
|
||||
value: "@imnyang",
|
||||
href: "https://discord.com/users/909353223901569035",
|
||||
icon: "discord",
|
||||
tone: "purple",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "social",
|
||||
title: "소셜",
|
||||
items: [
|
||||
{
|
||||
name: "X (Twitter)",
|
||||
value: "@imnya_ng",
|
||||
href: "https://twitter.com/imnya_ng",
|
||||
icon: "x",
|
||||
tone: "blue",
|
||||
},
|
||||
{
|
||||
name: "Instagram",
|
||||
value: "@imnya.ng",
|
||||
href: "https://instagram.com/imnya.ng",
|
||||
icon: "instagram",
|
||||
tone: "pink",
|
||||
},
|
||||
{
|
||||
name: "YouTube",
|
||||
value: "@imnyang",
|
||||
href: "https://youtube.com/@imnyang",
|
||||
icon: "youtube",
|
||||
tone: "red",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "work",
|
||||
title: "코드와 글",
|
||||
items: [
|
||||
{
|
||||
name: "GitHub",
|
||||
value: "@imnyang",
|
||||
href: "https://github.com/imnyang",
|
||||
icon: "github",
|
||||
tone: "neutral",
|
||||
},
|
||||
{
|
||||
name: "git.mizuki.guru",
|
||||
value: "@imnyang",
|
||||
href: "https://git.mizuki.guru/imnyang",
|
||||
icon: "mizuki",
|
||||
tone: "orange",
|
||||
},
|
||||
{
|
||||
name: "Blog",
|
||||
value: "blog.imnya.ng",
|
||||
href: "https://blog.imnya.ng",
|
||||
icon: "blog",
|
||||
tone: "green",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "game",
|
||||
title: "Game",
|
||||
items: [
|
||||
{
|
||||
name: "Steam",
|
||||
value: "@imnyang",
|
||||
href: "https://steamcommunity.com/id/imnyang/",
|
||||
icon: "steam",
|
||||
tone: "blue",
|
||||
},
|
||||
{
|
||||
name: "maimai",
|
||||
value: "@imnya.ng",
|
||||
href: "https://mai.sft.sh/imnyang",
|
||||
icon: "maimai",
|
||||
tone: "blue",
|
||||
},
|
||||
{
|
||||
name: "Project Sekai KR",
|
||||
value: "7354623251148069648",
|
||||
href: "#",
|
||||
icon: "project-sekai",
|
||||
tone: "blue",
|
||||
},
|
||||
{
|
||||
name: "Project Sekai JP",
|
||||
value: "729310364018688008",
|
||||
href: "#",
|
||||
icon: "project-sekai",
|
||||
tone: "blue",
|
||||
},
|
||||
{
|
||||
name: "VRChat",
|
||||
value: "@imnyang",
|
||||
href: "https://vrchat.com/home/user/usr_d53ac697-182d-40d0-9fd8-1a7442b0ebfd",
|
||||
icon: "vrchat",
|
||||
tone: "blue",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "direct",
|
||||
title: "연락처",
|
||||
items: [
|
||||
{
|
||||
name: "개인 이메일",
|
||||
value: "me@imnya.ng",
|
||||
href: "mailto:me@imnya.ng",
|
||||
icon: "mail",
|
||||
tone: "pink",
|
||||
email: true,
|
||||
},
|
||||
{
|
||||
name: "dazzle.st 이메일",
|
||||
value: "imnyang@dazzle.st",
|
||||
href: "mailto:imnyang@dazzle.st",
|
||||
icon: "mail",
|
||||
tone: "green",
|
||||
email: true,
|
||||
},
|
||||
{
|
||||
name: "Discord",
|
||||
value: "@imnyang",
|
||||
href: "https://discord.com/users/909353223901569035",
|
||||
icon: "discord",
|
||||
tone: "purple",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "social",
|
||||
title: "소셜",
|
||||
items: [
|
||||
{
|
||||
name: "X (Twitter)",
|
||||
value: "@imnya_ng",
|
||||
href: "https://twitter.com/imnya_ng",
|
||||
icon: "x",
|
||||
tone: "blue",
|
||||
},
|
||||
{
|
||||
name: "Instagram",
|
||||
value: "@imnya.ng",
|
||||
href: "https://instagram.com/imnya.ng",
|
||||
icon: "instagram",
|
||||
tone: "pink",
|
||||
},
|
||||
{
|
||||
name: "YouTube",
|
||||
value: "@imnyang",
|
||||
href: "https://youtube.com/@imnyang",
|
||||
icon: "youtube",
|
||||
tone: "red",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "work",
|
||||
title: "코드와 글",
|
||||
items: [
|
||||
{
|
||||
name: "GitHub",
|
||||
value: "@imnyang",
|
||||
href: "https://github.com/imnyang",
|
||||
icon: "github",
|
||||
tone: "neutral",
|
||||
},
|
||||
{
|
||||
name: "git.mizuki.guru",
|
||||
value: "@imnyang",
|
||||
href: "https://git.mizuki.guru/imnyang",
|
||||
icon: "mizuki",
|
||||
tone: "orange",
|
||||
},
|
||||
{
|
||||
name: "Blog",
|
||||
value: "blog.imnya.ng",
|
||||
href: "https://blog.imnya.ng",
|
||||
icon: "blog",
|
||||
tone: "green",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "game",
|
||||
title: "Game",
|
||||
items: [
|
||||
{
|
||||
name: "Steam",
|
||||
value: "@imnyang",
|
||||
href: "https://steamcommunity.com/id/imnyang/",
|
||||
icon: "steam",
|
||||
tone: "blue",
|
||||
},
|
||||
{
|
||||
name: "maimai",
|
||||
value: "@imnya.ng",
|
||||
href: "https://mai.sft.sh/imnyang",
|
||||
icon: "maimai",
|
||||
tone: "blue",
|
||||
},
|
||||
{
|
||||
name: "Project Sekai KR",
|
||||
value: "7354623251148069648",
|
||||
href: "#",
|
||||
icon: "project-sekai",
|
||||
tone: "blue",
|
||||
},
|
||||
{
|
||||
name: "Project Sekai JP",
|
||||
value: "729310364018688008",
|
||||
href: "#",
|
||||
icon: "project-sekai",
|
||||
tone: "blue",
|
||||
},
|
||||
{
|
||||
name: "VRChat",
|
||||
value: "@imnyang",
|
||||
href: "https://vrchat.com/home/user/usr_d53ac697-182d-40d0-9fd8-1a7442b0ebfd",
|
||||
icon: "vrchat",
|
||||
tone: "blue",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
|
||||
const imageIcons: Record<string, { src: string; monochrome: boolean }> = {
|
||||
github: { src: "/icon/github.svg", monochrome: true },
|
||||
discord: { src: "/icon/discord.svg", monochrome: true },
|
||||
mizuki: { src: "/icon/mizuki.svg", monochrome: false },
|
||||
// Source: https://github.com/simple-icons/simple-icons/blob/develop/icons/steam.svg
|
||||
steam: { src: "/icon/steam.svg", monochrome: true },
|
||||
maimai: { src: "/icon/maimai.webp", monochrome: false },
|
||||
vrchat: { src: "/icon/vrchat.svg", monochrome: true },
|
||||
// Source: https://pjsekai.sega.jp/assets/data/webp/icon/icon_app.png.webp
|
||||
"project-sekai": { src: "/icon/project-sekai.webp", monochrome: false },
|
||||
github: { src: "/icon/github.svg", monochrome: true },
|
||||
discord: { src: "/icon/discord.svg", monochrome: true },
|
||||
mizuki: { src: "/icon/mizuki.svg", monochrome: false },
|
||||
// Source: https://github.com/simple-icons/simple-icons/blob/develop/icons/steam.svg
|
||||
steam: { src: "/icon/steam.svg", monochrome: true },
|
||||
maimai: { src: "/icon/maimai.webp", monochrome: false },
|
||||
vrchat: { src: "/icon/vrchat.svg", monochrome: true },
|
||||
// Source: https://pjsekai.sega.jp/assets/data/webp/icon/icon_app.png.webp
|
||||
"project-sekai": { src: "/icon/project-sekai.webp", monochrome: false },
|
||||
};
|
||||
|
||||
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
|
||||
const paths: Record<string, string> = {
|
||||
mail: "M22 12a10 10 0 1 0-4 8 M16 8v5a3 3 0 0 0 6 0v-1 M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0",
|
||||
x: "M4 3h4l12 18h-4L4 3Z M20 3l-7 8 M4 21l7-8",
|
||||
instagram:
|
||||
"M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4Z M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0 M17.5 6.5h.01",
|
||||
youtube:
|
||||
"M7 5h10a5 5 0 0 1 5 5v4a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5v-4a5 5 0 0 1 5-5Z M10 9l5 3-5 3V9Z",
|
||||
blog: "M5 3h11l3 3v15H5V3Z M15 3v4h4 M9 11h6 M9 15h6",
|
||||
mail: "M22 12a10 10 0 1 0-4 8 M16 8v5a3 3 0 0 0 6 0v-1 M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0",
|
||||
x: "M4 3h4l12 18h-4L4 3Z M20 3l-7 8 M4 21l7-8",
|
||||
instagram:
|
||||
"M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4Z M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0 M17.5 6.5h.01",
|
||||
youtube:
|
||||
"M7 5h10a5 5 0 0 1 5 5v4a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5v-4a5 5 0 0 1 5-5Z M10 9l5 3-5 3V9Z",
|
||||
blog: "M5 3h11l3 3v15H5V3Z M15 3v4h4 M9 11h6 M9 15h6",
|
||||
};
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
export interface Props {
|
||||
targetDate: string;
|
||||
label?: string;
|
||||
targetDate: string;
|
||||
label?: string;
|
||||
}
|
||||
|
||||
const { targetDate, label } = Astro.props;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
const videoUrl =
|
||||
"https://www.youtube.com/live/5HDW7u3xt6Y?si=SgPxg83YMdeqGo3t&t=8366";
|
||||
"https://www.youtube.com/live/5HDW7u3xt6Y?si=SgPxg83YMdeqGo3t&t=8366";
|
||||
const roles = ["Broadcast Manager", "ARG Creator", "Developer"];
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -5,21 +5,21 @@ const sortedEvents = [...events].sort((a, b) => b.date.localeCompare(a.date));
|
|||
const years = [...new Set(sortedEvents.map((event) => event.date.slice(0, 4)))];
|
||||
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
|
||||
const eventsByYear = years.map((year) => ({
|
||||
year,
|
||||
events: sortedEvents.filter((event) => event.date.startsWith(year)),
|
||||
year,
|
||||
events: sortedEvents.filter((event) => event.date.startsWith(year)),
|
||||
}));
|
||||
|
||||
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
|
||||
const getShortDate = (date: string) => {
|
||||
const [, month, day] = date.split("-");
|
||||
return `${month}.${day}`;
|
||||
const [, month, day] = date.split("-");
|
||||
return `${month}.${day}`;
|
||||
};
|
||||
|
||||
const currentYear = new Date().getFullYear();
|
||||
// biome-ignore lint/correctness/noUnusedVariables: Used in the Astro template below.
|
||||
const daysUntilYearEnd = Math.ceil(
|
||||
(new Date(currentYear + 1, 0, 1).getTime() - Date.now()) /
|
||||
(1000 * 60 * 60 * 24),
|
||||
(new Date(currentYear + 1, 0, 1).getTime() - Date.now()) /
|
||||
(1000 * 60 * 60 * 24),
|
||||
);
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue