Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions src/app/components/HolonPlayer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
"use client";

// The live Holon model at the top of /holon. Before a click it is the still the
// engine drew, with a play mark; a click runs the model in place (the ladder page
// allows framing). The plain link under it stays as the fallback, and the still
// plus its alt text keep the page readable when printed or read as text only.

import { useState } from "react";

export default function HolonPlayer({
src,
still,
alt,
label,
}: {
src: string;
still: string;
alt: string;
label: string;
}) {

Check warning on line 20 in src/app/components/HolonPlayer.tsx

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=CIRISAI_ciris-website&issues=AaJDGdvGGBD5KfLRporc&open=AaJDGdvGGBD5KfLRporc&pullRequest=78
const [running, setRunning] = useState(false);

if (running) {
return (
<iframe
src={src}
title={label}
allow="fullscreen"
allowFullScreen
style={{
display: "block",
width: "100%",
height: "min(78vh, 720px)",
border: 0,
borderRadius: 12,
background: "#000",
}}
/>
);
}

return (
<button
type="button"
onClick={() => setRunning(true)}
aria-label={label}
style={{
position: "relative",
display: "block",
width: "100%",
padding: 0,
border: 0,
borderRadius: 12,
overflow: "hidden",
cursor: "pointer",
background: "none",
}}
>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={still}
alt={alt}
width={1200}
height={630}
style={{ display: "block", width: "100%", height: "auto" }}
/>
<span
aria-hidden="true"
style={{
position: "absolute",
inset: 0,
margin: "auto",
width: 72,
height: 72,
borderRadius: "50%",
background: "rgba(124, 92, 230, 0.92)",
color: "#fff",
display: "grid",
placeItems: "center",
fontSize: 30,
paddingLeft: 5,
boxShadow: "0 6px 24px rgba(0,0,0,0.35)",
}}
>
▶
</span>
</button>
);
}
75 changes: 27 additions & 48 deletions src/app/components/HolonV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
// docs/frame/index.html in CIRISHolon.

import type { Dictionary } from "@/i18n/dictionaries";
import HolonPlayer from "@/app/components/HolonPlayer";
import PageShell from "@/app/components/PageShell";
import { contentStyles as s } from "@/app/components/v2/ContentShell";
import table from "@/app/components/compare-v2.module.css";

const IO = "https://cirisai.github.io/CIRISHolon";
const ANNOUNCEMENT = `${IO}/frame/`;
const LADDER = `${IO}/ladder/`;
const BREAK = `${IO}/frame/break.html`;
const REPO = "https://github.com/CIRISAI/CIRISHolon";
const BLOB = `${REPO}/blob/main`;
const ext = { target: "_blank", rel: "noopener noreferrer" } as const;
Expand Down Expand Up @@ -153,11 +155,35 @@ export default function HolonV2({ t, locale }: { t: Dictionary; locale: string }
accent="violet"
kicker={p.kicker}
title={p.title}
lede={p.lede}
belowTitle={
<p className={s.lede}>
<a href={BREAK} {...ext}>
<b>{p.physicistLine}</b>
</a>
</p>
}
backHref="/"
backLabel={t.pathsCommon.back}
mtBanner={t.common.mtBanner}
>
{/* Top of the page (Eric, 4 December, mirroring CIRISHolon #209): the live model
first, runnable in place, with a plain link as the fallback; then the lede. */}
<section className={s.section} id="model">
<HolonPlayer src={LADDER} still="/holon/walk.png" alt={p.pictureAlt} label={p.playLabel} />
<div className={s.ctaRow} style={{ marginTop: 16 }}>
<a href={LADDER} className={`${s.btn} ${s.btnP}`} {...ext}>
▶ {p.playOpen}
</a>
<a href={ANNOUNCEMENT} className={`${s.btn} ${s.btnS}`} {...ext}>
{p.readLabel}
</a>
</div>
<p className={s.footnote}>
{p.playSub} <a href={LADDER} {...ext}>cirisai.github.io/CIRISHolon/ladder</a>
</p>
<p className={s.lede}>{p.lede}</p>
</section>

{/* The page starts with the walk (Eric, 4 December): what the grid is, what a beat is,
and that the geometry forces the speed of light. The diagram sits with it. */}
<section className={s.section} id="walk">
Expand Down Expand Up @@ -203,53 +229,6 @@ export default function HolonV2({ t, locale }: { t: Dictionary; locale: string }
))}
</section>

