Skip to content

Commit 94f99a4

Browse files
committed
style: add sponsorship button
1 parent 623b7ff commit 94f99a4

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/views/sponsorship/Sponsorship.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import {format} from "date-fns";
2222
import Flicking from "@egjs/react-flicking";
2323
import {AutoPlay} from "@egjs/flicking-plugins";
2424
import "@egjs/react-flicking/dist/flicking.css";
25+
import Button from "../../components/UI/Button";
26+
import {gaEventTracker} from "../../components/analytics/Analytics";
2527

2628
const StyledWaveContainer = styled.div`
2729
background: ${Color.DARK_BLUE};
@@ -98,12 +100,20 @@ const Sponsorship: FC<React.PropsWithChildren<unknown>> = () => {
98100
new AutoPlay({duration: 2000, direction: "NEXT", stopOnHover: false}),
99101
];
100102

103+
const handleCLick = () => {
104+
gaEventTracker("download brochure", "download brochure");
105+
};
106+
101107
useEffect(() => {
102108
document.title = `Sponsorship — ${data.title}${data.edition}`;
103109
});
104110

105111
return (
106-
<>
112+
<div style={{
113+
maxWidth: "80rem",
114+
marginLeft: "auto",
115+
marginRight: "auto"
116+
}}>
107117
<SectionWrapper color={Color.WHITE} marginTop={5}>
108118
<StyledSpeakersSection>
109119
<TitleSection
@@ -181,7 +191,6 @@ const Sponsorship: FC<React.PropsWithChildren<unknown>> = () => {
181191
/>
182192
</Flicking>
183193
</SectionWrapper>
184-
185194
<StyledWaveContainer>
186195
<svg
187196
viewBox="0 0 500 150"
@@ -194,7 +203,6 @@ const Sponsorship: FC<React.PropsWithChildren<unknown>> = () => {
194203
></path>
195204
</svg>
196205
</StyledWaveContainer>
197-
198206
<SectionWrapper color={Color.WHITE} marginTop={0}>
199207
{width > MOBILE_BREAKPOINT && (
200208
<>
@@ -245,6 +253,9 @@ const Sponsorship: FC<React.PropsWithChildren<unknown>> = () => {
245253
at and discover the myriad of ways you can shine at
246254
DevBcn {data?.edition}.
247255
</p>
256+
<Button text="Get the Brochure"
257+
link="https://bit.ly/devbcn25-brochure-v3"
258+
onClick={handleCLick}/>
248259
<h4>Why Partner with DevBcn?</h4>
249260
<p>
250261
<ul>
@@ -328,7 +339,7 @@ const Sponsorship: FC<React.PropsWithChildren<unknown>> = () => {
328339
</StyledSpeakersSection>
329340
<StyledMarginBottom/>
330341
</SectionWrapper>
331-
</>
342+
</div>
332343
);
333344
};
334345

0 commit comments

Comments
 (0)