diff --git a/README.md b/README.md index 0ab25c2..3b5d71f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # FerroUI website The website of [FerroUI](https://github.com/wieslawsoltes/FerroUI), a cross-platform UI framework for -Rust: **https://ferroui.github.io/website/** +Rust: declarative Rust UI with signals and React-like components, or compiled XAML. +**https://ferroui.github.io/website/** A static page: HTML, CSS and plain JavaScript, with no framework, no build step and no third-party requests. GitHub Pages publishes it from `main` through `.github/workflows/pages.yml`. @@ -56,7 +57,7 @@ python3 scripts/check-site.py ## Screenshots -The screenshots come from the READMEs of FerroUI and of the applications in the +The screenshots come from the READMEs and the documentation of FerroUI, from the READMEs of the applications in the [FerroUI organization](https://github.com/FerroUI), and from the live Control Catalog. Each card links to its source repository. diff --git a/assets/css/site.css b/assets/css/site.css index 4cbe72a..1e9070b 100644 --- a/assets/css/site.css +++ b/assets/css/site.css @@ -317,7 +317,7 @@ p { margin: 0; } .brand .ui { color: var(--rust); } .nav { margin-left: auto; display: flex; align-items: center; gap: 4px; } -.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; } +.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; white-space: nowrap; } .nav-links a { display: block; padding: 6px 12px; @@ -356,7 +356,7 @@ p { margin: 0; } .menu-toggle { display: none; } -@media (max-width: 899px) { +@media (max-width: 1079px) { .menu-toggle { display: inline-grid; } .nav-links { position: absolute; @@ -458,6 +458,7 @@ section { padding: 72px 0; } -webkit-background-clip: text; background-clip: text; color: transparent; } +.hero h1 .nowrap { white-space: nowrap; } @media (forced-colors: active) { .hero h1 .accent { color: CanvasText; background: none; } } .hero .lead { font-size: 18px; color: var(--text-2); max-width: 600px; } .hero .lead strong { color: var(--text); font-weight: 600; } @@ -528,6 +529,12 @@ section { padding: 72px 0; } .hero-visual { padding-bottom: 0; } } +/* The two ways to write a view, below the hero */ +.hero-code { margin-top: 64px; } +.hero-code-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; } +.hero-code .code { margin-bottom: 0; } +@media (min-width: 960px) { .hero-code .split.two { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } } + /* Cards with Reveal */ .card { @@ -585,6 +592,18 @@ section { padding: 72px 0; } .feature .links a { color: var(--rust); font-weight: 600; text-decoration: none; } .feature .links a:hover { text-decoration: underline; } +.samples-sub + .features:not(:last-child) { margin-bottom: 40px; } +.declarative-code { margin-bottom: 28px; } +.react-map { margin-top: 40px; } +.react-map h3 { font-size: 20px; font-weight: 600; margin-bottom: 14px; } +.react-map .table-wrap { margin-bottom: 14px; } +.react-map table.data td:first-child { white-space: normal; } + +/* Origins */ +.origins { max-width: 860px; padding: 24px 26px; } +.origins p { color: var(--text-2); font-size: 15px; } +.origins p + p { margin-top: 12px; } + /* Samples */ .samples-sub { diff --git a/assets/img/todomvc-480.webp b/assets/img/todomvc-480.webp new file mode 100644 index 0000000..e923b60 Binary files /dev/null and b/assets/img/todomvc-480.webp differ diff --git a/assets/img/todomvc.webp b/assets/img/todomvc.webp new file mode 100644 index 0000000..1001f64 Binary files /dev/null and b/assets/img/todomvc.webp differ diff --git a/index.html b/index.html index a93bff8..add9f26 100644 --- a/index.html +++ b/index.html @@ -4,8 +4,8 @@ - FerroUI: cross-platform user interfaces in Rust - + FerroUI: a cross-platform UI framework for Rust + @@ -13,14 +13,17 @@ - - + + + + + @@ -42,6 +45,13 @@ + + + + + + + @@ -65,6 +75,8 @@ @@ -1269,6 +1612,8 @@