Skip to content

Commit 068905f

Browse files
authored
improve page contents (and fix some ui) (#231)
1 parent 262937a commit 068905f

32 files changed

+82
-111
lines changed

bun.lock

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,32 @@
44
"": {
55
"name": "website",
66
"dependencies": {
7-
"@astrojs/mdx": "^4.1.0",
8-
"@astrojs/sitemap": "^3.2.1",
9-
"@astrojs/svelte": "^7.0.6",
7+
"@astrojs/mdx": "^4.2.2",
8+
"@astrojs/sitemap": "^3.3.0",
9+
"@astrojs/svelte": "^7.0.8",
1010
"@date-fns/tz": "^1.2.0",
1111
"@iconify-json/feather": "^1.2.1",
1212
"@tailwindcss/typography": "^0.5.16",
13-
"astro": "^5.4.2",
13+
"astro": "^5.5.5",
1414
"astro-icon": "^1.1.5",
15-
"bits-ui": "^1.3.13",
16-
"daisyui": "^5.0.4",
15+
"bits-ui": "^1.3.14",
16+
"daisyui": "^5.0.9",
1717
"date-fns": "^4.1.0",
1818
"markdown-to-txt": "^2.0.1",
1919
"sharp": "^0.33.5",
20-
"svelte": "^5.23.1",
20+
"svelte": "^5.25.3",
2121
},
2222
"devDependencies": {
2323
"@astrojs/check": "^0.9.4",
2424
"@biomejs/biome": "^1.9.4",
25-
"@tailwindcss/vite": "^4.0.12",
26-
"@types/bun": "^1.2.4",
27-
"lefthook": "^1.11.3",
25+
"@tailwindcss/vite": "^4.0.17",
26+
"lefthook": "^1.11.5",
2827
"prettier": "^3.5.3",
2928
"prettier-plugin-astro": "^0.14.1",
3029
"prettier-plugin-svelte": "^3.3.3",
3130
"prettier-plugin-tailwindcss": "^0.6.11",
3231
"rollup-plugin-visualizer": "^5.14.0",
33-
"tailwindcss": "^4.0.12",
32+
"tailwindcss": "^4.0.17",
3433
"typescript": "^5.8.2",
3534
},
3635
},
@@ -328,8 +327,6 @@
328327

329328
"@types/acorn": ["@types/[email protected]", "", { "dependencies": { "@types/estree": "*" } }, "sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ=="],
330329

331-
"@types/bun": ["@types/[email protected]", "", { "dependencies": { "bun-types": "1.2.6" } }, "sha512-fY9CAmTdJH1Llx7rugB0FpgWK2RKuHCs3g2cFDYXUutIy1QGiPQxKkGY8owhfZ4MXWNfxwIbQLChgH5gDsY7vw=="],
332-
333330
"@types/debug": ["@types/[email protected]", "", { "dependencies": { "@types/ms": "*" } }, "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ=="],
334331

335332
"@types/estree": ["@types/[email protected]", "", {}, "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw=="],
@@ -354,8 +351,6 @@
354351

355352
"@types/unist": ["@types/[email protected]", "", {}, "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="],
356353

357-
"@types/ws": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-bd/YFLW+URhBzMXurx7lWByOu+xzU9+kb3RboOteXYDfW+tr+JZa99OyNmPINEGB/ahzKrEuc8rcv4gnpJmxTw=="],
358-
359354
"@types/yauzl": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q=="],
360355

361356
"@ungap/structured-clone": ["@ungap/[email protected]", "", {}, "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g=="],
@@ -414,7 +409,7 @@
414409

415410
"base-64": ["[email protected]", "", {}, "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg=="],
416411

417-
"bits-ui": ["[email protected].13", "", { "dependencies": { "@floating-ui/core": "^1.6.4", "@floating-ui/dom": "^1.6.7", "@internationalized/date": "^3.5.6", "esm-env": "^1.1.2", "runed": "^0.23.2", "svelte-toolbelt": "^0.7.1", "tabbable": "^6.2.0" }, "peerDependencies": { "svelte": "^5.11.0" } }, "sha512-0ysKdvHBIArfFBe+MYVAvu5OANOsivk+UJftdiW+e6lGHzf+EW/TZpLh69Vf0n8pYTjkH+33CHlVIImxTZRIMQ=="],
412+
"bits-ui": ["[email protected].14", "", { "dependencies": { "@floating-ui/core": "^1.6.4", "@floating-ui/dom": "^1.6.7", "@internationalized/date": "^3.5.6", "esm-env": "^1.1.2", "runed": "^0.23.2", "svelte-toolbelt": "^0.7.1", "tabbable": "^6.2.0" }, "peerDependencies": { "svelte": "^5.11.0" } }, "sha512-T4ClhH0eQmrhZ8uMfC8Q4WBcpygnfdVTfb/1Y/6PrYA5Fqv7HTLmK3B9NSv4DUbDXpuG4SiC2cPSXVUqsEA/aw=="],
418413

419414
"boolbase": ["[email protected]", "", {}, "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="],
420415

@@ -424,8 +419,6 @@
424419

425420
"buffer-crc32": ["[email protected]", "", {}, "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ=="],
426421

427-
"bun-types": ["[email protected]", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-FbCKyr5KDiPULUzN/nm5oqQs9nXCHD8dVc64BArxJadCvbNzAI6lUWGh9fSJZWeDIRD38ikceBU8Kj/Uh+53oQ=="],
428-
429422
"call-bind-apply-helpers": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
430423

431424
"camelcase": ["[email protected]", "", {}, "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA=="],

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@tailwindcss/typography": "^0.5.16",
3232
"astro": "^5.5.5",
3333
"astro-icon": "^1.1.5",
34-
"bits-ui": "^1.3.13",
34+
"bits-ui": "^1.3.14",
3535
"daisyui": "^5.0.9",
3636
"date-fns": "^4.1.0",
3737
"markdown-to-txt": "^2.0.1",
@@ -42,7 +42,6 @@
4242
"@astrojs/check": "^0.9.4",
4343
"@biomejs/biome": "^1.9.4",
4444
"@tailwindcss/vite": "^4.0.17",
45-
"@types/bun": "^1.2.6",
4645
"lefthook": "^1.11.5",
4746
"prettier": "^3.5.3",
4847
"prettier-plugin-astro": "^0.14.1",

src/components/ActivityPage/Section.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
import { Picture } from "astro:assets";
33
interface Props {
44
title: string;
5-
edge: "left" | "right";
5+
"align-image": "left" | "right";
66
image: ImageMetadata;
77
imageAlt: string;
88
}
99
10-
const { title, edge, image, imageAlt } = Astro.props;
10+
const { title, "align-image": align, image, imageAlt } = Astro.props;
1111
---
1212

1313
<section class="mt-16 lg:grid lg:items-center">
@@ -16,9 +16,9 @@ const { title, edge, image, imageAlt } = Astro.props;
1616
class:list={[
1717
"isolate h-[300px] overflow-clip md:h-[400px] lg:h-[500px] lg:w-1/2 xl:h-[600px]",
1818
{
19-
left: "lg:ml-auto lg:rounded-l-2xl",
20-
right: "lg:rounded-r-2xl",
21-
}[edge],
19+
left: "lg:rounded-r-2xl",
20+
right: "lg:ml-auto lg:rounded-l-2xl",
21+
}[align],
2222
]}
2323
>
2424
<Picture
@@ -35,7 +35,7 @@ const { title, edge, image, imageAlt } = Astro.props;
3535
style={{ gridArea: "1 / 1" }}
3636
class="container mx-auto lg:max-w-screen-lg"
3737
>
38-
<div class:list={["p-8 lg:w-1/2", edge === "right" && "lg:ml-auto"]}>
38+
<div class:list={["p-8 lg:w-1/2", align === "left" && "lg:ml-auto"]}>
3939
<h2 class="text-4xl">{title}</h2>
4040
<div class="prose mt-4 max-w-none">
4141
<slot />

src/components/ArticleList.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const articlesWithExcerpts = await Promise.all(
7373
<a
7474
href={`/articles/${article.id}`}
7575
class:list={[
76-
"relative rounded-xl bg-gray-50 p-2 hover:brightness-95",
76+
"rounded-xl bg-gray-50 p-2 hover:brightness-95",
7777
additionalProps.cellClassName,
7878
]}
7979
>

src/components/Footer.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const props = Astro.props;
2828
<FooterSection
2929
title="活動"
3030
links={[
31+
{ title: "プロジェクト", to: "/projects" },
3132
{ title: "ご寄付・ご協賛のお願い", to: "/donation/" },
3233
{ title: "ut.code(); で学習する", to: "/activities/learn/" },
3334
{ title: "ut.code(); で交流する", to: "/activities/share/" },
@@ -38,10 +39,6 @@ const props = Astro.props;
3839
title="リンク"
3940
links={[
4041
{ title: "ut.code(); Learn", to: "https://learn.utcode.net/" },
41-
{
42-
title: "はじめてのプログラミング教室",
43-
to: "https://first-programming.utcode.net/",
44-
},
4542
{ title: "GitHub", to: "https://github.com/ut-code" },
4643
{ title: "X", to: "https://x.com/utokyo_code" },
4744
]}

src/components/Footer/FooterSection.astro

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
import { Icon } from "astro-icon/components";
3+
24
interface Props {
35
title: string;
46
links: { title: string; to: string }[];
@@ -11,14 +13,17 @@ const { title, links } = Astro.props;
1113
<ul class="mt-4 space-y-2">
1214
{
1315
links.map((link) => (
14-
<li>
16+
<li class="align-middle">
1517
<a
1618
href={link.to}
17-
class="link relative active:top-0.25 motion-reduce:hover:underline"
19+
class="link motion-reduce:hover:underline"
1820
target={link.to.startsWith("/") ? "" : "_blank"}
1921
rel={link.to.startsWith("/") ? "" : "noreferrer"}
2022
>
2123
{link.title}
24+
{!link.to.startsWith("/") && (
25+
<Icon name="feather:external-link" class="mx-1 mb-1 inline" />
26+
)}
2227
</a>
2328
</li>
2429
))

src/components/ProjectList.astro

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@ const { projects, variant = "full" } = props;
1515
{
1616
projects.map((project, i) => (
1717
<li
18-
class:list={[
19-
"contents",
20-
variant === "compact" ? "variant-short" : "variant-full",
21-
]}
18+
class:list={["contents", variant === "compact" && "data-variant-short"]}
2219
>
2320
<a
24-
class="relative top-0 overflow-clip rounded-xl border border-gray-200 hover:brightness-95"
21+
class="overflow-clip rounded-xl border border-gray-200 bg-gray-50 hover:brightness-95"
2522
href={`/projects/${project.id}`}
2623
>
2724
<Picture
@@ -61,12 +58,12 @@ const { projects, variant = "full" } = props;
6158

6259
<style>
6360
@media (max-width: 48rem) {
64-
li.variant-short:nth-child(n + 3) {
61+
li.data-variant-short:nth-child(n + 3) {
6562
display: none;
6663
}
6764
}
6865
@media (max-width: 80rem) {
69-
li.variant-short:nth-child(n + 5) {
66+
li.data-variant-short:nth-child(n + 5) {
7067
display: none;
7168
}
7269
}
-966 KB
Binary file not shown.
-906 KB
Binary file not shown.

0 commit comments

Comments
 (0)