diff --git a/contents/articles/2019/11-03_utcode-lectures-04/index.mdx b/contents/articles/2019/11-03_utcode-lectures-04/index.mdx index 88550468..2c13fe60 100644 --- a/contents/articles/2019/11-03_utcode-lectures-04/index.mdx +++ b/contents/articles/2019/11-03_utcode-lectures-04/index.mdx @@ -155,7 +155,9 @@ CSS セレクタは、ブラウザが CSS を適用する際、どの HTML 要 疑似クラスを用いると、CSS を用いたインタラクティブな表現が簡単に実装できます。以下の文字列にカーソルを合わせてみてください。 -
+
+Hello World! +
これは、以下のようにして実装されています。 @@ -166,7 +168,7 @@ CSS セレクタは、ブラウザが CSS を適用する際、どの HTML 要 ``` #message:hover { color: red; - font-size: 30px; + font-size: 18px; } ``` diff --git a/contents/projects/cobuilder/index.mdx b/contents/projects/cobuilder/index.mdx index 4b74d51c..694c0ac6 100644 --- a/contents/projects/cobuilder/index.mdx +++ b/contents/projects/cobuilder/index.mdx @@ -3,7 +3,8 @@ title: cobuilder slug: cobuilder date: 2023-04-04 description: 仮想空間を参加者全員で作り上げ、自分たちだけの世界を作るメタバースを作ります -image: ./image.png +image: + src: ./image.png tags: [C#, Unity] github: https://github.com/ut-code/cobuilder --- diff --git a/contents/projects/create-cpu/index.mdx b/contents/projects/create-cpu/index.mdx index 1bff9871..fa824010 100644 --- a/contents/projects/create-cpu/index.mdx +++ b/contents/projects/create-cpu/index.mdx @@ -2,7 +2,8 @@ title: CreateCPU slug: create-cpu date: 2023-04-01 -image: ./image.png +image: + src: ./image.png description: 現代コンピュータの頭脳である CPU は、単純な論理回路を大量に組み合わせた巨大なシステムです。CreateCPU を使うと、最も単純な回路素子をつなぎ合わせて自分だけの CPU を作り上げることができます。 tags: [TypeScript, React] github: https://github.com/ut-code/create-cpu diff --git a/contents/projects/dull-meshi/index.mdx b/contents/projects/dull-meshi/index.mdx index 0cd81d39..578a5b82 100644 --- a/contents/projects/dull-meshi/index.mdx +++ b/contents/projects/dull-meshi/index.mdx @@ -1,7 +1,10 @@ --- title: だるめし slug: dull-meshi -image: ./dull-meshi.jpg +image: + src: ./dull-meshi.jpg + fit: contain + bg: "#E6E0DB" date: 2023-04-05 description: 質問に答えていくだけで献立を提案してくれるアプリ tags: [TypeScript, React] diff --git a/contents/projects/learn-braille/index.mdx b/contents/projects/learn-braille/index.mdx index 8f38d69f..d2ab8b53 100644 --- a/contents/projects/learn-braille/index.mdx +++ b/contents/projects/learn-braille/index.mdx @@ -1,7 +1,9 @@ --- title: Dot Tutor Learn slug: dot-tutor-learn -image: ./image.png +image: + src: ./image.png + fit: contain date: 2023-01-28 description: 体験型点字学習サイト Dot Tutor Learn です。 tags: [TypeScript, React] diff --git a/contents/projects/nikochan/index.mdx b/contents/projects/nikochan/index.mdx index e6776b82..c1bef5ed 100644 --- a/contents/projects/nikochan/index.mdx +++ b/contents/projects/nikochan/index.mdx @@ -1,7 +1,8 @@ --- title: Falling Nikochan slug: nikochan -image: ./image.jpg +image: + src: ./image.jpg date: 2024-09-24 description: シンプルでかわいい音ゲーです。誰でも譜面を作ってシェアできます。 tags: [JavaScript, TypeScript, React, Next.js, Hono, MongoDB] diff --git a/contents/projects/postput/index.mdx b/contents/projects/postput/index.mdx index 8a45afd7..68eeba82 100644 --- a/contents/projects/postput/index.mdx +++ b/contents/projects/postput/index.mdx @@ -1,7 +1,8 @@ --- title: PostPut slug: postput -image: ./image.png +image: + src: ./image.png date: 2023-04-03 description: 送信したメッセージに後からタグ付けできるチャットツール tags: [JavaScript, React, Node.js, Express, Passport.js, Prisma, WebSocket] diff --git a/contents/projects/syllabus/index.mdx b/contents/projects/syllabus/index.mdx index b9f772a9..cfa476ae 100644 --- a/contents/projects/syllabus/index.mdx +++ b/contents/projects/syllabus/index.mdx @@ -2,7 +2,8 @@ title: シ楽バス slug: syllabus order: 2 -image: ./image.jpg +image: + src: ./image.jpg date: 2023-10-02 description: 前期課程に特化した時間割サービス tags: [JavaScript] diff --git a/contents/projects/th-beat/index.mdx b/contents/projects/th-beat/index.mdx index 783ba570..2def2394 100644 --- a/contents/projects/th-beat/index.mdx +++ b/contents/projects/th-beat/index.mdx @@ -1,7 +1,8 @@ --- title: 東方競争曲 slug: touhoubeat -image: ./image.png +image: + src: ./image.png date: 2023-12-19 description: 東方Projectのアレンジ曲で遊べるリズムゲーム tags: [C#, Unity, AWS, Go, TypeScript, React] diff --git a/contents/projects/translate-braille/index.mdx b/contents/projects/translate-braille/index.mdx index 12a8aa03..5e8754ef 100644 --- a/contents/projects/translate-braille/index.mdx +++ b/contents/projects/translate-braille/index.mdx @@ -1,7 +1,9 @@ --- title: Dot Tutor Translate slug: dot-tutor-translate -image: ./image.png +image: + src: ./image.png + fit: contain date: 2023-01-28 description: 点字翻訳サイト Dot Tutor Translate です。 tags: [TypeScript, React, Python, FastAPI] diff --git a/contents/projects/utcode-learn/index.mdx b/contents/projects/utcode-learn/index.mdx index 9b9c43c9..4020cdac 100644 --- a/contents/projects/utcode-learn/index.mdx +++ b/contents/projects/utcode-learn/index.mdx @@ -2,7 +2,8 @@ title: ut.code(); Learn slug: utcode-learn order: 1 -image: ./image.jpg +image: + src: ./image.jpg date: 2022-04-01 description: ut.code(); 公式の学習カリキュラムです。ut.code(); 外部の方でもご利用いただけます。 tags: [JavaScript, TypeScript, React, Node.js, Docusaurus] diff --git a/contents/projects/webcface/index.mdx b/contents/projects/webcface/index.mdx index 480366f4..61b62510 100644 --- a/contents/projects/webcface/index.mdx +++ b/contents/projects/webcface/index.mdx @@ -1,7 +1,8 @@ --- title: WebCFace slug: webcface -image: ./image.png +image: + src: ./image.png date: 2023-09-28 description: プロセス間通信 & GUIを提供するライブラリ tags: [C++, Python, JavaScript, TypeScript, WebSocket, MessagePack, React] diff --git a/src/components/ArticleList.astro b/src/components/ArticleList.astro index f72be3e5..952e0cb3 100644 --- a/src/components/ArticleList.astro +++ b/src/components/ArticleList.astro @@ -7,7 +7,7 @@ import { markdownToTxt } from "markdown-to-txt"; interface Props { articles: { id: string; data: Article; body?: string }[]; enlarge?: boolean; // 11 記事ごとに大きくする - minify?: boolean; // (index.astro 用) 画面幅に合わせて短くする + truncate?: boolean; // (index.astro 用) 画面幅に合わせて短くする "max-cols"?: number | `${number}`; loading?: "eager" | "lazy"; class?: string; @@ -16,7 +16,7 @@ const props = Astro.props; const { articles, enlarge = false, - minify = false, + truncate = false, "max-cols": _maxCols = 4, loading = "lazy", } = props; @@ -41,11 +41,11 @@ const articlesWithExcerpts = await Promise.all(