This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds the NATS slice to the homepage * corrects missing CSS
- Loading branch information
Showing
7 changed files
with
161 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// @flow | ||
import * as React from 'react'; | ||
|
||
import styles from './style.css'; | ||
import backgroundImg from './images/background.png'; | ||
|
||
const NatsSlice = () => { | ||
return ( | ||
<div className={`${styles.NatsSliceWrapper}`} id="genz"> | ||
<div className={styles.NatsSliceContent}> | ||
<div className={styles.NatsSlice}> | ||
<img | ||
className={styles.NatsSliceTitleImage} | ||
src={backgroundImg} | ||
alt="text reading: We Love Tech" | ||
/> | ||
|
||
<div className={styles.NatsSliceText}> | ||
<p> | ||
Join Red Badger, Synadia, FLEETCOR and Form3 to explore why NATS is the next | ||
generation of cloud connectivity for financial blue chips. More than a message broker, | ||
NATS is THE connective substrate for a global organisation–or even the whole planet. | ||
</p> | ||
<a | ||
href="https://content.red-badger.com/events/we-love-tech/we-love-nats" | ||
className={styles.NatsSliceLink} | ||
> | ||
Register → | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NatsSlice; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
@value badgerBlack, badgerWhite, scorpian, badgerRed, midBlue from '../../css/_colors.css'; | ||
@value mediumScreen, largeScreen from "../../css/_sizes.css"; | ||
|
||
.NatsSliceWrapper { | ||
composes: dividerMidBlue from '../../css/_divider.css'; | ||
width: 100%; | ||
background: midBlue; | ||
color: badgerBlack; | ||
} | ||
|
||
.NatsSlice { | ||
composes: sansSerif from '../../css/typography/_fonts.css'; | ||
position: relative; | ||
max-width: 1440px; | ||
width: 100%; | ||
margin: 0 auto; | ||
padding: 60px 24px; | ||
line-height: 1.5em; | ||
} | ||
|
||
/* Hacky workaround because the slice wasn't provided as indivisual assets instead it is a single image that also needed text + a button laid on top */ | ||
.NatsSliceText { | ||
width: 50%; | ||
margin-top: -20px; | ||
} | ||
|
||
.NatsSliceTextContent { | ||
padding-top: 16px; | ||
} | ||
|
||
.NatsSlice p { | ||
font-size: 16px; | ||
line-height: 1.25em; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.NatsSlice h4 { | ||
margin-bottom: 16px; | ||
} | ||
|
||
.NatsSliceTitleImage { | ||
display: block; | ||
width: 100%; | ||
max-width: 1440px; | ||
} | ||
|
||
.NatsSliceLink { | ||
composes: boldSansSerif from '../../css/typography/_fonts.css'; | ||
cursor: pointer; | ||
font-size: 18px; | ||
background: badgerBlack; | ||
color: badgerWhite; | ||
display: block; | ||
height: 60px; | ||
width: 240px; | ||
line-height: 60px; | ||
text-align: center; | ||
} | ||
|
||
.NatsSliceLink:hover { | ||
background: scorpian; | ||
} | ||
|
||
@media mediumScreen { | ||
.NatsSliceText { | ||
width: 50%; | ||
margin-top: -40px; | ||
} | ||
|
||
.NatsSlice p { | ||
font-size: 18px; | ||
} | ||
} | ||
|
||
@media largeScreen { | ||
.NatsSliceText { | ||
width: 50%; | ||
margin-top: -60px; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters