From 93ead7f1938e20c45acd84602f7bfffa39deeb3d Mon Sep 17 00:00:00 2001 From: greenwakame Date: Fri, 2 Oct 2026 21:59:35 +0900 Subject: [PATCH] feat: surface featured film and clarify case navigation --- README.md | 2 +- case-studies/README.md | 4 +- case-studies/greenwakame-profile-pv/case.json | 3 ++ scripts/build_site.py | 51 ++++++++++++------- site/_includes/case-card.html | 7 +-- site/_layouts/case.html | 18 ++++--- site/_layouts/default.html | 10 ++-- site/assets/css/site.css | 32 +++++++++--- site/cases/index.html | 2 +- site/examples/index.html | 4 +- site/index.html | 32 +++++++++--- site/knowledge/index.html | 2 +- 12 files changed, 115 insertions(+), 52 deletions(-) diff --git a/README.md b/README.md index 1e8265a..dd9d1ad 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Generated files live only in the ignored `.build/` directory. The Pages workflow ## Future Experiments -Each future work gets its own `case-studies//` folder, delivery media, poster, and optional focused example. [See the case index](case-studies/README.md). +Each future work gets its own `case-studies//` folder, poster, and optional delivery video and focused example. Add a Japanese `summary_ja` to its `case.json`. Use `featured_video: true` on at most one video case to choose the Home player; otherwise the newest video is shown. [See the case index](case-studies/README.md). ## Licensing / Rights diff --git a/case-studies/README.md b/case-studies/README.md index 8e7edc4..d9c9c0c 100644 --- a/case-studies/README.md +++ b/case-studies/README.md @@ -1,6 +1,6 @@ # 制作事例 -各事例には、完成物、制作過程、判断と失敗、検証結果、poster、公開用動画、最小限のmetadataを置きます。次の作品は`case-studies//`に独立して追加でき、制作環境全体や途中renderを混ぜずに済みます。 +各事例には、完成物、制作過程、判断と失敗、検証結果、poster、最小限のmetadataを置きます。動画がある場合は公開用動画も置きます。次の作品は`case-studies//`に独立して追加でき、制作環境全体や途中renderを混ぜずに済みます。 ## 最初のFeatured Case @@ -12,4 +12,4 @@ ゲーム風のGitHub Profile PV。v5で見つかった視覚的な不連続性をきっかけに、v6では安定したspriteへ身体変形を加える方法に変更しました。[公開用MP4を見る](greenwakame-profile-pv/media/greenwakame-profile-pv-v6-github.mp4)。 -次の事例では専用フォルダに記事と`case.json`を作り、公開権利を確認したposterとdelivery動画を追加して、この一覧に1件加えます。masterと途中成果物は制作環境に残します。 +次の事例では専用フォルダに記事と`case.json`を作り、公開権利を確認したposterを追加して、この一覧に1件加えます。動画がある場合のみ`video`、`duration`、`resolution`、`fps`を設定します。日本語の案内文は`summary_ja`に記入します。トップの注目映像にする場合は、その1件だけ`featured_video: true`にします。指定がなければ日付が新しい動画を表示します。masterと途中成果物は制作環境に残します。 diff --git a/case-studies/greenwakame-profile-pv/case.json b/case-studies/greenwakame-profile-pv/case.json index 53e46c8..f38e55c 100644 --- a/case-studies/greenwakame-profile-pv/case.json +++ b/case-studies/greenwakame-profile-pv/case.json @@ -2,6 +2,7 @@ "slug": "greenwakame-profile-pv", "title": "greenwakame Profile PV", "summary": "A 20-second game-inspired GitHub profile video and a case study in stable-sprite animation.", + "summary_ja": "ゲーム風プロフィール映像の完成版と、動きの設計・失敗からの改善をまとめた制作事例。", "category": "Motion Design", "tags": [ "HyperFrames", @@ -10,6 +11,8 @@ "AI-assisted" ], "featured": true, + "featured_video": true, + "audio_free": true, "status": "complete", "duration": 20, "resolution": "1920x1080", diff --git a/scripts/build_site.py b/scripts/build_site.py index 0e365c1..390faba 100644 --- a/scripts/build_site.py +++ b/scripts/build_site.py @@ -16,8 +16,8 @@ DOC_ROOT = ROOT / "docs" EXAMPLE_ROOT = ROOT / "examples" REQUIRED = { - "slug", "title", "summary", "category", "tags", "featured", "duration", - "resolution", "fps", "poster", "video", "poster_alt", "status", + "slug", "title", "summary", "summary_ja", "category", "tags", "featured", + "poster", "poster_alt", "status", } SLUG = re.compile(r"^[a-z0-9]+(?:-[a-z0-9]+)*$") MARKDOWN_LINK = re.compile(r"(? 1: + fail("only one case can have featured_video: true") return cases @@ -213,9 +228,10 @@ def build_cases(cases): body = (case_dir / "README.md").read_text(encoding="utf-8") body = re.sub(r"\A# [^\n]+\n", "", body, count=1) # The case layout owns the hero poster, player and direct MP4 link. - body = "\n".join(line for line in body.splitlines() - if not (case["poster"][2:] in line and case["video"][2:] in line) - and not (case["video"][2:] in line and line.lstrip().startswith("["))) + if case["has_video"]: + body = "\n".join(line for line in body.splitlines() + if not (case["poster"][2:] in line and case["video"][2:] in line) + and not (case["video"][2:] in line and line.lstrip().startswith("["))) body = rewrite_links(body.lstrip(), case_dir / "README.md") fields = dict(case, layout="case", permalink=case["url"], description=case["summary"], og_image=case["poster_url"], source_path=f"case-studies/{slug}/README.md") @@ -239,10 +255,11 @@ def build_cases(cases): destination = OUTPUT / "assets" / "cases" / slug / asset.relative_to(case_dir) destination.parent.mkdir(parents=True, exist_ok=True) shutil.copy2(asset, destination) - video = checked_asset(case_dir, case["video"], "video") - destination = OUTPUT / case["video_url"].lstrip("/") - destination.parent.mkdir(parents=True, exist_ok=True) - shutil.copy2(video, destination) + if case["has_video"]: + video = checked_asset(case_dir, case["video"], "video") + destination = OUTPUT / case["video_url"].lstrip("/") + destination.parent.mkdir(parents=True, exist_ok=True) + shutil.copy2(video, destination) def build_knowledge(): diff --git a/site/_includes/case-card.html b/site/_includes/case-card.html index 30963ec..d66efd2 100644 --- a/site/_includes/case-card.html +++ b/site/_includes/case-card.html @@ -2,14 +2,15 @@
{{ include.case.poster_alt | escape }} - {{ include.case.category | escape }} + {% if include.case.has_video %}VIDEO / 動画{% else %}CASE / 記事{% endif %}
-
CASE STUDY {{ include.case.duration }} SEC{% if include.case.date %} {{ include.case.date }}{% endif %}
+
CASE STUDY{% if include.case.has_video %} {{ include.case.duration }} SEC{% endif %}{% if include.case.date %} {{ include.case.date }}{% endif %}

