-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add a release banner on top of the homepage #553
Merged
travjenkins
merged 5 commits into
master
from
Brenosalv/feature/525-new-feature-banner-on-main-page
Oct 31, 2024
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b33095c
Add release banner to the layout - only homepage for now
5b371c0
Clicking the banner opens new tab to deployment options page
e25e1c9
Turn the banner into a stand alone component
7524c97
Add ending slash to href
f0294fa
Add hover transition effect to the banner
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import clsx from 'clsx'; | ||
import ArrowRight from '../../../svgs/arrow-right.svg'; | ||
import { | ||
container, | ||
darkBackgroundColor, | ||
lightBackgroundColor, | ||
} from './styles.module.less'; | ||
|
||
interface ReleaseBanner { | ||
theme: 'dark' | 'light'; | ||
} | ||
|
||
const ReleaseBanner = ({ theme = 'dark' }) => { | ||
return ( | ||
<div | ||
className={clsx( | ||
container, | ||
theme === 'dark' ? darkBackgroundColor : lightBackgroundColor | ||
)} | ||
> | ||
<div> | ||
<a href="/deployment-options" target="_blank" rel="noreferrer"> | ||
<span>A Step Ahead</span> | ||
<p> | ||
Explore Estuary's powerful compliance solutions | ||
- Streamline your security and scale with | ||
confidence! | ||
</p> | ||
Brenosalv marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<ArrowRight color="#fff" /> | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ReleaseBanner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
@import '../../../globalStyles/sections.module.less'; | ||
|
||
.container { | ||
.sectionTopBottomPadding; | ||
padding-top: 50px; | ||
padding-bottom: 0; | ||
|
||
div { | ||
.globalMaxWidth; | ||
|
||
a { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
gap: 32px; | ||
background-color: #FFA80040; | ||
border: 1px solid #FFA800CC; | ||
border-radius: 12px; | ||
padding: 28px 37px; | ||
width: 100%; | ||
cursor: pointer; | ||
|
||
span { | ||
background-color: #FFA800; | ||
color: #04192B; | ||
border-radius: 36px; | ||
padding: 4px 16px; | ||
line-height: 30px; | ||
font-weight: 700; | ||
font-size: 1rem; | ||
text-align: center; | ||
width: fit-content; | ||
} | ||
|
||
p { | ||
color: #F9FAFC; | ||
font-size: 1.125rem; | ||
font-weight: 600; | ||
margin: 0; | ||
flex: 1; | ||
text-align: left; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
display: grid; | ||
grid-template-columns: 5fr 1fr; | ||
grid-template-rows: auto auto; | ||
gap: 24px; | ||
padding: 24px; | ||
|
||
div { | ||
grid-column: 1; | ||
grid-row: 1; | ||
} | ||
|
||
p { | ||
grid-column: 1; | ||
grid-row: 2; | ||
grid-column: span 2; | ||
} | ||
|
||
svg { | ||
grid-column: 2; | ||
grid-row: 1; | ||
margin-left: auto; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
.darkBackgroundColor { | ||
background-color: var(--background-color-primary); | ||
} | ||
|
||
.lightBackgroundColor { | ||
background-color: #F9FAFC; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doubt it matters... but should be end this
href
with/
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wondered the same thing but when we click on the banner, the slash is added automatically. Also, none of the other href have this slash on the end. Anyway, I can ask Sourabh.