File tree Expand file tree Collapse file tree 3 files changed +47
-4
lines changed
Expand file tree Collapse file tree 3 files changed +47
-4
lines changed Original file line number Diff line number Diff line change 7373 "svgo" : " ^3.3.2" ,
7474 "typescript" : " ^5.8.3" ,
7575 "xmldom" : " ^0.6.0"
76- }
76+ },
77+ "packageManager" : " yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
7778}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { TextField } from "components/TextField";
33import { EMAIL_REGEX } from "lib/utils" ;
44import { ChevronRight } from "lucide-react" ;
55import { useForm } from "react-hook-form" ;
6+ import styles from "styles/components/NewsletterCTA.module.scss" ;
67
78type Inputs = {
89 email : string ;
@@ -20,7 +21,7 @@ export const NewsletterForm = () => {
2021 < form
2122 method = "post"
2223 action = "https://listmonk.skylab.apsis.io/subscription/form"
23- className = "stack stack-h"
24+ className = { styles . newsletter_form }
2425 >
2526 < input type = "hidden" name = "nonce" />
2627 < input
@@ -32,13 +33,14 @@ export const NewsletterForm = () => {
3233
3334 < TextField
3435 id = "email"
35- placeholder = "sholmes@baker. example.com"
36+ placeholder = "sherlock@ example.com"
3637 error = { errors . email }
3738 required
3839 type = "email"
3940 autoComplete = "email"
4041 data-lpignore = "true"
4142 data-1p-ignore
43+ className = { styles . newsletter_form__input }
4244 { ...register ( "email" , {
4345 required : "Please provide an email address" ,
4446 pattern : {
@@ -48,7 +50,11 @@ export const NewsletterForm = () => {
4850 } ) }
4951 />
5052
51- < Button type = "submit" EndIcon = { ChevronRight } >
53+ < Button
54+ type = "submit"
55+ EndIcon = { ChevronRight }
56+ className = { styles . newsletter_form__button }
57+ >
5258 Subscribe
5359 </ Button >
5460 </ form >
Original file line number Diff line number Diff line change 3434 opacity : 75% ;
3535 }
3636}
37+
38+ .newsletter_form {
39+ display : flex ;
40+ border : 1px solid var (--border );
41+ overflow : hidden ;
42+ transition : border-color var (--easing ) var (--timing_sm );
43+
44+ & :focus-within {
45+ border-color : var (--apsis_blue );
46+ box-shadow : 0 0 0 var (--space-3xs ) var (--apsis_blue_outline );
47+ }
48+
49+ & __input {
50+ flex : 1 ;
51+
52+ :global (.input ) {
53+ border : none ;
54+ box-shadow : none ;
55+
56+ & :focus {
57+ outline : none ;
58+ box-shadow : none ;
59+ }
60+ }
61+ }
62+
63+ & __button {
64+ border-left : 1px solid var (--border );
65+
66+ & :hover ,
67+ & :focus {
68+ box-shadow : none ;
69+ outline : none ;
70+ }
71+ }
72+ }
You can’t perform that action at this time.
0 commit comments