Skip to content

Commit

Permalink
feat: Black Friday 2023 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 authored Nov 23, 2023
1 parent 3c042cc commit ffe05ec
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/components/Bf2023/Bf2023.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React, { Component } from 'react'

import styles from './styles.module.css'

export class Bf2023 extends Component {
render() {
return (
<div className={styles.banner}>
BLACK FRIDAY:{' '}
<strong>
<u>20% off everything</u>
</strong>{' '}
for first 3 months. Code:{' '}
<strong>
BLACKFRIDAY2023 &nbsp;&nbsp;&nbsp;
<a href='https://app.reacher.email?utm_campaign=BLACKFRIDAY2023'>
Sign up now →
</a>
</strong>
.
</div>
)
}
}
16 changes: 16 additions & 0 deletions src/components/Bf2023/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.banner {
background-color: black;
height: 32px;
left: 0;
line-height: 32px;
text-align: center;
position: sticky;
top: 78px;
width: 100%;
z-index: 20;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.banner a {
color: #EA4293
}
1 change: 1 addition & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export {
Loading
}

export * from './Bf2023'
export * from './HeroSection'
export * from './DemoSection'
export * from './FeaturesSection'
Expand Down
2 changes: 2 additions & 0 deletions src/pages/HomePage/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
} from 'components'

import styles from './styles.module.css'
import { Bf2023 } from '../../components'

@withTracker
@inject('config')
Expand All @@ -29,6 +30,7 @@ export class HomePage extends Component {
<ScrollToTopOnMount />

<NavHeader />
<Bf2023 />

<div className={theme(styles, 'main')}>
<div
Expand Down

1 comment on commit ffe05ec

@vercel
Copy link

@vercel vercel bot commented on ffe05ec Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.