The useful behaviour here is the reading path, not a state transition. It does not need retained state, a reducer or an effect. The embedded preview is generated from these actual project files.
The active Fission theme supplies spacing, colours and typography. The stylesheet only limits the document width and makes keyboard focus explicit. Translation keys belong to meaning rather than page position; fragment anchors stay unchanged when the wording changes.
{"id":"fission-tabs-1","tabs":[{"index":0,"label":"fission.toml","value":"fission-toml"},{"index":1,"label":"src/lib.rs","value":"src-lib-rs"},{"index":2,"label":"src/page.rs","value":"src-page-rs"},{"index":3,"label":"src/navigation.rs","value":"src-navigation-rs"},{"index":4,"label":"src/section.rs","value":"src-section-rs"},{"index":5,"label":"src/translations.rs","value":"src-translations-rs"},{"index":6,"label":"i18n/en-US.yaml","value":"i18n-en-us-yaml"},{"index":7,"label":"i18n/es-ES.yaml","value":"i18n-es-es-yaml"},{"index":8,"label":"assets/landing.css","value":"assets-landing-css"}]}
{"id":"fission-tabs-1","index":0,"label":"fission.toml","value":"fission-toml"}
targets = ["static-site"]
[app]
name = "fieldnotes-site"
app_id = "rs.example.fieldnotes.site"
[site]
routes = []
entry = "crate::site_app"
title = "Fieldnotes project planning"
description = "Plan projects with clear ownership and explicit next steps."
base_url = "https://fieldnotes-site.example.com"
out_dir = "dist/site"
default_locale = "en-US"
locales = ["en-US", "es-ES"]
generate_sitemap = true
generate_robots = true
asset_dirs = ["assets"]
css_files = ["assets/landing.css"]
{"id":"fission-tabs-1","index":1,"label":"src/lib.rs","value":"src-lib-rs"}
pub mod page;
mod navigation;
mod section;
mod translations;
pub fn site_app() -> fission::site::FissionSite {
fission::site::FissionSite::new().with_env(translations::create_env())
.route_widget::<(), _>("/", "Fieldnotes project planning",
Some("Plan a small project with named owners and visible next steps.".into()),
page::LandingPage::new())
}
pub fn build_site() -> anyhow::Result<()> {
fission::site::build_from_cli(site_app())
}
{"id":"fission-tabs-1","index":2,"label":"src/page.rs","value":"src-page-rs"}
use crate::{navigation::SectionNavigation, section::LandingSection};
use fission::prelude::*;
fission_component! {
pub LandingPage<()> {}
view(_page, _state, cx) {
let tokens = &cx.view.env().theme.tokens;
} =>
Container(Column(gap: tokens.spacing.xl, children: [
SectionNavigation(),
SemanticsRegion(identifier: Some("site-main".into()), child:
Column(gap: tokens.spacing.xl, children: [
SemanticsRegion(identifier: Some("site-section:overview".into()), child:
Column(gap: tokens.spacing.m, children: [
SemanticsRegion(identifier: Some("site-heading-1:top".into()), child:
Text(cx.tr("hero.title")).size(tokens.typography.heading1_size)),
Text(cx.tr("hero.description")),
Link::to(cx.tr("hero.action"), "#features"),
])),
LandingSection("features", "section.features.title", "section.features.description"),
LandingSection("questions", "section.questions.title", "section.questions.description"),
])),
])).padding_all(tokens.spacing.l).bg(tokens.colors.background)
}
{"id":"fission-tabs-1","index":3,"label":"src/navigation.rs","value":"src-navigation-rs"}
use fission::prelude::*;
fission_component! {
pub SectionNavigation<()> {}
view(_nav, _state, cx) {
let tokens = &cx.view.env().theme.tokens;
} =>
SemanticsRegion(identifier: Some("site-navigation".into()), label: Some(cx.tr("navigation.label")), child:
Row(gap: tokens.spacing.m, wrap: ir_op::FlexWrap::Wrap, children: [
Link::to(cx.tr("brand"), "#top"),
Link::to(cx.tr("nav.features"), "#features"),
Link::to(cx.tr("nav.questions"), "#questions"),
]))
}
{"id":"fission-tabs-1","index":4,"label":"src/section.rs","value":"src-section-rs"}
use fission::prelude::*;
fission_component! {
pub LandingSection<()> {
props { anchor: &'static str, title_key: &'static str, body_key: &'static str }
}
view(section, _state, cx) {
let tokens = &cx.view.env().theme.tokens;
} =>
SemanticsRegion(identifier: Some(format!("site-section:{}", section.anchor)), child:
Container(Column(gap: tokens.spacing.m, children: [
SemanticsRegion(identifier: Some(format!("site-heading-2:heading-{}", section.anchor)), child:
Text(cx.tr(section.title_key)).size(tokens.typography.heading2_size)),
Text(cx.tr(section.body_key)),
])).padding_all(tokens.spacing.l).bg(tokens.colors.surface))
}
{"id":"fission-tabs-1","index":5,"label":"src/translations.rs","value":"src-translations-rs"}
use fission::i18n::{Locale, TranslationBundle};
use fission::prelude::*;
use std::collections::HashMap;
pub fn create_env() -> Env {
let mut env = Env::default();
env.locale = Locale::from("en-US");
for (locale, source) in [
("en-US", include_str!("../i18n/en-US.yaml")),
("es-ES", include_str!("../i18n/es-ES.yaml")),
] {
let messages: HashMap<String, String> =
serde_yaml::from_str(source).expect("checked-in translations must be valid YAML");
env.i18n.add_bundle(TranslationBundle { locale: Locale::from(locale), messages });
}
env
}
{"id":"fission-tabs-1","index":6,"label":"i18n/en-US.yaml","value":"i18n-en-us-yaml"}
brand: "Fieldnotes"
navigation.label: "Page sections"
nav.features: "How it works"
nav.questions: "Questions"
hero.title: "Keep a small project understandable"
hero.description: "Fieldnotes keeps a task, its owner and the next decision together. A team can see what needs attention without reconstructing the plan from several conversations."
hero.action: "See the planning process"
section.features.title: "A task needs an owner and a next step"
section.features.description: "Start with one project. Write down the outcome, assign each task and record what is blocking progress. Review the blocked work before adding another status meeting."
section.questions.title: "Does every project need a new process?"
section.questions.description: "No. Keep the steps the team already uses when they work. Add a field or review stage only when it answers a question someone actually needs to ask."
section.pricing.title: "What would a trial cost?"
section.pricing.description: "This is a fictional product page, not an offer or checkout. A real pricing section needs an actual price, billing period and limits before visitors can compare it."
nav.pricing: "Trial terms"
{"id":"fission-tabs-1","index":7,"label":"i18n/es-ES.yaml","value":"i18n-es-es-yaml"}
brand: "Fieldnotes"
navigation.label: "Secciones de la página"
nav.features: "Cómo funciona"
nav.questions: "Preguntas"
hero.title: "Mantén claro un proyecto pequeño"
hero.description: "Fieldnotes reúne una tarea, su responsable y la siguiente decisión. El equipo puede ver qué necesita atención sin reconstruir el plan a partir de varias conversaciones."
hero.action: "Ver el proceso de planificación"
section.features.title: "Una tarea necesita responsable y siguiente paso"
section.features.description: "Empieza con un proyecto. Define el resultado, asigna cada tarea y anota qué impide avanzar. Revisa los bloqueos antes de añadir otra reunión."
section.questions.title: "¿Necesita cada proyecto un proceso nuevo?"
section.questions.description: "No. Conserva los pasos que ya funcionan. Añade un campo o una revisión solo cuando responda a una pregunta que alguien necesite hacer."
section.pricing.title: "¿Cuánto costaría una prueba?"
section.pricing.description: "Esta es una página de producto ficticio, no una oferta ni una tienda. Un precio real necesita importe, periodo de facturación y límites."
nav.pricing: "Condiciones de prueba"
{"id":"fission-tabs-1","index":8,"label":"assets/landing.css","value":"assets-landing-css"}
[data-fission-semantics="site-main"] { max-width: 68rem; margin-inline: auto; }
[data-fission-semantics^="site-section:"] { scroll-margin-block-start: 1.5rem; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
{"id":"fission-tabs-1"}