Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Add new loyalty event banner (#1033)
Browse files Browse the repository at this point in the history
* Add new loyalty event banner

* Add aria-hidden and update snapshot
  • Loading branch information
TimboTambo authored May 25, 2022
1 parent 7f6e03b commit b02169a
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 30 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions site/components/future-of-loyalty-slice/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// @flow
import * as React from 'react';

import styles from './style.css';
import titleImg from './images/title.png';
import loyaltyImage from './images/loyalty-image.png';

const Slice = () => {
return (
<div className={`${styles.SliceWrapper}`}>
<div>
<div className={styles.Slice}>
<div className={styles.SliceText}>
<img
className={styles.SliceTitleImage}
src={titleImg}
alt="text reading: Badger Sessions"
/>

<div className={styles.SliceTextContent}>
<div className={styles.SliceBodyheader}>
<h3>Is the future of digital loyalty point-less?</h3>
</div>
<div className={styles.SliceBodySubHeader}>
<h4>
Join us on Wednesday 6th July at 4pm for a virtual panel discussion to find out
how and why loyalty is evolving
</h4>
</div>
<div>
<a href="https://bit.ly/3GbWdcw" className={styles.SliceLink}>
Register now
</a>
</div>
</div>
</div>
<div className={styles.SliceImageWrapper}>
<img className={styles.SliceImage} src={loyaltyImage} aria-hidden="true" alt="" />
</div>
</div>
</div>
</div>
);
};

export default Slice;
101 changes: 101 additions & 0 deletions site/components/future-of-loyalty-slice/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
@value badgerBlack, badgerWhite, scorpian, badgerRed, midBlue, brightBlue from '../../css/_colors.css';
@value mediumScreen, largeScreen from "../../css/_sizes.css";

.SliceWrapper {
composes: dividerMidBlue from '../../css/_divider.css';
width: 100%;
background-color: #fc1d43;
color: badgerWhite;
}

.Slice {
composes: sansSerif from '../../css/typography/_fonts.css';
position: relative;
max-width: 1440px;
width: 100%;
margin: 0 auto;
padding: 24px 24px 60px;
line-height: 1.5em;
}

.SliceTitleImage {
display: block;
width: 100%;
max-width: 250px;
}

.SliceTextContent {
padding-left: 8px;
}

.SliceBodyheader {
composes: boldSansSerif from '../../css/typography/_fonts.css';
display: flex;
margin-bottom: 10px;
}

.SliceBodyheader h3 {
font-family: 'Sentinel A', 'Sentinel B', serif;
font-size: 42px;
line-height: 46px;
margin-right: 14px;
}

.SliceBodySubHeader {
margin-bottom: 24px;
}

.SliceLink {
composes: boldSansSerif from '../../css/typography/_fonts.css';
cursor: pointer;
font-size: 18px;
background: badgerBlack;
color: badgerWhite;
display: inline-block;
text-align: center;
padding: 12px 18px;
}

.SliceLink:hover {
background: scorpian;
}

.SliceImageWrapper {
display: none;
max-width: 350px;
}

.SliceImage {
max-width: 350px;
max-height: 318px;
width: auto;
height: auto;
}

@media mediumScreen {
.Slice {
display: flex;
flex-direction: row;
padding: 40px 60px;
}

.SliceText {
width: 100%;
min-width: 420px;
}
}

@media largeScreen {
.SliceTitleImage {
margin-top: 14px;
margin-bottom: 12px;
display: block;
width: 320px;
}

.SliceImageWrapper {
display: flex;
flex-grow: 1;
justify-content: center;
}
}
46 changes: 19 additions & 27 deletions site/pages/home/__snapshots__/test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -118,63 +118,55 @@ Array [
/>
</div>,
<div
class="WasmWhitepaperSliceWrapper"
class="SliceWrapper"
>
<div
class="WasmWhitepaperSliceContent"
>
<div>
<div
class="WasmWhitepaperSlice"
class="Slice"
>
<div
class="WasmWhitepaperSliceText"
class="SliceText"
>
<img
alt="text reading: We Love Tech"
class="WasmWhitepaperSliceTitleImage"
alt="text reading: Badger Sessions"
class="SliceTitleImage"
src="title.png"
/>
<div
class="WasmWhitepaperSliceTextContent"
class="SliceTextContent"
>
<div
class="WasmWhitepaperSliceBodyheader"
class="SliceBodyheader"
>
<h3>
Multi-cloud platforms are here: How WebAssembly, NATS and wasmCloud can move us beyond the cloud
Is the future of digital loyalty point-less?
</h3>
</div>
<div
class="WasmWhitepaperSliceBodySubHeader"
class="SliceBodySubHeader"
>
<h4>
With contributions from Liam Randall, Cosmonic’s CEO and Derek Collison, CEO of Synadia and creator of
<a
class="WasmWhitepaperSliceBodyLink"
href="http://nats.io/"
>
NATS.io
</a>
, our latest white paper written by our Chief Scientist, Stuart Harris, maps out the journey to a truly resilient multi-cloud platform.
Join us on Wednesday 6th July at 4pm for a virtual panel discussion to find out how and why loyalty is evolving
</h4>
</div>
<div>
<a
class="WasmWhitepaperSliceLink"
href="https://bit.ly/393vkLn"
class="SliceLink"
href="https://bit.ly/3GbWdcw"
>
Download White Paper
Register now
</a>
</div>
</div>
</div>
<div
class="WasmWhitepaperSliceImageWrapper"
class="SliceImageWrapper"
>
<img
alt="An illustration of the WASM whitepaper"
class="WasmWhitepaperSliceImage"
src="whitepaper.png"
alt=""
aria-hidden="true"
class="SliceImage"
src="loyalty-image.png"
/>
</div>
</div>
Expand Down
5 changes: 2 additions & 3 deletions site/pages/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import HubspotSignup from './hubspot-signup';
import TechSlice from '../../slices/tech-slice';
import GoldCoinSlice from '../../slices/gc-slice';
import MBPSlice from './mbp-slice';
import WasmWhitepaperSlice from '../../components/wasm-whitepaper-slice';

import FutureOfLoyaltySlice from '../../components/future-of-loyalty-slice';
import metaImage from './meta-image.jpg';
import TestimonialsSlice from './client-testimonials-slice';
import ScrollTracker from '../../components/scroll-tracker';
Expand All @@ -32,7 +31,7 @@ export default function HomePage() {
<Social {...social} />
<TopSlice />
<GoldCoinSlice />
<WasmWhitepaperSlice />
<FutureOfLoyaltySlice />
<CaseStudyOverview />
<MBPSlice />
<TestimonialsSlice />
Expand Down

0 comments on commit b02169a

Please sign in to comment.