mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-06 02:36:39 +00:00
📋 Forms (#16)
* chore: add url type on input and enable autocomplete * style: fix textarea and date picker font bug
This commit is contained in:
parent
0ca1b71fdc
commit
719455da07
6 changed files with 12 additions and 12 deletions
|
|
@ -24,7 +24,7 @@ const AddEducationForm: FC<IProps> = ({
|
|||
handleCheckboxesChange,
|
||||
isDisabled,
|
||||
}) => (
|
||||
<form className="form" onSubmit={handleSubmit}>
|
||||
<form className="form" onSubmit={handleSubmit} autoComplete="on">
|
||||
<div className="form-group">
|
||||
<input
|
||||
type="text"
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const AddExperienceForm: FC<IProps> = ({
|
|||
handleCheckboxesChange,
|
||||
isDisabled,
|
||||
}) => (
|
||||
<form className="form" onSubmit={handleSubmit}>
|
||||
<form className="form" onSubmit={handleSubmit} autoComplete="on">
|
||||
<div className="form-group">
|
||||
<input
|
||||
type="text"
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ const EditProfileForm: FC<IProps> = ({
|
|||
isDisabled,
|
||||
toggleSocialLinks,
|
||||
}) => (
|
||||
<form className="form" onSubmit={handleSubmit}>
|
||||
<form className="form" onSubmit={handleSubmit} autoComplete="on">
|
||||
<div className="form-group">
|
||||
<select
|
||||
name="status"
|
||||
|
|
@ -60,7 +60,6 @@ const EditProfileForm: FC<IProps> = ({
|
|||
placeholder="Company"
|
||||
name="company"
|
||||
value={formData.company}
|
||||
// value={variable}
|
||||
onChange={handleChange}
|
||||
/>
|
||||
<small className="form-text">
|
||||
|
|
@ -69,7 +68,7 @@ const EditProfileForm: FC<IProps> = ({
|
|||
</div>
|
||||
<div className="form-group">
|
||||
<input
|
||||
type="text"
|
||||
type="url"
|
||||
placeholder="Website"
|
||||
name="website"
|
||||
value={formData.website}
|
||||
|
|
@ -142,7 +141,7 @@ const EditProfileForm: FC<IProps> = ({
|
|||
<div className="form-group social-input">
|
||||
<FontAwesomeIcon icon={faFacebook} size="2x" />
|
||||
<input
|
||||
type="text"
|
||||
type="url"
|
||||
placeholder="Facebook URL"
|
||||
name="facebook"
|
||||
value={formData.facebook}
|
||||
|
|
@ -153,7 +152,7 @@ const EditProfileForm: FC<IProps> = ({
|
|||
<div className="form-group social-input">
|
||||
<FontAwesomeIcon icon={faInstagram} size="2x" />
|
||||
<input
|
||||
type="text"
|
||||
type="url"
|
||||
placeholder="Instagram URL"
|
||||
name="instagram"
|
||||
value={formData.instagram}
|
||||
|
|
@ -164,7 +163,7 @@ const EditProfileForm: FC<IProps> = ({
|
|||
<div className="form-group social-input">
|
||||
<FontAwesomeIcon icon={faLinkedin} size="2x" />
|
||||
<input
|
||||
type="text"
|
||||
type="url"
|
||||
placeholder="Linkedin URL"
|
||||
name="linkedin"
|
||||
value={formData.linkedin}
|
||||
|
|
@ -175,7 +174,7 @@ const EditProfileForm: FC<IProps> = ({
|
|||
<div className="form-group social-input">
|
||||
<FontAwesomeIcon icon={faTwitter} size="2x" />
|
||||
<input
|
||||
type="text"
|
||||
type="url"
|
||||
placeholder="Twitter URL"
|
||||
name="twitter"
|
||||
value={formData.twitter}
|
||||
|
|
@ -186,7 +185,7 @@ const EditProfileForm: FC<IProps> = ({
|
|||
<div className="form-group social-input">
|
||||
<FontAwesomeIcon icon={faYoutube} size="2x" />
|
||||
<input
|
||||
type="text"
|
||||
type="url"
|
||||
placeholder="YouTube URL"
|
||||
name="youtube"
|
||||
value={formData.youtube}
|
||||
|
|
|
|||
2
src/static/css/style.min.css
vendored
2
src/static/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -11,6 +11,7 @@
|
|||
input[type='email'],
|
||||
input[type='password'],
|
||||
input[type='date'],
|
||||
input[type='url'],
|
||||
select,
|
||||
textarea {
|
||||
display: block;
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@
|
|||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Raleway', sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Raleway', sans-serif;
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
background-color: white;
|
||||
|
|
|
|||
Loading…
Reference in a new issue