Skip to content

Commit e6c6778

Browse files
committed
chore: PF banner
1 parent 6aa84f7 commit e6c6778

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/components/Nav.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import SwiperStudioBanner from './SwiperStudioBanner';
1010

1111
import UserExperiencedModal from './UserExperiencedModal';
1212
import UserExperiencedPopover from './UserExperiencedPopover';
13+
import PaneFlowBanner from './PaneFlowBanner';
1314
let bannerCached;
1415

1516
const Dropdown = ({ children, opened }) => {
@@ -97,13 +98,14 @@ export const Nav = ({ withSidebar = false }) => {
9798
'lg:justify-start lg:pl-80 2xl:!pl-4 2xl:!justify-center'
9899
)}
99100
>
100-
{bannerSet && (
101+
<PaneFlowBanner />
102+
{/* {bannerSet && (
101103
<>
102104
{banner === 'swiperstudio' && <SwiperStudioBanner />}
103105
{banner === 'sphq' && <SPHQBanner />}
104106
{banner === 'cladd' && <CladdBanner />}
105107
</>
106-
)}
108+
)}*/}
107109
</div>
108110

109111
<div

src/components/PaneFlowBanner.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default function PaneFlowBanner({ className }) {
22
return (
33
<a
4-
className={`group flex h-14 items-center justify-center bg-surface-1 !text-on-surface !no-underline rounded-full border border-outline text-sm font-normal px-2 pr-4 sm:px-4 gap-2 leading-none whitespace-nowrap backdrop-blur-lg backdrop-saturate-200 shrink min-w-0 w-fit ${className || ''}`}
4+
className={`group flex h-14 items-center justify-center bg-surface-1 !text-on-surface !no-underline rounded-full border border-outline text-sm font-normal px-4 gap-4 leading-tight text-balance backdrop-blur-lg backdrop-saturate-200 shrink min-w-0 w-fit ${className || ''}`}
55
href="https://paneflow.com"
66
target="_blank"
77
>
@@ -11,11 +11,8 @@ export default function PaneFlowBanner({ className }) {
1111
alt="PaneFlow"
1212
className="h-6 w-6 relative"
1313
/>
14-
<div className="shrink min-w-0 relative text-ellipsis overflow-hidden flex items-center">
15-
Meet <span className="hidden sm:inline ml-1">our new project </span>
16-
<span className="border-b border-white/30 ml-1 shrink min-w-0 truncate">
17-
PaneFlow: Create Stunning Slideshows Visually
18-
</span>
14+
<div className="shrink min-w-0 flex items-center">
15+
All-new PaneFlow v2 is here with a 50%-off launch offer
1916
</div>
2017
</a>
2118
);

0 commit comments

Comments
 (0)