{/* The live engine: a still it drew, with a play mark, opening the simulation. */}
<section className={s.section}>
<a
href={LADDER}
{...ext}
style={{ position: "relative", display: "block", borderRadius: 12, overflow: "hidden" }}
>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="/holon/walk.png"
alt={p.pictureAlt}
width={1200}
height={630}
style={{ display: "block", width: "100%", height: "auto" }}
/>
<span
aria-hidden="true"
style={{
position: "absolute",
inset: 0,
margin: "auto",
width: 72,
height: 72,
borderRadius: "50%",
background: "rgba(124, 92, 230, 0.92)",
color: "#fff",
display: "grid",
placeItems: "center",
fontSize: 30,
paddingLeft: 5,
boxShadow: "0 6px 24px rgba(0,0,0,0.35)",
}}
>
▶
</span>
</a>
<div className={s.ctaRow} style={{ marginTop: 16 }}>
<a href={LADDER} className={`${s.btn} ${s.btnP}`} {...ext}>
▶ {p.playLabel}
</a>
<a href={ANNOUNCEMENT} className={`${s.btn} ${s.btnS}`} {...ext}>
{p.readLabel}
</a>
</div>
<p className={s.footnote}>{p.playSub}</p>
</section>

{/* Stated first, as on the source page: why it is published, and that it is unproven. */}
<section className={s.section} id="why">
<div className={s.callout}>
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/PageShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function PageShell({
kicker,
title,
lede,
belowTitle,
graphicId,
backHref,
backLabel,
Expand All @@ -41,6 +42,8 @@ export default function PageShell({
kicker: string;
title: string;
lede?: string;
/** Rendered directly under the title, before the lede. */
belowTitle?: React.ReactNode;
graphicId?: string;
backHref?: string;
backLabel?: string;
Expand Down Expand Up @@ -69,6 +72,7 @@ export default function PageShell({
<header className={content.head}>
<p className={content.kicker}>{kicker}</p>
<h1 className={content.h1}>{title}</h1>
{belowTitle}
{lede && <p className={content.lede}>{lede}</p>}
{graphicId && (
<div className={content.heroArt} aria-hidden="true">
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/dictionaries/am.json
Original file line number Diff line number Diff line change
Expand Up @@ -4152,8 +4152,10 @@
"ogDescription": "ሆሎን፣ የ CIRIS ፕሮጀክት፣ አንድ ሃሳብ ይፈትሻል፡ አጽናፈ ዓለሙ በፍሬሞች በሚባሉ ጥቃቅን እርምጃዎች ወደፊት ይጓዛል። አንድ የፍሬሞች ቆጠራ ቁስ የት እንደተፈጠረ እና የአጽናፈ ዓለሙ አድማስ ምን ያህል እንደሚያድግ ሁለቱንም ይሰጣል። ለታላቅ የተዋሃደ ንድፈ ሃሳብ ፍለጋ አስተዋጽኦ፣ ከመሮጡ በፊት ተጽፎ የተቀመጠ።",
"kicker": "Holon · 2 December 2026 · updated 4 December 2026",
"title": "ማዕቀፉ፡ ቁስ እና አድማስ ከአንድ ቁጥር",
"physicistLine": "Physicist? The claim, the number and how it fails are on one page.",
"lede": "ሆሎን አንድ ሃሳብ ይፈትሻል። ዩኒቨርሱ ወደፊት በጥቃቅን እርምጃዎች ይሄዳል፣ ማዕቀፎች ይባላሉ። በእያንዳንዱ ማዕቀፍ ውስጥ ነገሮች ይጓዛሉ ከዚያም ይነበባሉ። የሁለቱ እርምጃዎች ቅደም ተከተል በስሌት ሊወጣ የሚችል ምልክት ይተዋል። መጀመሪያ የምንጠብቀውን ጻፍን። ከዚያም ሞዴሉን አስኬድን።",
"playLabel": "ንድፈ ሐሳቡን በአሳሽዎ ውስጥ ያስሱ",
"playOpen": "Open the model in its own tab",
"playSub": "ሕያው ሞዴል፣ ከአንድ ሴል እስከ ዩኒቨርስ ጠርዝ። ምንም መጫን አያስፈልግም።",
"pictureAlt": "በጨለማ ፍርግርግ ላይ የተዘረጉ የብርሃን ካሬዎች ሦስት ማዕዘን፡ በአንጂኑ የተሳለ በማዕቀፉ የሴሎች ፍርግርግ ላይ አንድ ጉዞ።",
"readLabel": "ሙሉ ማስታወቂያውን ያንብቡ",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/dictionaries/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -4153,8 +4153,10 @@
"ogDescription": "Holon، وهو مشروع من CIRIS، يختبر فكرة واحدة: الكون يتقدم بخطوات صغيرة تُسمى الأُطر. عدد واحد من الأُطر يعطي معًا أين تكوّنت المادة وكم سيبلغ أفق الكون. مساهمة في البحث عن نظرية موحدة كبرى، دُوّنت قبل تشغيلها.",
"kicker": "Holon · 2 December 2026 · updated 4 December 2026",
"title": "الإطار: المادة والأفق من رقم واحد",
"physicistLine": "Physicist? The claim, the number and how it fails are on one page.",
"lede": "يختبر Holon فكرة واحدة. يتقدم الكون بخطوات صغيرة جداً، تُسمى الإطارات. في كل إطار، تنتقل الأشياء ثم تُقرأ. ترتيب هاتين الخطوتين يترك أثراً يمكن حسابه. كتبنا ما توقعناه أولاً. ثم نفّذنا النموذج.",
"playLabel": "استكشف النظرية في متصفحك",
"playOpen": "Open the model in its own tab",
"playSub": "نموذج حي، من خلية واحدة إلى حافة الكون. لا شيء لتثبيته.",
"pictureAlt": "مثلث من مربعات مضيئة ينتشر عبر شبكة داكنة: مشية واحدة على شبكة الإطار من الخلايا، رسمها المحرك.",
"readLabel": "اقرأ الإعلان الكامل",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/dictionaries/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -4153,8 +4153,10 @@
"ogDescription": "Holon, CIRIS-এর একটি প্রকল্প, একটি ধারণা পরীক্ষা করে: মহাবিশ্ব ফ্রেম নামের ক্ষুদ্র ধাপে এগিয়ে যায়। ফ্রেমের একটি গণনা দুটোই দেয়, পদার্থ কোথায় তৈরি হয়েছিল এবং মহাবিশ্বের দিগন্ত কত বড় হবে। গ্র্যান্ড ইউনিফাইড থিওরির খোঁজে একটি অবদান, চালানোর আগেই লিখে রাখা হয়েছে।",
"kicker": "Holon · 2 December 2026 · updated 4 December 2026",
"title": "ফ্রেম: একটি সংখ্যা থেকে পদার্থ ও দিগন্ত",
"physicistLine": "Physicist? The claim, the number and how it fails are on one page.",
"lede": "হোলন একটি ধারণা পরীক্ষা করে। মহাবিশ্ব ফ্রেম নামে ক্ষুদ্র ক্ষুদ্র ধাপে এগিয়ে যায়। প্রতিটি ফ্রেমে, জিনিসগুলো প্রথমে ভ্রমণ করে তারপর পড়া হয়। এই দুটি ধাপের ক্রম এমন একটি ছাপ রাখে যা হিসাব করে বের করা যায়। আমরা প্রথমে আমাদের প্রত্যাশা লিখে রেখেছিলাম। তারপর মডেলটি চালিয়েছিলাম।",
"playLabel": "আপনার ব্রাউজারে তত্ত্বটি অন্বেষণ করুন",
"playOpen": "Open the model in its own tab",
"playSub": "একটি লাইভ মডেল, একটি সেল থেকে মহাবিশ্বের প্রান্ত পর্যন্ত। ইনস্টল করার কিছু নেই।",
"pictureAlt": "অন্ধকার গ্রিড জুড়ে ছড়িয়ে থাকা জ্বলন্ত বর্গের ত্রিভুজ: ইঞ্জিনের আঁকা, ফ্রেমের কোষের গ্রিডে একটি চলন।",
"readLabel": "সম্পূর্ণ ঘোষণাটি পড়ুন",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/dictionaries/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -4153,8 +4153,10 @@
"ogDescription": "Holon, ein CIRIS-Projekt, prüft eine Idee: Das Universum schreitet in winzigen Schritten voran, die Frames genannt werden. Eine Zählung der Frames liefert sowohl, wo Materie entstand, als auch, wie groß der Horizont des Universums werden wird. Ein Beitrag zur Suche nach einer Großen vereinheitlichten Theorie, aufgeschrieben, bevor er ausgeführt wurde.",
"kicker": "Holon · 2 December 2026 · updated 4 December 2026",
"title": "Der Frame: Materie und Horizont aus einer Zahl",
"physicistLine": "Physicist? The claim, the number and how it fails are on one page.",
"lede": "Holon testet eine Idee. Das Universum schreitet in winzigen Schritten voran, Frames genannt. In jedem Frame bewegen sich Dinge, und dann werden sie ausgelesen. Die Reihenfolge dieser beiden Schritte hinterlässt eine Spur, die sich berechnen lässt. Wir haben zuerst aufgeschrieben, was wir erwartet haben. Dann haben wir das Modell laufen lassen.",
"playLabel": "Theorie im Browser erkunden",
"playOpen": "Open the model in its own tab",
"playSub": "Ein Live-Modell, von einer Zelle bis zum Rand des Universums. Nichts zu installieren.",
"pictureAlt": "Ein Dreieck aus leuchtenden Quadraten, das sich über ein dunkles Raster ausbreitet: ein Walk auf dem Zellraster des Frames, gezeichnet von der Engine.",
"readLabel": "Vollständige Ankündigung lesen",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/dictionaries/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4133,8 +4133,10 @@
"ogDescription": "Holon, a CIRIS project, tests one idea: the universe moves forward in tiny steps called frames. One count of frames gives both where matter was made and how big the universe's horizon will grow. A contribution to the search for a grand unified theory, written down before it was run.",
"kicker": "Holon · 2 December 2026 · updated 4 December 2026",
"title": "The frame: matter and the horizon from one number",
"physicistLine": "Physicist? The claim, the number and how it fails are on one page.",
"lede": "Holon tests one idea. The universe moves forward in tiny steps, called frames. In each frame, things travel and then they are read. The order of those two steps leaves a mark that can be worked out with a calculation. We wrote down what we expected first. Then we ran the model.",
"playLabel": "Explore the theory in your browser",
"playOpen": "Open the model in its own tab",
"playSub": "A live model, from one cell to the edge of the universe. Nothing to install.",
"pictureAlt": "A triangle of lit squares spreading across a dark grid: one walk on the frame's grid of cells, drawn by the engine.",
"readLabel": "Read the full announcement",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/dictionaries/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4153,8 +4153,10 @@
"ogDescription": "Holon, un proyecto de CIRIS, pone a prueba una idea: el universo avanza en pasos diminutos llamados marcos. Un conteo de marcos da tanto dónde se creó la materia como cuánto crecerá el horizonte del universo. Una contribución a la búsqueda de una gran teoría unificada, escrita antes de ejecutarse.",
"kicker": "Holon · 2 December 2026 · updated 4 December 2026",
"title": "El marco: la materia y el horizonte a partir de un solo número",
"physicistLine": "Physicist? The claim, the number and how it fails are on one page.",
"lede": "Holon pone a prueba una idea. El universo avanza en pasos diminutos, llamados marcos. En cada marco, las cosas viajan y luego se leen. El orden de esos dos pasos deja una marca que se puede calcular. Escribimos primero lo que esperábamos. Luego ejecutamos el modelo.",
"playLabel": "Explora la teoría en tu navegador",
"playOpen": "Open the model in its own tab",
"playSub": "Un modelo en vivo, desde una célula hasta la arista del universo. Nada que instalar.",
"pictureAlt": "Un triángulo de cuadrados iluminados que se extiende sobre una cuadrícula oscura: un recorrido en la cuadrícula de celdas del marco, dibujado por el motor.",
"readLabel": "Lee el anuncio completo",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/dictionaries/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -4153,8 +4153,10 @@
"ogDescription": "هولون، پروژه‌ای از CIRIS، یک ایده را می‌آزماید: جهان در گام‌های کوچکی به نام قاب پیش می‌رود. یک شمارش از قاب‌ها هم نشان می‌دهد ماده کجا ساخته شد و هم افق جهان چقدر بزرگ خواهد شد. مشارکتی در جست‌وجوی نظریه وحدت بزرگ، که پیش از اجرا نوشته شد.",
"kicker": "Holon · 2 December 2026 · updated 4 December 2026",
"title": "قاب: ماده و افق از یک عدد",
"physicistLine": "Physicist? The claim, the number and how it fails are on one page.",
"lede": "هولون یک ایده را می‌آزماید. جهان در گام‌های بسیار کوچکی به نام قاب پیش می‌رود. در هر قاب، چیزها اول حرکت می‌کنند و بعد خوانده می‌شوند. ترتیب این دو گام ردّی به جا می‌گذارد که می‌شود با محاسبه به دستش آورد. اول آنچه را انتظار داشتیم نوشتیم. بعد مدل را اجرا کردیم.",
"playLabel": "نظریه را در مرورگر خود کاوش کنید",
"playOpen": "Open the model in its own tab",
"playSub": "مدلی زنده، از یک سلول تا لبه جهان. بدون نیاز به نصب.",
"pictureAlt": "مثلثی از مربع‌های روشن که روی شبکه‌ای تیره پخش شده‌اند: یک گشت روی شبکه سلول‌های قاب، که موتور آن را کشیده است.",
"readLabel": "متن کامل اعلامیه را بخوانید",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/dictionaries/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4152,8 +4152,10 @@
"ogDescription": "Holon, un projet CIRIS, teste une idée : l'univers avance par minuscules pas appelés trames. Un seul comptage de trames donne à la fois où la matière a été créée et jusqu'où grandira l'horizon de l'univers. Une contribution à la recherche d'une théorie de grande unification, écrite avant son exécution.",
"kicker": "Holon · 2 December 2026 · updated 4 December 2026",
"title": "La trame : la matière et l'horizon à partir d'un seul nombre",
"physicistLine": "Physicist? The claim, the number and how it fails are on one page.",
"lede": "Holon teste une idée. L’univers avance par minuscules pas, appelés trames. À chaque trame, les choses se déplacent puis sont lues. L’ordre de ces deux étapes laisse une marque qui peut se calculer. Nous avons d’abord écrit ce que nous attendions. Puis nous avons exécuté le modèle.",
"playLabel": "Explorer la théorie dans votre navigateur",
"playOpen": "Open the model in its own tab",
"playSub": "Un modèle en direct, d’une seule cellule jusqu’au bord de l’univers. Rien à installer.",
"pictureAlt": "Un triangle de carrés lumineux s'étendant sur une grille sombre : une marche sur la grille de cellules de la trame, dessinée par le moteur.",
"readLabel": "Lire l'annonce complète",
Expand Down
Loading
Loading