Skip to content
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

Feature/banner subtile variant #387

Merged
merged 5 commits into from
Mar 25, 2024
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
5 changes: 3 additions & 2 deletions src/components/modules/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ export default class Banner extends React.Component {
<i className={"icon-close"}></i>
</div>
<div className={"container"}>
<div className={"gap-3 justify-content-center align-items-center d-flex flex-column flex-lg-row"}>
<div className={"gap-2 gap-lg-4 justify-content-center align-items-center d-flex flex-column flex-lg-row"}>
<div className={"banner-text col-auto"}>
Get ready for the first Celestia hackathon! Infinite Space Bazaar begins on April 2 <div className={`emoji`}>☄️</div>
Get ready for the first Celestia hackathon! Infinite Space Bazaar begins on April 2
{/* <div className={`emoji`}>☄️</div> */}
</div>

<a className={"col-auto"} href='https://bazaar.celestia.org' target={"_blank"} rel={"noreferrer"}>
Expand Down
32 changes: 13 additions & 19 deletions src/scss/modules/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ header {
}

.banner {
background-color: rgba(255, 255, 255, 0.3);
box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
backdrop-filter: blur(50px);
padding: 25px 0;
background-color: rgba(255, 255, 255, 0.2);
box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 10px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
backdrop-filter: blur(30px);
padding: 12px 0;
color: #000000;
font-family: $ruberoid;
font-size: 18px;
Expand All @@ -438,22 +438,13 @@ header {
line-height: 26px;
z-index: 100;
position: relative;
top: 8px;
left: 10px;
top: 0px;
left: 0px;
width: 100%;
text-align: center;
overflow: hidden;
border-radius: 10px;
width: calc(100% - 20px);
background: linear-gradient(
90deg,
rgba(150, 50, 238, 0.5) 0%,
rgba(241, 177, 123, 0.5) 35.42%,
rgba(135, 204, 233, 0.5) 66.15%,
rgba(172, 124, 209, 0.6) 99.48%
);
width: 100%;
background-size: 300% 300%;
animation: gradient 10s ease infinite;
filter: brightness(1.3);
@include transition(500ms all ease-in-out);

Expand Down Expand Up @@ -496,7 +487,7 @@ header {

.close-banner {
position: absolute;
top: 14px;
top: 18px;
right: 18px !important;
font-size: 12px;
right: 0;
Expand All @@ -509,6 +500,7 @@ header {

.banner-text {
text-wrap: pretty;
font-size: 16px;
@include media-breakpoint-down(sm) {
font-size: 14px;
line-height: 1.35em;
Expand All @@ -523,9 +515,11 @@ header {
}
}
.button-simple {
font-size: 14px;
padding: 10px 20px;
@include media-breakpoint-down(sm) {
font-size: 14px;
padding: 10px 20px;
font-size: 12px;
padding: 8px 16px;
}
}
}
Loading