Skip to content

Add Lightning Talks Banner #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
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
6 changes: 4 additions & 2 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import PropTypes from "prop-types"
import React from "react"
import { Container, Navbar, Nav } from "react-bootstrap"
import solaceDevLogo from "../images/solace-developers-logo-white.png"
import EDABanner from "./header/eda-banner"
// import EDABanner from "./header/eda-banner"
import LightningBanner from "./header/lightning-banner"

const Header = ({ siteTitle }) => (
<>
<EDABanner />
{/* <EDABanner /> */}
<LightningBanner />
<Navbar collapseOnSelect expand="lg" bg="dark" variant="dark">
<Container>
<Navbar.Brand
Expand Down
6 changes: 3 additions & 3 deletions src/components/header/lightning-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const LightningBanner = (props) => {
return (
<div class="lightning_banner">
<p>
The third Solace Community Lightning Talks
<a href="https://www.youtube.com/watch?v=mv4NFa_MPPU" target="_blank">
Watch Now!
Join the 3rd Edition Solace Community Lighting Talks on January 15
<a href="https://solace.com/event/community-lightning-talks-jan-2025/" target="_blank">
Learn More
</a>
</p>
</div>
Expand Down
47 changes: 47 additions & 0 deletions src/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,53 @@
text-decoration: none !important;
}

/* Lightning Banner */
.lightning_banner {
background: #ec008c;
background: linear-gradient(
91.72deg,
#00c895 0.29%,
#015b82 81.16%,
#03223b 95.55%
) !important;
display: block;
height: auto;
background: rgb(237, 8, 135);
padding: 4px 15px !important;
top: 0;
width: 100%;
}
.lightning_banner p {
display: block;
color: #000;
margin: 0;
text-align: center;
font-size: 16px;
font-weight: 600 !important;
}

.lightning_banner
p
> a:not(.cta):not(.button):not(.button-dark):not(.button-white):not(.wraps-image):before {
display: none !important;
}

.lightning_banner p a {
background-color: #f37021 !important;
border-radius: 20px;
color: #000 !important;
display: inline-block;
font-size: 15px !important;
font-weight: 600 !important;
padding: 2px 20px !important;
margin-left: 8px;
text-decoration: none !important;
}
.lightning_banner p a:hover {
background-color: #f37021 !important;
color: #000 !important;
text-decoration: none !important;
}

html {
font-size: 16px;
Expand Down
Loading