Skip to content

Commit 9a57b3c

Browse files
Updated hellobar to be smaller and hide on mobile devices
1 parent 10615f1 commit 9a57b3c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/components/homepage/HelloBar.jsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
import React from 'react';
22
import Link from '@docusaurus/Link';
33
import { ChevronRight, GitHub } from 'react-feather';
4-
import clsx from 'clsx';
54

65
function HelloBar() {
76
return (
87
<a
98
href="https://avaloniaui.net/xpf?utm_source=docs&utm_medium=referral&utm_content=hellobar"
109
target="_blank"
11-
className="hello-bar u-hflex-center-center w-inline-block"
10+
className="hidden md:flex w-full items-center justify-center bg-blue-50 py-2 hover:bg-blue-100 transition-colors"
1211
>
13-
<div className="hello_bar_contents u-hflex-center-center u-gap-10">
14-
<div className="ph_cat_nd_txt-wrapper u-hflex-left-center u-gap-10">
15-
<div className="ph_banner_txt">
12+
<div className="flex items-center justify-center gap-4 px-4">
13+
<div className="flex items-center gap-3">
14+
<div className="text-sm font-medium text-blue-900">
1615
Introducing Avalonia XPF: A cross-platform fork of WPF
1716
</div>
1817
</div>
19-
<div className="banner_separator"></div>
20-
<div className="hello_bar_cta u-hflex-left-center u-gap-8">
21-
<div className="text-block-98">Try it today</div>
18+
<div className="h-4 w-px bg-blue-200"></div>
19+
<div className="flex items-center gap-2">
20+
<div className="text-sm font-medium text-blue-700">Try it today</div>
2221
</div>
2322
</div>
2423
</a>
2524
);
2625
}
2726

28-
export default HelloBar;
27+
export default HelloBar;

0 commit comments

Comments
 (0)