Skip to content

Commit

Permalink
Merge pull request #2892 from glific/update-promotion
Browse files Browse the repository at this point in the history
Updated the promotion banner
  • Loading branch information
kurund authored May 20, 2024
2 parents 4636568 + 05a0bd7 commit 9d19630
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
5 changes: 2 additions & 3 deletions src/containers/Auth/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import WhatsAppIcon from 'assets/images/icons/Social/Whatsapp.svg?react';
import { termsOfUse } from 'containers/Organization/Organization';
import { Button } from 'components/UI/Form/Button/Button';
import GlificLogo from 'assets/images/logo/Logo.svg';
// import { Promotion } from './Promotion/Promotion';
import { Promotion } from './Promotion/Promotion';
import styles from './Auth.module.css';
import axios from 'axios';
import { ORGANIZATION_NAME } from 'config';
Expand Down Expand Up @@ -259,8 +259,7 @@ export const Auth = ({
) : null}
</div>

{/* commenting out promotion banner */}
{/* {mode === 'login' && <Promotion />} */}
{mode === 'login' && <Promotion />}
</div>
);
};
3 changes: 3 additions & 0 deletions src/containers/Auth/Promotion/Promotion.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
line-height: 1;
position: relative;
top: 20px;
display: flex;
flex-direction: column;
row-gap: 1rem;
}

.Header {
Expand Down
32 changes: 19 additions & 13 deletions src/containers/Auth/Promotion/Promotion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ import styles from './Promotion.module.css';

export const Promotion = () => {
const [minimized, setMinimized] = useState(false);
const LINK = 'https://us06web.zoom.us/meeting/register/tZYof-yrrD4sHtCHskNq0feuOcCEi5vQ-Sxd';

return (
<div className={minimized ? styles.ContainerMin : styles.ContainerMax}>
<div className={styles.CardHeader}>
<div className={styles.Header}>
<div className={styles.Dot} />
<div className={styles.HeaderText}>ALERT!</div>
<div className={styles.HeaderText}>NEW!</div>
</div>
{minimized ? (
<>
<div className={styles.GiftCard}>Glific payment timelines</div>
<div className={styles.GiftCard}>Level up with Glific</div>
<MaximizeIcon
className={styles.AccordianIcon}
onClick={() => setMinimized(!minimized)}
Expand All @@ -28,33 +29,38 @@ export const Promotion = () => {

{!minimized && (
<>
<div className={styles.Image}>Glific payment timelines & late payment policy</div>
<div className={styles.Image}>
<span>Level up with Glific</span>
<span>
Whatsapp groups automation <br /> 23rd May 3-4PM
</span>
</div>

<div className={styles.Points}>
<div className={styles.BodyListText}>
<span>{1}</span>
<div>
Glific will send invoice on 1st of every month and you will have 15-day payment
window.
Learn how this feature will enable you to{' '}
<b>
send or schedule messages/ media to Whatsapp groups and gain insights into group
activity.
</b>
</div>
</div>
<div className={styles.BodyListText}>
<span>2</span>
<div>
Starting May 1st, 2024, Failure to pay for two consecutive months leads to account
suspension, halting staff access and messaging bot functionality.
</div>
<div>Learn through a demo, and explore possibilities.</div>
</div>
<div className={styles.BodyListText}>
{/* <div className={styles.BodyListText}>
<div>Reach out to Glific team if you have questions/concerns.</div>
</div>
</div> */}
</div>
{/* <a className={styles.Link} href={LINK} target="_blank" rel="noreferrer">
<a className={styles.Link} href={LINK} target="_blank" rel="noreferrer">
<div className={styles.KnowMore}>
<div>REGISTER NOW</div>
<div className={styles.Arrow}></div>
</div>
</a> */}
</a>
</>
)}
</div>
Expand Down

0 comments on commit 9d19630

Please sign in to comment.