File tree Expand file tree Collapse file tree 4 files changed +48
-0
lines changed
assets/images/top-promotional-banner Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import { TopBannercontainer } from "./style" ;
3
+ import Rocket from "../../assets/images/top-promotional-banner/rocket.svg" ;
4
+
5
+ const TopPromotionalBanner = ( ) => {
6
+ return (
7
+ < >
8
+ < TopBannercontainer >
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 →</ span > </ p > </ a >
10
+ </ TopBannercontainer >
11
+ </ >
12
+ ) ;
13
+ } ;
14
+ export default TopPromotionalBanner ;
Original file line number Diff line number Diff line change
1
+ import styled from "styled-components" ;
2
+
3
+ export const TopBannercontainer = styled . div `
4
+ background: ${ props => props . theme . saffronColor } ;
5
+ position: sticky;
6
+ .content {
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ padding: 0 1rem;
11
+ font-weight: 500;
12
+ line-height: 1.1875rem;
13
+ color: ${ props => props . theme . body } ;
14
+ padding: 0.75rem 1rem;
15
+
16
+ & > img {
17
+ width: 3rem;
18
+ margin-right: 0.5rem;
19
+ }
20
+
21
+ & > span {
22
+ font-weight: 700;
23
+ margin-left: 0.5rem;
24
+ &:hover {
25
+ text-decoration: underline;
26
+ }
27
+ }
28
+ }
29
+ ` ;
30
+
31
+
Original file line number Diff line number Diff line change @@ -12,13 +12,15 @@ import PropTypes from "prop-types";
12
12
import ScrollToTopBtn from "./Scrolltotop-button" ;
13
13
import Navigation from "../sections/General/Navigation" ;
14
14
import Footer from "../sections/General/Footer" ;
15
+ import TopPromotionalBanner from "./TopPromotionalBanner" ;
15
16
import { GlobalStyle } from "../sections/app.style" ;
16
17
17
18
const Layout = ( { children } ) => {
18
19
19
20
return (
20
21
< >
21
22
< GlobalStyle />
23
+ < TopPromotionalBanner />
22
24
< Navigation />
23
25
{ children }
24
26
< ScrollToTopBtn />
You can’t perform that action at this time.
0 commit comments