Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/components/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ const ErrorMessage = ({
</div>
);

const WIDTH = 180;
const WIDTH = "50%";
const MAX_WIDTH = 180;
const HEIGHT = 70;

function SubscribeSection() {
Expand Down Expand Up @@ -205,12 +206,12 @@ export const Form = ({ fireInput }: { fireInput?: () => void }) => {
placeholder="Your email address..."
disabled={formState === STATES.LOADING || formState === STATES.SUCCESS}
onChange={onChange}
style={{ maxWidth: WIDTH, minHeight: HEIGHT }}
style={{ width: WIDTH, maxWidth: MAX_WIDTH, minHeight: HEIGHT, textOverflow: "ellipsis" }}
/>
<button
aria-label="Subscribe"
className={clsx(
"trans flex-shrink-0 rounded-r-full bg-center bg-no-repeat px-11 py-6 text-16 font-bold uppercase leading-none transition-colors duration-200 xl:py-4 md:px-5 md:py-3 sm:px-5 sm:py-3",
"trans flex-shrink-0 rounded-r-full bg-center bg-no-repeat text-16 font-bold uppercase leading-none transition-colors duration-200",
{
"bg-[length:40px_40px] xl:bg-[length:28px_28px]":
formState === STATES.LOADING,
Expand All @@ -221,7 +222,7 @@ export const Form = ({ fireInput }: { fireInput?: () => void }) => {
},
)}
type="submit"
style={{ width: WIDTH, minHeight: HEIGHT }}
style={{ width: WIDTH, maxWidth: MAX_WIDTH, minHeight: HEIGHT }}
>
<span
className={clsx({
Expand Down