|
1 |
| -import React from "react"; |
2 |
| -import Button from "../../reusecore/Button"; |
3 |
| -import styled from "styled-components"; |
4 |
| -import { BsArrowUpRight } from "@react-icons/all-files/bs/BsArrowUpRight"; |
5 |
| -const OpenSourceBanner = () => { |
6 |
| - return ( |
7 |
| - <OpenSourceBannerWrapper> |
8 |
| - <div className="banner-content"> |
9 |
| - <div> |
10 |
| - <h2>Layer5-Sponsored Open Source Program</h2> |
11 |
| - <p> |
12 |
| - We're proud to support the open source community with special discounts and resources. |
13 |
| - </p> |
14 |
| - </div> |
15 |
| - <Button $primary title="Open Source Pricing" $url="/pricing/open-source-program"><BsArrowUpRight size={21} className="icon-left" /></Button> |
16 |
| - </div> |
17 |
| - </OpenSourceBannerWrapper> |
18 |
| - ); |
19 |
| -}; |
20 |
| - |
21 |
| -const OpenSourceBannerWrapper = styled.div` |
22 |
| - width: 100%; |
23 |
| - background: #00b39f; |
24 |
| - margin-top: 6rem; |
25 |
| - padding: 2rem 0; |
26 |
| - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); |
27 |
| - .banner-content { |
28 |
| - max-width: 90%; |
29 |
| - margin: 0 auto; |
30 |
| - display: flex; |
31 |
| - justify-content: space-around; |
32 |
| - align-items: center; |
33 |
| - |
34 |
| - @media (max-width: 768px) { |
35 |
| - flex-direction: column; |
36 |
| - text-align: center; |
37 |
| - gap: 1.5rem; |
38 |
| - } |
39 |
| - } |
40 |
| - div { |
41 |
| - color: white; |
42 |
| - h2 { |
43 |
| - color: white; |
44 |
| - } |
45 |
| - p { |
46 |
| - font-size: 1.1rem; |
47 |
| - opacity: 0.9; |
48 |
| - } |
49 |
| - } |
50 |
| -`; |
51 |
| -export default OpenSourceBanner; |
| 1 | +import React from "react"; |
| 2 | +import Button from "../../reusecore/Button"; |
| 3 | +import styled from "styled-components"; |
| 4 | +import { BsArrowUpRight } from "@react-icons/all-files/bs/BsArrowUpRight"; |
| 5 | +const OpenSourceBanner = () => { |
| 6 | + return ( |
| 7 | + <OpenSourceBannerWrapper> |
| 8 | + <div className="banner-content"> |
| 9 | + <div> |
| 10 | + <h2>Layer5-Sponsored Open Source Program</h2> |
| 11 | + <p> |
| 12 | + We're proud to support the open source community with special discounts and resources. |
| 13 | + </p> |
| 14 | + </div> |
| 15 | + <Button $primary title="Open Source Pricing" $url="/pricing/open-source-program"><BsArrowUpRight size={21} className="icon-left" /></Button> |
| 16 | + </div> |
| 17 | + </OpenSourceBannerWrapper> |
| 18 | + ); |
| 19 | +}; |
| 20 | + |
| 21 | +const OpenSourceBannerWrapper = styled.div` |
| 22 | + width: 100%; |
| 23 | + background: #00b39f; |
| 24 | + margin-top: 6rem; |
| 25 | + padding: 2rem 0; |
| 26 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); |
| 27 | + .banner-content { |
| 28 | + max-width: 90%; |
| 29 | + margin: 0 auto; |
| 30 | + display: flex; |
| 31 | + justify-content: space-around; |
| 32 | + align-items: center; |
| 33 | + |
| 34 | + @media (max-width: 768px) { |
| 35 | + flex-direction: column; |
| 36 | + text-align: center; |
| 37 | + gap: 1.5rem; |
| 38 | + } |
| 39 | + } |
| 40 | + div { |
| 41 | + color: white; |
| 42 | + h2 { |
| 43 | + color: white; |
| 44 | + } |
| 45 | + p { |
| 46 | + font-size: 1.1rem; |
| 47 | + opacity: 0.9; |
| 48 | + } |
| 49 | + } |
| 50 | +`; |
| 51 | +export default OpenSourceBanner; |
0 commit comments