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
50 changes: 50 additions & 0 deletions website/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1315,3 +1315,53 @@ img {
font-size: 1.6rem;
}
}

/* ========== Benchmarks page ========== */

.bench-table-wrapper {
overflow-x: auto;
margin: 24px 0;
border: 1px solid #303949;
border-radius: 8px;
background: #11151c;
}
.bench-table {
width: 100%;
border-collapse: collapse;
font-size: 0.92rem;
}
.bench-table th {
text-align: left;
padding: 12px 14px;
background: #161b24;
color: #b9c2cf;
font-weight: 600;
border-bottom: 1px solid #303949;
white-space: nowrap;
}
.bench-table td {
padding: 10px 14px;
border-bottom: 1px solid #1c222c;
color: #e6ecf2;
vertical-align: top;
}
.bench-table tbody tr:last-child td {
border-bottom: none;
}
.bench-table tbody tr:hover {
background: #161b24;
}
.bench-table code {
background: transparent;
color: #6ce0c9;
padding: 0;
}
.bench-table-note {
color: #8a94a3;
font-size: 0.88rem;
max-width: 360px;
}
.muted {
color: #8a94a3;
font-size: 0.92rem;
}
4 changes: 3 additions & 1 deletion website/src/app.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use dioxus::prelude::*;

use crate::components::{Footer, Nav};
use crate::pages::{DocPage, Examples, Home, NotFound, SyncDemo, TodoDemo};
use crate::pages::{Benchmarks, DocPage, Examples, Home, NotFound, SyncDemo, TodoDemo};

const MAIN_CSS: Asset = asset!("/assets/main.css");
const FAVICON: Asset = asset!("/assets/favicon.svg");
Expand All @@ -17,6 +17,8 @@ pub enum Route {
DocPage { slug: String },
#[route("/examples")]
Examples {},
#[route("/benchmarks")]
Benchmarks {},
#[route("/demo")]
TodoDemo {},
#[route("/sync-demo")]
Expand Down
1 change: 1 addition & 0 deletions website/src/components/nav.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub fn Nav() -> Element {
nav { class: "site-nav-links",
Link { class: "site-nav-link", to: Route::DocsIndex {}, "Docs" }
Link { class: "site-nav-link", to: Route::Examples {}, "Examples" }
Link { class: "site-nav-link", to: Route::Benchmarks {}, "Benchmarks" }
Link { class: "site-nav-link", to: Route::TodoDemo {}, "Demo" }
a {
class: "site-nav-link site-nav-github",
Expand Down
Loading
Loading