Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 497bab8

Browse files
adjustments banner small improvements. (#1000)
1 parent a575dff commit 497bab8

File tree

1 file changed

+36
-59
lines changed

1 file changed

+36
-59
lines changed

src/components/AnnouncementBanner.tsx

Lines changed: 36 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ const AnnoucementBannerWrapper = styled.div`
1717
border: none;
1818
border-radius: 50%;
1919
20-
@media(max-width: 472px) {
21-
right: 1rem;
22-
}
23-
24-
@media(max-width: 320px) {
25-
right: .5rem;
20+
@media(max-width: 505px) {
21+
display: none;
2622
}
2723
}
2824
@@ -48,58 +44,54 @@ const StyledAnnouncementBanner = styled(Link)`
4844
font-size: 85%;
4945
}
5046
51-
.row {
52-
@media(max-width: 472px) {
53-
padding: 0 2.8rem 0 .5rem;
54-
}
55-
}
56-
5747
.text {
5848
padding: 1rem 0;
5949
font-weight: 600;
6050
text-align: center;
61-
font-size: 90%;
62-
63-
@media(max-width: 472px) {
64-
text-align: left;
65-
}
66-
67-
@media(max-width: 410px) {
68-
text-align: center;
69-
}
51+
font-size: 90%;
7052
7153
@media(max-width: 320px) {
7254
padding: .8rem;
7355
}
7456
}
7557
76-
.openings {
77-
background: ${colors.white};
78-
color: ${colors.grey};
79-
padding: .5rem 1.4rem;
80-
border-radius: 10rem;
81-
margin-left: 2rem;
58+
@media(max-width: 505px) {
59+
.help {
60+
display: none;
61+
}
8262
83-
@media(max-width: 505px) {
84-
margin-left: 1rem;
63+
.openings {
64+
margin-left: .3rem;
8565
}
66+
}
8667
87-
@media(max-width: 405px) {
88-
padding: .2rem .9rem;
68+
@media(min-width: 506px) {
69+
.openings {
70+
display: inline flex;
71+
align-items: center;
72+
background: ${colors.white};
73+
color: ${colors.grey};
74+
padding: .5rem 1.4rem;
75+
border-radius: 10rem;
76+
margin-left: 2rem;
8977
}
9078
}
9179
92-
i {
93-
margin-left: .3rem;
80+
.arrow {
81+
margin-left: .8rem;
9482
95-
@media(max-width: 472px) {
96-
display: none;
97-
}
83+
@media(max-width: 505px) {
84+
height: .8rem;
85+
margin-left: .2rem;
86+
}
9887
}
9988
100-
.arrow {
101-
height: 8px;
102-
width: 15px;
89+
.arrow-path {
90+
stroke: #3D515E;
91+
92+
@media(max-width: 505px) {
93+
stroke: #fff;
94+
}
10395
}
10496
`;
10597

@@ -154,28 +146,13 @@ const AnnoucementBanner = () => {
154146
<StyledAnnouncementBanner to="/careers/#jobs">
155147
<div className="row">
156148
<div className="text">
157-
Wanna help make Gitpod better? Join our team!
149+
<span className="help">Wanna help make Gitpod better?&nbsp;</span>Join our team!&nbsp;
158150
<span className="openings">
159151
<strong>{jobs.length}</strong>
160-
&nbsp;Openings <i>
161-
<svg
162-
xmlns="http://www.w3.org/2000/svg"
163-
width="283"
164-
height="118"
165-
fill="none"
166-
viewBox="0 0 283 118"
167-
className="arrow"
168-
>
169-
<path
170-
stroke="#000"
171-
strokeLinecap="square"
172-
strokeMiterlimit="10"
173-
strokeWidth="18"
174-
d="M224 9l50 50-50 50"
175-
></path>
176-
<path stroke="#000" strokeWidth="18" d="M274.023 58L0.023 59.07"></path>
177-
</svg>
178-
</i>
152+
&nbsp;Openings
153+
<svg className="arrow" width="20" height="11" viewBox="0 0 20 11" fill="none" xmlns="http://www.w3.org/2000/svg">
154+
<path className="arrow-path" d="M15 1.5L19 5.5M19 5.5L15 9.5M19 5.5H1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
155+
</svg>
179156
</span>
180157
</div>
181158
</div>

0 commit comments

Comments
 (0)