{{ include.case.title | escape }}

{{ include.case.summary | escape }}

+

{{ include.case.summary_ja | escape }}

    {% for tag in include.case.tags limit: 4 %}
  • {{ tag | escape }}
  • {% endfor %}
- View Case Study + {% if include.case.has_video %}Watch & read / 動画と制作過程を見る{% else %}Read case / 事例を読む{% endif %}
diff --git a/site/_layouts/case.html b/site/_layouts/case.html index d61b341..bdfb2b7 100644 --- a/site/_layouts/case.html +++ b/site/_layouts/case.html @@ -7,28 +7,32 @@

CASE STUDY / {{ page.category | upcase | escape }}

{{ page.title | escape }}

{{ page.summary | escape }}

+

{{ page.summary_ja | escape }}

    -
  • {{ page.duration }} secRUNTIME
  • + {% if page.has_video %}
  • {{ page.duration }} secRUNTIME
  • {{ page.resolution | replace: 'x', ' × ' }}FRAME
  • -
  • {{ page.fps }} fpsRATE
  • +
  • {{ page.fps }} fpsRATE
  • {% endif %}
  • {{ page.status | capitalize | escape }}STATUS
  • {% if page.published_date %}
  • {{ page.published_date }}PUBLISHED
  • {% endif %}
