-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/update design #11
Conversation
.contactus-form { | ||
width: 100%; | ||
max-width: 386px; | ||
&__title { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would strongly recommend to use full snake case
for example instead of &__title
so contactus-form__title
. This way it's super easy to find the right class in case of debugging/making changes. Besides I think it's very confusing that half of the project is written in certain way and the other in different way - so in my opinion we have to go with one way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
export default function ContactUs() { | ||
const { t } = useTranslation(); | ||
|
||
return ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No send button to this form?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Deploying with Cloudflare Pages
|
<label>{t("Landing.ContactUs.position")}</label> | ||
<input type="text" /> | ||
</div> | ||
<button className="button contactus-form__button"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mwogates Let's just make the button disabled when at least one of the fields is empty.
I would also add validation for the email address with a red error in case it's invalid email. The send button should be disabled in that case too.
@mwogates I've pushed some small updates. Anyhow as we still discuss about the way the newsletter will work so this PR will be on hold. |
No description provided.