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
13 changes: 8 additions & 5 deletions src/components/LandingPage/GlobalStyles/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ ul li:last-child {

.header__announcement {
position: relative;
background: var(--light-blue);
background: #8a77ff;
z-index: 101;
}

@media only screen and (max-width: 1024px) {
.header__announcement {
background: rgba(94, 0, 255, 0.9);
background: #8a77ff;
}
}

Expand All @@ -298,18 +298,21 @@ ul li:last-child {
}

.header__announcement__wrapper p {
font-size: 1.4rem;
font-size: 1.6rem;
margin-bottom: 0;
font-weight: 700;
}

.header__announcement__wrapper p a {
display: none;
text-decoration: underline;
}

@media only screen and (max-width: 1023px) {
.header__announcement__wrapper p a {
.header__announcement__wrapper p {
font-size: 1.4rem;
}

.header__announcement__wrapper a {
display: inline-block;
}
}
Expand Down
17 changes: 17 additions & 0 deletions src/components/LandingPage/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const Header = () => {
const [showMobileMenu, setShowMobileMenu] = useState(false);
const [isVisible, setIsVisible] = useState(true);
const [lastScrollY, setLastScrollY] = useState(0);
const announcement = {
show: true,
};

useEffect(() => {
const controlNavbar = () => {
Expand Down Expand Up @@ -41,6 +44,20 @@ const Header = () => {
className={`header ${isVisible ? '' : 'header--hidden'}`}
id="header"
>
{announcement.show && (
<div className="header__announcement">
<div className="header__announcement__wrapper">
<p>
🚀Just in: PillarX Algorithmic Insights! Trade smarter with
PillarX.{' '}
<a href="https://go.pillarx.app/LY6ZNTS">
Start your FREE 7-day trial
</a>
</p>
</div>
</div>
)}

<div className="container">
<Link to="/" className="header__logo">
<img
Expand Down
17 changes: 17 additions & 0 deletions src/containers/__snapshots__/Main.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ exports[`<Main /> > renders correctly 1`] = `
className="header "
id="header"
>
<div
className="header__announcement"
>
<div
className="header__announcement__wrapper"
>
<p>
🚀Just in: PillarX Algorithmic Insights! Trade smarter with PillarX.

<a
href="https://go.pillarx.app/LY6ZNTS"
>
Start your FREE 7-day trial
</a>
</p>
</div>
</div>
<div
className="container"
>
Expand Down