-
{{ page.poster_alt | escape }}
{{ page.title | escape }} / final poster
+ {% if page.has_video %}
-

/ WATCH THE WORK

The final cut

-
+ {% else %} +
{{ page.poster_alt | escape }}
{{ page.title | escape }} / case preview
+ {% endif %}
{{ content }}
diff --git a/site/_layouts/default.html b/site/_layouts/default.html index 8ea30ca..6d4782a 100644 --- a/site/_layouts/default.html +++ b/site/_layouts/default.html @@ -22,12 +22,12 @@
{{ content }}
diff --git a/site/assets/css/site.css b/site/assets/css/site.css index 6dd141d..19bda39 100644 --- a/site/assets/css/site.css +++ b/site/assets/css/site.css @@ -43,15 +43,27 @@ button { font: inherit; } .brand b { color: var(--green); } .site-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(12px, 2vw, 28px); margin-left: auto; } .site-nav a, .portfolio-link { color: var(--muted); font: 700 .69rem var(--mono); letter-spacing: .04em; white-space: nowrap; } +.site-nav a small, .portfolio-link small { display: block; margin-top: 2px; color: var(--text); font: 500 .65rem/1.2 var(--body); letter-spacing: 0; } .site-nav a:hover, .site-nav a[aria-current="page"], .portfolio-link:hover { color: var(--green); } .portfolio-link { padding: 9px 11px; border: 1px solid var(--line); color: var(--text); } -.home-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(285px, .7fr); gap: clamp(30px, 5vw, 80px); align-items: center; padding-top: clamp(70px, 9vw, 132px); padding-bottom: clamp(90px, 10vw, 145px); } +.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: clamp(26px, 4vw, 60px); align-items: center; padding-top: clamp(45px, 6vw, 85px); padding-bottom: clamp(65px, 8vw, 105px); } .hero-copy h1 { display: flex; flex-direction: column; margin: 26px 0 36px; font: 900 clamp(3.5rem, 8.4vw, 8.7rem)/.85 var(--body); letter-spacing: -.087em; overflow-wrap: anywhere; } .hero-copy h1 > span { color: var(--green); } .hero-copy h1 em { margin-top: 16px; font-style: normal; letter-spacing: -.06em; } .hero-lede { max-width: 25ch; margin: 0 0 16px; font: 750 clamp(1.35rem, 2.5vw, 2.2rem)/1.28 var(--body); letter-spacing: -.025em; } .hero-description { max-width: 56ch; margin: 0; color: var(--muted); } +.hero-ja { max-width: 39ch; margin: 0 0 12px; color: var(--text); font-weight: 650; line-height: 1.7; } .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; } +.button small { display: block; margin-top: 2px; font: 600 .7rem/1.3 var(--body); } +.hero-film { min-width: 0; padding: 14px; border: 1px solid #3d7464; background: linear-gradient(145deg, #10272a, #0a171b 75%); scroll-margin-top: 20px; } +.hero-film-head, .hero-film-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; } +.hero-film-head { padding: 4px 5px 14px; color: var(--green); font: 700 .65rem var(--mono); letter-spacing: .08em; } +.hero-film-head small { font-size: .65rem; letter-spacing: 0; } +.hero-film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); } +.hero-film-foot { align-items: flex-start; flex-direction: column; padding: 14px 5px 3px; } +.hero-film-foot strong { font-size: 1.15rem; line-height: 1.25; } +.hero-film-foot a { color: var(--green); border-bottom: 1px solid var(--green); font: 700 .7rem/1.5 var(--mono); } +.hero-film-foot a:hover { color: var(--text); border-color: var(--text); } .hero-aside { min-height: 420px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 26px; border: 1px solid #3d7464; background: radial-gradient(circle at 50% 40%, rgba(82,220,164,.12), transparent 46%), linear-gradient(145deg, #10272a, #0a171b 75%); } .corner-label { color: var(--green); font: 700 .67rem var(--mono); letter-spacing: .15em; } .orbit-mark { position: relative; display: flex; align-self: center; width: 210px; height: 210px; align-items: center; justify-content: center; border: 1px solid rgba(121,255,186,.75); border-radius: 50%; color: var(--text); font: 900 4.8rem var(--mono); letter-spacing: -.23em; padding-right: 24px; box-shadow: 0 0 0 18px rgba(121,255,186,.025), 0 0 0 45px rgba(121,255,186,.018); } @@ -76,6 +88,7 @@ button { font: inherit; } .case-card-copy .eyebrow span { color: var(--green); } .case-card-copy h3 { margin: 16px 0 11px; font-size: clamp(1.65rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -.045em; } .case-card-copy p { max-width: 49ch; margin: 0 0 20px; color: var(--muted); } +.case-card-copy .case-summary-ja { margin-top: -12px; color: var(--text); font-size: .92rem; line-height: 1.55; } .tag-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; } .tag-list li { padding: 3px 8px; border: 1px solid var(--line); color: #d5ecdf; font: 600 .65rem var(--mono); } .card-action { display: flex; width: 100%; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 28px; border-bottom: 1px solid var(--green); color: var(--green); font: 700 .74rem var(--mono); } @@ -100,6 +113,7 @@ button { font: inherit; } .about-inner h2 span { color: var(--green); } .about-inner > p:not(.eyebrow) { max-width: 68ch; color: var(--muted); } .about-inner .inline-link { margin-top: 16px; } +.about-links { display: flex; flex-wrap: wrap; gap: 10px 28px; } .site-footer { border-top: 1px solid var(--line); } .footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-top: 42px; padding-bottom: 52px; } .footer-inner strong { color: var(--green); font: 800 .75rem var(--mono); letter-spacing: .14em; } @@ -136,18 +150,20 @@ button { font: inherit; } .breadcrumb a:hover { color: var(--green); } .breadcrumb [aria-current] { color: var(--text); } .case-page, .article-shell { padding-bottom: 110px; } -.case-hero { max-width: 1080px; padding: clamp(65px, 8vw, 110px) 0 38px; } +.case-hero { max-width: 1080px; padding: clamp(32px, 4vw, 55px) 0 18px; } .case-hero h1, .article-header h1 { margin: 12px 0 17px; font-size: clamp(3rem, 7.5vw, 7.5rem); line-height: .98; letter-spacing: -.07em; overflow-wrap: anywhere; } .case-lede, .article-header > p:not(.eyebrow) { max-width: 66ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.3rem); } -.case-facts { display: flex; flex-wrap: wrap; gap: 18px 35px; padding: 22px 0 0; margin: 35px 0 0; border-top: 1px solid var(--line); list-style: none; } +.case-lede-ja { max-width: 66ch; margin: 8px 0 0; color: var(--text); font-weight: 600; } +.case-facts { display: flex; flex-wrap: wrap; gap: 15px 35px; padding: 14px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); list-style: none; } .case-facts li { display: flex; flex-direction: column; gap: 2px; } .case-facts b { font: 750 .96rem var(--mono); } .case-facts span { color: var(--muted); font: 700 .61rem var(--mono); letter-spacing: .13em; } .case-poster { margin: 0; border: 1px solid var(--line); background: #061317; } .case-poster img { width: 100%; height: auto; } .case-poster figcaption { padding: 7px 13px; color: var(--muted); font: 650 .61rem var(--mono); } -.film-section { padding-top: clamp(70px, 8vw, 115px); } -.film-section .section-heading { margin-bottom: 20px; } +.film-section { padding-top: 0; scroll-margin-top: 24px; } +.film-section .section-heading { margin-bottom: 12px; } +.film-subtitle { margin: 6px 0 0; color: var(--muted); font-size: .9rem; } .film-section video { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; } .film-note { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 10px 0 0; color: var(--muted); font: 650 .69rem var(--mono); } .case-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 270px); gap: clamp(30px, 5vw, 85px); padding-top: clamp(70px, 8vw, 115px); } @@ -195,7 +211,10 @@ button { font: inherit; } @media (max-width: 760px) { .shell { width: min(calc(100% - 34px), 1240px); } .home-hero, .split-section, .case-body-grid { grid-template-columns: 1fr; } - .home-hero { padding-top: 65px; gap: 55px; } + .home-hero { padding-top: 42px; gap: 30px; } + .hero-copy h1 { margin: 18px 0 20px; } + .hero-description { display: none; } + .hero-actions { margin-top: 22px; } .hero-aside { min-height: 290px; } .orbit-mark { width: 150px; height: 150px; font-size: 3.5rem; } .case-card-link, .case-grid.single-case .case-card-link { display: flex; flex-direction: column; } @@ -212,6 +231,7 @@ button { font: inherit; } .site-nav a { font-size: .66rem; } .hero-copy h1 { font-size: clamp(3.1rem, 15.1vw, 4.7rem); } .hero-description { font-size: .91rem; } + .hero-film-head { font-size: .58rem; } .hero-actions { align-items: stretch; flex-direction: column; } .section-heading { align-items: flex-start; flex-direction: column; } .listing-header h1 { font-size: clamp(3.15rem, 14vw, 5rem); } diff --git a/site/cases/index.html b/site/cases/index.html index 0f1ee41..5e2f55a 100644 --- a/site/cases/index.html +++ b/site/cases/index.html @@ -5,7 +5,7 @@ permalink: /cases/ ---
-

/ THE CASE FILES — {{ site.data.cases.size }} TOTAL

CASE STUDIES.

Finished work with the decisions, failed iterations, and review that shaped it.

+

/ THE CASE FILES — {{ site.data.cases.size }} TOTAL

CASE STUDIES.

完成映像から見ることも、制作過程から読むこともできます。各事例に判断・失敗・検証の記録を残しています。

{% for case in site.data.cases %}{% include case-card.html case=case eager=forloop.first %}{% endfor %}

Each case begins with a finished work and keeps the useful process visible. Browse the production notes ↗

diff --git a/site/examples/index.html b/site/examples/index.html index 109f5dd..34666c4 100644 --- a/site/examples/index.html +++ b/site/examples/index.html @@ -5,6 +5,6 @@ permalink: /examples/ ---
-

/ SMALL ENOUGH TO INSPECT

EXAMPLES.

Focused, reproducible demonstrations that isolate one motion principle at a time.

-
{% for example in site.data.examples %}
EXAMPLE / {{ forloop.index | prepend: '0' | slice: -2, 2 }}

{{ example.title | escape }}

{{ example.description | escape }}

Explore concept & demo ↗
{% endfor %}
+

/ SMALL ENOUGH TO INSPECT / 動く実例

EXAMPLES.

動きの原則を一つずつ切り出した、操作・確認できる小さな実例です。

+
{% for example in site.data.examples %}
EXAMPLE / {{ forloop.index | prepend: '0' | slice: -2, 2 }}

{{ example.title | escape }}

{{ example.description | escape }}

Explore demo / 実例を見る ↗
{% endfor %}
diff --git a/site/index.html b/site/index.html index 5a81a67..cd3bf2a 100644 --- a/site/index.html +++ b/site/index.html @@ -6,37 +6,55 @@ --- {% assign featured = site.data.cases | where: 'featured', true | first %} {% unless featured %}{% assign featured = site.data.cases | first %}{% endunless %} +{% assign video_cases = site.data.cases | where: 'has_video', true %} +{% assign featured_video = video_cases | where: 'featured_video', true | first %} +{% unless featured_video %}{% assign featured_video = video_cases | first %}{% endunless %}

MOTION DESIGN / HUMAN REVIEW / PRACTICAL NOTES

HYPERFRAMESLAB.

Motion experiments, case studies,
and practical production notes.

+

完成映像から制作過程、実践ノートまで。動きを作り、人の目で確かめた記録です。

A working archive of motion made with HyperFrames and coding agents—what shipped, what failed, and what held up under human review.

- +
+ {% if featured_video %} + + {% else %}
LAB / 001

DESIGN → BUILD → CHECK → WATCH → REFINE

Check passed ≠ animation looks good.
+ {% endif %}
{% if featured %}
-

/ FEATURED CASE

All cases ↗
+

/ FEATURED CASE / 注目の事例

All cases / 事例一覧 ↗
{% include case-card.html case=featured eager=true %} -
{{ featured.duration }} SEC{{ featured.resolution | replace: 'x', ' × ' }}{{ featured.fps }} FPS{{ featured.status | upcase | escape }}
+
{% if featured.has_video %}{{ featured.duration }} SEC{{ featured.resolution | replace: 'x', ' × ' }}{{ featured.fps }} FPS{% endif %}{{ featured.status | upcase | escape }}
{% endif %}
-

/ KNOWLEDGE

Useful after the render.

+

/ KNOWLEDGE / 制作ノート

Useful after the render.

Specific decisions and reproducible steps from real production, written down for the next project.

- Explore all knowledge ↗ + Explore knowledge / 制作ノートを読む ↗
-

/ REPRODUCIBLE EXAMPLE

+

/ REPRODUCIBLE EXAMPLE / 動く実例

Stable Sprite UI Reaction

A small, inspectable example of a stable character, a readable gesture, and a deliberately delayed response.

Explore the example ↗
-

/ ABOUT THE LAB

Make it move.
Then watch it closely.

HyperFrames Lab documents finished motion work, the experiments behind it, the mistakes that changed the design, and small examples that make each lesson repeatable. HyperFrames and coding agents help build; human visual QA decides whether the result actually works.

Explore the repository ↗
+

/ ABOUT THE LAB / このサイトについて

Make it move.
Then watch it closely.

HyperFrames Lab は、完成映像だけでなく、制作中の判断、失敗、検証、再現できる実例をまとめた専門サイトです。ほかの成果物は greenwakame の Showcase に掲載しています。

HyperFrames and coding agents help build; human visual QA decides whether the result actually works.

diff --git a/site/knowledge/index.html b/site/knowledge/index.html index fe0640a..5e0a58c 100644 --- a/site/knowledge/index.html +++ b/site/knowledge/index.html @@ -5,6 +5,6 @@ permalink: /knowledge/ ---
-

/ FIELD GUIDE

KNOWLEDGE.

Environment, workflow, visual judgment, validation and delivery—documented from actual production.

+

/ FIELD GUIDE / 制作ノート

KNOWLEDGE.

制作環境、動きの設計、目視確認、検証、公開まで。実際の制作で得た手順をまとめています。

    {% for note in site.data.knowledge %}
  1. {{ forloop.index | prepend: '0' | slice: -2, 2 }}{{ note.title | escape }}{{ note.description | escape }}
  2. {% endfor %}