AW-92-trial-payment-page-v1
This commit is contained in:
parent
7fcbb3e051
commit
ea4ed6e4d6
@ -1,6 +1,8 @@
|
|||||||
|
import { useSelector } from "react-redux";
|
||||||
import CustomButton from "../CustomButton";
|
import CustomButton from "../CustomButton";
|
||||||
import DiscountExpires from "../DiscountExpires";
|
import DiscountExpires from "../DiscountExpires";
|
||||||
import styles from "./styles.module.css";
|
import styles from "./styles.module.css";
|
||||||
|
import { selectors } from "@/store";
|
||||||
|
|
||||||
interface IHeaderProps {
|
interface IHeaderProps {
|
||||||
buttonText?: string;
|
buttonText?: string;
|
||||||
@ -13,8 +15,14 @@ function Header({
|
|||||||
buttonText = "get my reading",
|
buttonText = "get my reading",
|
||||||
buttonClassName = "",
|
buttonClassName = "",
|
||||||
}: IHeaderProps) {
|
}: IHeaderProps) {
|
||||||
|
const { gender } = useSelector(selectors.selectQuestionnaire);
|
||||||
return (
|
return (
|
||||||
<header className={styles.header}>
|
<header
|
||||||
|
className={styles.header}
|
||||||
|
style={{
|
||||||
|
backgroundColor: gender === "male" ? "#C1E5FF" : "#F7EBFF",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<DiscountExpires />
|
<DiscountExpires />
|
||||||
<CustomButton
|
<CustomButton
|
||||||
className={`${styles.button} ${buttonClassName}`}
|
className={`${styles.button} ${buttonClassName}`}
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
.header {
|
.header {
|
||||||
position: relative;
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 30;
|
||||||
height: 62px;
|
height: 62px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 560px;
|
max-width: 560px;
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
padding-bottom: 62px;
|
padding-bottom: 62px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 460px;
|
max-width: 460px;
|
||||||
|
overflow: inherit;
|
||||||
|
overflow-x: clip;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user