Skip to content

Commit d614d2c

Browse files
made whole clickable
Signed-off-by: Ritik Saxena <[email protected]>
1 parent 2beece5 commit d614d2c

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/components/TopPromotionalBanner/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const TopPromotionalBanner = () => {
66
return (
77
<>
88
<TopBannercontainer>
9-
<p><img src={Rocket} alt="Five on rocket"/>Soar to New Heights with Meshery v0.7.0 <a href="https://play.meshery.io/" rel="noreferrer" target="_blank">Try it now &rarr;</a></p>
9+
<a href="https://play.meshery.io/" rel="noreferrer" target="_blank"><p className="content"><img src={Rocket} alt="Five on rocket" />Soar to New Heights with Meshery v0.7.0 <span>Try it now &rarr;</span></p></a>
1010
</TopBannercontainer>
1111
</>
1212
);

src/components/TopPromotionalBanner/style.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,28 @@ import styled from "styled-components";
22

33
export const TopBannercontainer = styled.div`
44
background: ${props => props.theme.saffronColor};
5-
color: ${props => props.theme.body};
65
position: sticky;
7-
& > p {
6+
.content {
87
display: flex;
98
align-items: center;
109
justify-content: center;
11-
padding: 0.75rem 1rem;
10+
padding: 0 1rem;
1211
font-weight: 500;
1312
line-height: 1.1875rem;
13+
color: ${props => props.theme.body};
14+
padding: 0.75rem 1rem;
1415
1516
& > img {
1617
width: 3rem;
1718
margin-right: 0.5rem;
1819
}
1920
20-
& > a {
21+
& > span {
2122
font-weight: 700;
2223
margin-left: 0.5rem;
23-
color: ${props => props.theme.body};
24+
&:hover {
25+
text-decoration: underline;
26+
}
2427
}
2528
}
2629
`;

0 commit comments

Comments
 (0)