Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
feat: NR-1507 and NR-1508 UI updates
Browse files Browse the repository at this point in the history
- This updates the I/O site banner and search bar styles
  • Loading branch information
tabathadelane committed Apr 27, 2022
1 parent c613f62 commit 3e9c187
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 79 deletions.
133 changes: 76 additions & 57 deletions src/components/IOBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,100 +24,106 @@ const BannerHeaderContent = ({ search, setSearch, setIsSearchInputEmpty }) => {
justify-content: center;
text-align: center;
width: 568px;
height: 192px;
h1,
div {
font-family: 'Söhne-Buch';
}
width: 1100px;
@media (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) {
padding: 48px 24px;
justify-content: center;
width: 100vw;
}
`}
>
<h2
css={css`
color: var(--color-brand-300);
@media (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) {
font-weight: 400;
}
`}
>
Instant Observability
</h2>
<h1
css={css`
color: var(--color-neutrals-050);
color: #f9fafa;
font-weight: 600;
font-size: 72px;
letter-spacing: -3%;
margin: 72px 0 0;
@media (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) {
font-size: 20px;
font-size: 52px;
margin-top: 30px;
}
`}
>
Monitor everything in your stack
Monitor everything in your stack.
</h1>
<div
css={css`
background: none;
color: var(--color-brand-100);
color: #f9fafa;
font-size: 16px;
letter-spacing: -0.5%;
margin: 20px 0;
font-weight: 300;
@media (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) {
font-size: 12px;
font-weight: 300;
font-size: 18px;
}
`}
>
Our quickstarts bundle everything you need to start monitoring like a
pro right out of the box.
pro right out of the box
</div>
<div>
<SearchInput
size={SearchInput.SIZE.LARGE}
value={search || ''}
placeholder="What do you want to monitor?"
placeholder="Search"
onClear={() => {
setSearch('');
setIsSearchInputEmpty(true);
}}
onChange={handleSearchInput}
css={css`
--svg-color: var(--color-neutrals-700);
box-shadow: none;
max-width: 630px;
line-height: 1;
margin-top:20px;
max-width: 816px;
padding-left: 0.5rem;
margin: 0 auto 40px;
height: 64px;
input {
font-size: 14px;
padding: 0.5rem;
padding-left: 2.25rem;
padding-right: 3rem;
background: var(--color-white);
border: 1px solid var(--color-neutrals-600);
height: 64px;
font-size: 18px;
padding: 20px 24px;
background: #1d252c;
border: 1px solid #f9fafa;
border-radius: 4px;
&::placeholder {
color: var(--color-neutrals-600);
padding-left: 0.5rem;
}
svg {
width: 15x;
height: 15px;
}
.dark-mode & {
background-color: var(--tertiary-background-color);
--svg-color: var(--primary-text-color);
input {
background: var(--color-dark-400);
&::placeholder {
color: var(primary-text-color);
&:focus {
outline: none;
border: 1px solid #f9fafa;
box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}
.dark-mode & {
background-color: var(--tertiary-background-color);
--svg-color: var(--primary-text-color);
input {
background: var(--color-dark-400);
&::placeholder {
color: var(primary-text-color);
}
}
}
}
svg {
left: unset !important;
right: var(--horizontal-spacing) !important;
stroke: #f9fafa;
height: 24px;
margin-right: 7px;
}
@media screen and (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) {
font-size: 17px;
max-width: 100%;
}
`}
/>
Expand All @@ -129,44 +135,55 @@ const IOBanner = ({ search, setSearch, setIsSearchInputEmpty }) => {
return (
<div
css={css`
--banner-height: 308px;
--banner-height: 368px;
--left-margin: calc(50% - 50vw);
position: absolute;
width: 100vw;
left: var(--left-margin);
height: var(--banner-height);
margin: 0 0 0 var(--left-margin);
padding: 0 40px;
background: var(--color-brand-500);
border: 1px solid var(--color-brand-600);
background: #1d252c;
box-sizing: border-box;
@media (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) {
--banner-height: unset;
}
`}
>
<div
css={css`
margin: 60px 0 56px 0;
width: 100%;
margin: 0 auto 88px;
max-width: 1440px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
@media screen and (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) {
margin: 45px 0;
width: 100%;
height: unset;
margin: 0 auto 0px;
}
`}
>
<div
css={css`
margin-right: auto;
@media (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) {
@media (max-width: 1440px) {
display: none;
}
`}
>
<img
css={css`
width: 100%;
position: absolute;
width: 157.03px;
height: 148px;
left: 10px;
top: 50px;
`}
src={bannerOverlayLeft}
alt="banner-left"
Expand All @@ -182,14 +199,16 @@ const IOBanner = ({ search, setSearch, setIsSearchInputEmpty }) => {
css={css`
margin-left: auto;
@media (max-width: ${QUICKSTARTS_COLLAPSE_BREAKPOINT}) {
@media (max-width: 1440px) {
display: none;
}
`}
>
<img
css={css`
width: 100%;
position: absolute;
right: 10px;
top: 36px;
`}
src={bannerOverlayRight}
alt="banner-right"
Expand Down
Loading

0 comments on commit 3e9c187

Please sign in to comment.