aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/content/docs/index.mdx
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-06 13:40:04 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-10-06 13:40:04 +0900
commitee08d3491b487dea16855eec17bb5e0a2dfecd25 (patch)
treeb8cf58139788b67840e661df07fa12a7781d024a /src/content/docs/index.mdx
parent2089b1b2c7ca65923f3ee70b75adf383723cfe0e (diff)
Astro 7へ更新し、画像をsrc/へ移行・重複を整理
- astro 6→7 / starlight 0.40→0.42 / sharp更新、markdown-remark導入 - markdownをunified()へ移行、compressHTML:trueで従来の空白を維持 - starlight日本語訳パッチを0.42.5向けに再生成 - 有益な画像をsrc/へ移行しpublic重複を削除、孤立画像を整理 - scripts/optimize-images.mjs を追加(prebuildで自動実行)
Diffstat (limited to 'src/content/docs/index.mdx')
-rw-r--r--src/content/docs/index.mdx90
1 files changed, 44 insertions, 46 deletions
diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx
index 0892e49..e9f404a 100644
--- a/src/content/docs/index.mdx
+++ b/src/content/docs/index.mdx
@@ -4,9 +4,13 @@ description: 小平市議会議員 安竹洋平 — だれもがしあわせにæ
tableOfContents: true
---
+import { Image } from 'astro:assets';
+import * as assets from '@/assets/images';
+
<span id="_top"></span>
<div class="home-hero">
+ <Image class="hero-bg" src={assets.hero} alt="" layout="full-width" priority />
<h1>
<span class="line">だれもが</span>
<span class="line">しあわせに</span>
@@ -21,7 +25,7 @@ tableOfContents: true
<div class="home-sep"><span>皆様へのメッセージ</span></div>
</div>
<div class="intro-photo">
- <img src="/img/portrait.webp" alt="安竹洋平" width="240" height="293" />
+ <Image src={assets.portrait} alt="安竹洋平" width={240} height={293} />
<p class="photo-caption">安竹 洋平</p>
</div>
<div class="intro-text">
@@ -63,11 +67,11 @@ tableOfContents: true
### 少年時代
<figure style="text-align:left;margin:1rem 0">
- <img
- src="/img/childhood.webp"
+ <Image
+ src={assets.childhood}
alt="幼少期の写真"
- width="613"
- height="600"
+ width={613}
+ height={600}
style="max-width:100%;height:auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1)"
/>
<figcaption style="font-size:0.85rem;color:var(--sl-color-gray-2);margin-top:0.5rem">幼少期の写真</figcaption>
@@ -78,11 +82,9 @@ tableOfContents: true
### 大学時代
<figure style="text-align:left;margin:1rem 0">
- <img
- src="/img/univ-earth-planetary-science-with-friend-scaled.webp"
+ <Image
+ src={assets.daigaku}
alt="大学生時代"
- width="720"
- height="351"
style="max-width:100%;height:auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1)"
/>
<figcaption style="font-size:0.85rem;color:var(--sl-color-gray-2);margin-top:0.5rem">大学生時代</figcaption>
@@ -93,11 +95,11 @@ tableOfContents: true
### ソニー社員時代
<figure style="text-align:left;margin:1rem 0">
- <img
- src="/img/yasutake-yohei-graphic-board.webp"
+ <Image
+ src={assets.sonyBoard}
alt="ソニー社員時代"
- width="480"
- height="418"
+ width={480}
+ height={418}
style="max-width:320px;height:auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1)"
/>
<figcaption style="font-size:0.85rem;color:var(--sl-color-gray-2);margin-top:0.5rem">ソニー社員時代</figcaption>
@@ -108,11 +110,11 @@ tableOfContents: true
### ベンチャー企業での電池開発
<figure style="text-align:left;margin:1rem 0">
- <img
- src="/img/iec-dinner.webp"
+ <Image
+ src={assets.iecDinner}
alt="国際規格会議 晩餐会にて"
- width="449"
- height="263"
+ width={449}
+ height={263}
style="max-width:100%;height:auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1)"
/>
<figcaption style="font-size:0.85rem;color:var(--sl-color-gray-2);margin-top:0.5rem">国際規格会議 晩餐会にて</figcaption>
@@ -127,22 +129,22 @@ tableOfContents: true
### 宇宙飛行士選抜試験への挑戦
<figure style="text-align:left;margin:1rem 0">
- <img
- src="/img/astronaut-training-2.webp"
+ <Image
+ src={assets.astronaut2}
alt="NASA宇宙飛行士訓練施設にて"
- width="600"
- height="450"
+ width={600}
+ height={450}
style="max-width:100%;height:auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1)"
/>
<figcaption style="font-size:0.85rem;color:var(--sl-color-gray-2);margin-top:0.5rem">NASA宇宙飛行士訓練施設にて</figcaption>
</figure>
<figure style="text-align:left;margin:1rem 0">
- <img
- src="/img/astronaut-training-6-1.webp"
+ <Image
+ src={assets.astronaut6}
alt="ジェット訓練機のシートにて"
- width="600"
- height="450"
+ width={600}
+ height={450}
style="max-width:600px;width:100%;height:auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1)"
/>
<figcaption style="font-size:0.85rem;color:var(--sl-color-gray-2);margin-top:0.5rem">ジェット訓練機のシートにて</figcaption>
@@ -155,11 +157,9 @@ tableOfContents: true
### 英語の会を主宰
<figure style="text-align:left;margin:1rem 0">
- <img
- src="/img/cookinglish-2-1.webp"
+ <Image
+ src={assets.eigo}
alt="英語の会イベントでの一コマ"
- width="720"
- height="480"
style="max-width:100%;height:auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1)"
/>
<figcaption style="font-size:0.85rem;color:var(--sl-color-gray-2);margin-top:0.5rem">英語の会イベント(Cookinglish)での一コマ</figcaption>
@@ -172,11 +172,9 @@ tableOfContents: true
### 起業、そして父に
<figure style="text-align:left;margin:1rem 0">
- <img
- src="/img/yasutake-yohei-7-1.webp"
+ <Image
+ src={assets.kosodate}
alt="まだ0歳の時の長男と"
- width="720"
- height="540"
style="max-width:100%;height:auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1)"
/>
<figcaption style="font-size:0.85rem;color:var(--sl-color-gray-2);margin-top:0.5rem">まだ0歳の時の長男と</figcaption>
@@ -189,11 +187,11 @@ tableOfContents: true
### 小平市議に初当選、そして再選
<figure style="text-align:left;margin:1rem 0">
- <img
- src="/img/yasutake-yohei-city-council.webp"
+ <Image
+ src={assets.cityCouncil}
alt="議場にて"
- width="578"
- height="500"
+ width={578}
+ height={500}
style="max-width:100%;height:auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1)"
/>
<figcaption style="font-size:0.85rem;color:var(--sl-color-gray-2);margin-top:0.5rem">議場にて</figcaption>
@@ -236,39 +234,39 @@ import Updates from '@/components/Updates.astro';
<div class="activity-grid">
<a href="/joutyo-koteikyu/" class="activity-card">
<span class="activity-title">情緒固定級の設置</span>
- <img src="/img/joutyo-koteikyu-eyecatch.webp" alt="情緒固定級" width="720" height="509" />
+ <Image src={assets.joutyoEyecatch} alt="情緒固定級" width={720} height={509} />
</a>
<a href="/koubunsyo-kanri/" class="activity-card">
<span class="activity-title">公文書管理の不正追及</span>
- <img src="/img/25914623.webp" alt="公文書管理" width="720" height="480" />
+ <Image src={assets.koubunsyoEyecatch} alt="公文書管理" width={720} height={480} />
</a>
<a href="/ijime-judai-jitai/" class="activity-card">
<span class="activity-title">いじめ重大事態</span>
- <img src="/img/ijime-judai-jitai-eyecatch.webp" alt="いじめ重大事態" width="640" height="427" />
+ <Image src={assets.ijimeEyecatch} alt="いじめ重大事態" width={640} height={427} />
</a>
<a href="/kajo-seigen-kanwa/" class="activity-card">
<span class="activity-title">過剰な制限の緩和</span>
- <img src="/img/kajo-eyecatch.webp" alt="マスク制限緩和" width="720" height="771" />
+ <Image src={assets.kajoEyecatch} alt="マスク制限緩和" width={720} height={771} />
</a>
<a href="/dislexia-taiou/" class="activity-card">
<span class="activity-title">ディスレクシア支援</span>
- <img src="/img/dislexia-eyecatch.webp" alt="ディスレクシア" width="640" height="564" />
+ <Image src={assets.dislexiaEyecatch} alt="ディスレクシア" width={640} height={564} />
</a>
<a href="/aiki-kouen/" class="activity-card">
<span class="activity-title">合気公園の整備</span>
- <img src="/img/aiki-kouen-eyecatch.webp" alt="合気公園" width="595" height="385" />
+ <Image src={assets.aikiEyecatch} alt="合気公園" width={595} height={385} />
</a>
<a href="/fukushi-shisetsu-gyakutai/" class="activity-card">
<span class="activity-title">障害者虐待の追及</span>
- <img src="/img/fukushi-gyakutai-eyecatch.webp" alt="障害者虐待" width="720" height="360" />
+ <Image src={assets.fukushiEyecatch} alt="障害者虐待" width={720} height={360} />
</a>
<a href="/vaccine-kyuusai-tekiseika/" class="activity-card">
<span class="activity-title">ワクチン副反応救済制度の適正化</span>
- <img src="/img/fukuhannou.webp" alt="ワクチン副反応救済制度" width="720" height="360" />
+ <Image src={assets.vaccineEyecatch} alt="ワクチン副反応救済制度" width={720} height={360} />
</a>
<a href="/konan-eisei-kumiai/" class="activity-card">
<span class="activity-title">湖南衛生組合の報酬見直し</span>
- <img src="/konan-eisei-kumiai/images/konan-eisei-kumiai-icon.webp" alt="湖南衛生組合の議員報酬・給与見直し" width="480" height="331" />
+ <Image src={assets.konanIcon} alt="湖南衛生組合の議員報酬・給与見直し" width={480} height={331} />
</a>
</div>