-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
219 lines (196 loc) · 5.25 KB
/
style.css
File metadata and controls
219 lines (196 loc) · 5.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
/* Ensure Inter font is applied globally */
body {
font-family: 'Inter', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f9f9f9;
}
.container {
max-width: 1200px; /* Limit content to a max width */
margin: 0 auto; /* Center the container */
padding: 0 24px; /* Add side padding for smaller screens */
box-sizing: border-box;
}
@media (max-width: 768px) {
.container {
padding: 0 16px; /* Adjust padding for smaller screens */
}
}
.cta-section {
flex-direction: column;
align-items: center;
padding: 24px;
gap: 16px;
width: 676px;
background: linear-gradient(85.78deg, #FFDCE9 0%, #FFACCD 98.64%);
border-radius: 32px;
margin: 0 auto;
text-align: center;
max-width: 600px;
}
@media (max-width: 768px) {
.cta-section {
border-radius: 24px;
display: block;
width: 100%;
padding: 18px 12px;
}
}
.cta-text {
font-size: 24px;
line-height: 29px;
text-align: center;
color: rgba(64, 45, 51, 0.5);
margin: 0 0 24px 0;
}
@media (max-width: 768px) {
.cta-text {
font-size: 20px;
line-height: 25px;
}
}
.input-area {
display: flex;
justify-content: center; /* Center the items horizontally */
align-items: center; /* Align the items vertically */
gap: 16px; /* Space between input and button */
width: 100%;
}
@media (max-width: 768px) {
.input-area {
flex-direction: column;
gap: 12px; /* Reduce gap on smaller screens */
}
}
input[type="email"] {
position: relative;
flex: 1; /* Allow the input to grow and fill the remaining space */
width: 100%;
height: 65px; /* Set the input height to match the button */
padding: 12px 16px;
font-size: 24px;
font-family: 'Inter', sans-serif;
color: #7E7A76; /* Text color */
background-color: white; /* Background color */
border-radius: 16px; /* Rounded corners like the button */
border: none; /* Remove default border */
outline: none; /* Remove focus outline */
z-index: 1; /* Keep content above the gradient border */
box-sizing: border-box;
}
input[type="email"]::placeholder {
color: #7E7A76; /* Placeholder color */
}
input[type="email"]::before {
content: "";
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
border-radius: 50px; /* Match the rounded corners */
background: linear-gradient(to right, rgba(255, 127, 173, 0.5), rgba(255, 30, 111, 0.5)); /* Gradient border */
z-index: -1; /* Place behind the input field content */
background-origin: border-box;
background-clip: padding-box, border-box;
box-sizing: border-box;
}
input[type="email"]:focus {
outline: none; /* Remove focus outline */
box-shadow: 0 0 8px rgba(255, 127, 173, 0.5); /* Optional focus shadow effect */
}
.notify-btn {
width: 180px;
position: relative;
border-radius: 50px; /* Rounded corners */
height: 65px;
display: flex;
align-items: center;
justify-content: center;
font-family: 'Inter', sans-serif;
font-style: normal;
font-weight: 500;
font-size: 24px;
color: white; /* White text */
cursor: pointer;
text-decoration: none;
/* Background gradient with glossy effect at the very top */
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 20%, #FF006D 100%);
border: none; /* No default border */
z-index: 1; /* Ensure text stays above the gradient border */
flex-shrink: 0; /* Prevent the button from shrinking */
padding: 12px 24px; /* Adjust the padding for the button */
}
.notify-btn::before {
content: "";
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
border-radius: 50px; /* Match the rounded corners */
background: linear-gradient(to right, rgba(255, 127, 173, 0.5), rgba(255, 30, 111, 0.5)); /* Border gradient: left to right */
z-index: -1; /* Place behind the button content */
background-origin: border-box;
background-clip: padding-box, border-box;
box-sizing: border-box;
}
/* Loading spinner */
.spinner {
width: 28px;
height: 28px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top: 3px solid white;
border-radius: 50%;
animation: spin 1s linear infinite;
}
/* Checkmark (without circle) */
.checkmark {
display: inline-block;
width: 28px; /* Width of the checkmark container */
height: 28px; /* Height of the checkmark container */
position: relative;
}
.checkmark::after {
content: '';
position: absolute;
top: 0px; /* Adjust top to keep the checkmark centered vertically */
left: 8px; /* Move the checkmark 2px to the right */
width: 7px; /* Checkmark width */
height: 18px; /* Longer checkmark height for longer tail */
border: solid white;
border-width: 0 3px 3px 0; /* Thicker checkmark */
transform: rotate(45deg); /* Rotate to create the checkmark */
}
/* Loading and checkmark styles: ensure button remains same size */
.notify-btn.loading,
.notify-btn .checkmark {
justify-content: center;
text-align: center;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@media (max-width: 768px) {
.input-area {
flex-direction: column;
gap: 12px;
}
input[type="email"] {
width: 100%;
}
.notify-btn {
font-size: 18px;
display: block;
margin: 18px auto 0 auto;
width: 100%;
}
}