Skip to content

Commit 683d3aa

Browse files
committed
feat(docs): add Rix branding and home page
1 parent 207bf6c commit 683d3aa

15 files changed

Lines changed: 2269 additions & 702 deletions

.vitepress/theme/DocsHomeHero.vue

Lines changed: 524 additions & 294 deletions
Large diffs are not rendered by default.

.vitepress/theme/Layout.vue

Lines changed: 446 additions & 400 deletions
Large diffs are not rendered by default.

.vitepress/theme/home.css

Lines changed: 568 additions & 0 deletions
Large diffs are not rendered by default.

.vitepress/theme/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import DefaultTheme from "vitepress/theme";
22
import "./custom.css";
3+
import "./rix-overrides.css";
4+
import "./home.css";
35

46
import Layout from "./Layout.vue";
57
import DocsHomeHero from "./DocsHomeHero.vue";
@@ -38,16 +40,21 @@ export default {
3840
// Custom header layout sync
3941
// ──────────────────────────────────────────────
4042
const syncVixHeaderHeight = () => {
41-
const header = document.querySelector(".vix-nav");
43+
const header = document.querySelector(".rix-nav, .vix-nav");
4244
if (!header) return;
4345

4446
const height = Math.ceil(header.getBoundingClientRect().height);
47+
4548
document.documentElement.style.setProperty(
4649
"--vix-header-height",
4750
`${height}px`,
4851
);
49-
};
5052

53+
document.documentElement.style.setProperty(
54+
"--rix-header-height",
55+
`${height}px`,
56+
);
57+
};
5158
window.addEventListener("load", syncVixHeaderHeight);
5259
window.addEventListener("resize", syncVixHeaderHeight);
5360

0 commit comments

Comments
 (0)