Skip to content

Commit f111ce1

Browse files
committed
fix: header and other stuff
1 parent e405bf0 commit f111ce1

File tree

7 files changed

+77
-6
lines changed

7 files changed

+77
-6
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
diff --git a/node_modules/@swmansion/t-rex-ui/dist/assets/index6.css b/node_modules/@swmansion/t-rex-ui/dist/assets/index6.css
2+
index dae2c68..15638e5 100644
3+
--- a/node_modules/@swmansion/t-rex-ui/dist/assets/index6.css
4+
+++ b/node_modules/@swmansion/t-rex-ui/dist/assets/index6.css
5+
@@ -1 +1 @@
6+
-._navbarHideable_2jugh_1{transition:transform var(--ifm-transition-fast) ease}._navbarHidden_2jugh_5{transform:translate3d(0,calc(-100% - 2px),0)}[class*=navbar-sidebar__backdrop]{background-color:var(--swm-sidebar-backdrop)!important}._navbarLanding_2jugh_13{position:relative;background-color:transparent}
7+
+._navbarHideable_2jugh_1{transition:transform var(--ifm-transition-fast) ease}._navbarHidden_2jugh_5{transform:translate3d(0,calc(-100% - 2px),0)}[class*=navbar-sidebar__backdrop]{background-color:var(--swm-sidebar-backdrop)!important}._navbarLanding_2jugh_13{position:fixed;width:100%;background-color:var(--swm-landing-background);transform:none;}
8+
diff --git a/node_modules/@swmansion/t-rex-ui/dist/components/Navbar/Content/index.js b/node_modules/@swmansion/t-rex-ui/dist/components/Navbar/Content/index.js
9+
index c8e1e3f..5050e8f 100644
10+
--- a/node_modules/@swmansion/t-rex-ui/dist/components/Navbar/Content/index.js
11+
+++ b/node_modules/@swmansion/t-rex-ui/dist/components/Navbar/Content/index.js
12+
@@ -54,9 +54,10 @@ function H({
13+
titleImages: o,
14+
isAlgoliaActive: s,
15+
useLandingLogoDualVariant: b,
16+
- isThemeSwitcherShown: i
17+
+ isThemeSwitcherShown: i,
18+
+ landingItems: lx = []
19+
}) {
20+
- const t = h() === "mobile", { isDocumentation: m, isLanding: a } = g(), v = I(), l = z(), [f, p] = y(l), u = l.find((x) => x.type === "search"), j = s ? /* @__PURE__ */ e.jsx(S, {}) : /* @__PURE__ */ e.jsx("div", {});
21+
+ const t = h() === "mobile", { isDocumentation: m, isLanding: a } = g(), v = I(), l = z(), [f, p] = y(a ? [...lx, ...l] : l), u = l.find((x) => x.type === "search"), j = s ? /* @__PURE__ */ e.jsx(S, {}) : /* @__PURE__ */ e.jsx("div", {});
22+
return /* @__PURE__ */ e.jsx(
23+
B,
24+
{
25+
diff --git a/node_modules/@swmansion/t-rex-ui/dist/components/Navbar/index.js b/node_modules/@swmansion/t-rex-ui/dist/components/Navbar/index.js
26+
index ed73945..2e33153 100644
27+
--- a/node_modules/@swmansion/t-rex-ui/dist/components/Navbar/index.js
28+
+++ b/node_modules/@swmansion/t-rex-ui/dist/components/Navbar/index.js
29+
@@ -1,12 +1,14 @@
30+
import { j as o } from "../../jsx-runtime-Bfani28R.js";
31+
import u from "./Layout/index.js";
32+
import f from "./Content/index.js";
33+
+
34+
function j({
35+
heroImages: a,
36+
titleImages: m,
37+
isAlgoliaActive: r = !0,
38+
isThemeSwitcherShown: t = !0,
39+
- useLandingLogoDualVariant: n = !1
40+
+ useLandingLogoDualVariant: n = !1,
41+
+ landingItems: l = []
42+
}) {
43+
return /* @__PURE__ */ o.jsx(
44+
u,
45+
@@ -20,7 +22,8 @@ function j({
46+
isAlgoliaActive: r,
47+
useLandingLogoDualVariant: n,
48+
heroImages: a,
49+
- titleImages: m
50+
+ titleImages: m,
51+
+ landingItems: l,
52+
}
53+
)
54+
}

packages/audiodocs/src/components/Testimonials/TestimonialList/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ const TestimonialList = () => {
8787

8888
const dragHandlers = useDrag(currentOffset, setCurrentOffset, activeIndex, onSetActiveSlide);
8989

90-
console.log('TestimonialList rendered with activeIndex:', activeIndex, 'currentOffset:', currentOffset);
91-
9290
return (
9391
<div>
9492
<div ref={testimonialListRef} className={styles.testimonialList}>

packages/audiodocs/src/components/Testimonials/TestimonialList/useDrag.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export default function useDrag(currentOffset: number, setCurrentOffset: (offset
7777
if (newIndex !== activeIndex) {
7878
onSetActiveSlide(newIndex);
7979
} else {
80-
console.log('No change in active index', initialOffset, currentOffset);
8180
setCurrentOffset(initialOffset);
8281
}
8382

packages/audiodocs/src/css/colors.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
--ifm-navbar-background-color: var(--swm-background);
319319
--ifm-navbar-link-color: var(--swm-off-white);
320320

321-
--swm-landing-background: var(--black);
321+
--swm-landing-background: var(--swm-background);
322322

323323
/* Color Mode */
324324
--swm-color-mode-enabled: var(--swm-off-navy);

packages/audiodocs/src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect } from 'react';
22

3-
// @ts-expect-error
3+
// @ts-ignore
44
import Layout from '@theme/Layout';
55

66
import Hero from '@site/src/components/Hero';
@@ -25,7 +25,7 @@ function Home() {
2525
}, [])
2626
return (
2727
<Layout
28-
title={`React Native Audio API`}
28+
title="React Native Audio API"
2929
description="Declarative API exposing platform native touch and gesture system to React Native.">
3030
<div className={styles.container}>
3131
<Hero />

packages/audiodocs/src/theme/Navbar/index.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import useBaseUrl from '@docusaurus/useBaseUrl';
33
import { Navbar } from '@swmansion/t-rex-ui';
4+
import './styles.css';
45

56
export default function NavbarWrapper(props) {
67
const titleImages = {
@@ -17,6 +18,14 @@ export default function NavbarWrapper(props) {
1718
useLandingLogoDualVariant={true}
1819
heroImages={heroImages}
1920
titleImages={titleImages}
21+
landingItems={[
22+
{
23+
href: '/react-native-audio-api/docs',
24+
label: 'Docs',
25+
position: 'right',
26+
'aria-label': 'Documentation',
27+
},
28+
]}
2029
{...props}
2130
>
2231
<button type='button' className='navbar__toggle' aria-label='Toggle navigation'>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
@media (max-width: 996px) {
3+
.docs-doc-page .navbar__item {
4+
display: none !important;
5+
}
6+
}
7+
8+
.navbar__item {
9+
display: block !important;
10+
}
11+

0 commit comments

Comments
 (0)