mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-11 21:16:45 +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,
|
handleCheckboxesChange,
|
||||||
isDisabled,
|
isDisabled,
|
||||||
}) => (
|
}) => (
|
||||||
<form className="form" onSubmit={handleSubmit}>
|
<form className="form" onSubmit={handleSubmit} autoComplete="on">
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ const AddExperienceForm: FC<IProps> = ({
|
||||||
handleCheckboxesChange,
|
handleCheckboxesChange,
|
||||||
isDisabled,
|
isDisabled,
|
||||||
}) => (
|
}) => (
|
||||||
<form className="form" onSubmit={handleSubmit}>
|
<form className="form" onSubmit={handleSubmit} autoComplete="on">
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ const EditProfileForm: FC<IProps> = ({
|
||||||
isDisabled,
|
isDisabled,
|
||||||
toggleSocialLinks,
|
toggleSocialLinks,
|
||||||
}) => (
|
}) => (
|
||||||
<form className="form" onSubmit={handleSubmit}>
|
<form className="form" onSubmit={handleSubmit} autoComplete="on">
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<select
|
<select
|
||||||
name="status"
|
name="status"
|
||||||
|
|
@ -60,7 +60,6 @@ const EditProfileForm: FC<IProps> = ({
|
||||||
placeholder="Company"
|
placeholder="Company"
|
||||||
name="company"
|
name="company"
|
||||||
value={formData.company}
|
value={formData.company}
|
||||||
// value={variable}
|
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
<small className="form-text">
|
<small className="form-text">
|
||||||
|
|
@ -69,7 +68,7 @@ const EditProfileForm: FC<IProps> = ({
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="url"
|
||||||
placeholder="Website"
|
placeholder="Website"
|
||||||
name="website"
|
name="website"
|
||||||
value={formData.website}
|
value={formData.website}
|
||||||
|
|
@ -142,7 +141,7 @@ const EditProfileForm: FC<IProps> = ({
|
||||||
<div className="form-group social-input">
|
<div className="form-group social-input">
|
||||||
<FontAwesomeIcon icon={faFacebook} size="2x" />
|
<FontAwesomeIcon icon={faFacebook} size="2x" />
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="url"
|
||||||
placeholder="Facebook URL"
|
placeholder="Facebook URL"
|
||||||
name="facebook"
|
name="facebook"
|
||||||
value={formData.facebook}
|
value={formData.facebook}
|
||||||
|
|
@ -153,7 +152,7 @@ const EditProfileForm: FC<IProps> = ({
|
||||||
<div className="form-group social-input">
|
<div className="form-group social-input">
|
||||||
<FontAwesomeIcon icon={faInstagram} size="2x" />
|
<FontAwesomeIcon icon={faInstagram} size="2x" />
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="url"
|
||||||
placeholder="Instagram URL"
|
placeholder="Instagram URL"
|
||||||
name="instagram"
|
name="instagram"
|
||||||
value={formData.instagram}
|
value={formData.instagram}
|
||||||
|
|
@ -164,7 +163,7 @@ const EditProfileForm: FC<IProps> = ({
|
||||||
<div className="form-group social-input">
|
<div className="form-group social-input">
|
||||||
<FontAwesomeIcon icon={faLinkedin} size="2x" />
|
<FontAwesomeIcon icon={faLinkedin} size="2x" />
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="url"
|
||||||
placeholder="Linkedin URL"
|
placeholder="Linkedin URL"
|
||||||
name="linkedin"
|
name="linkedin"
|
||||||
value={formData.linkedin}
|
value={formData.linkedin}
|
||||||
|
|
@ -175,7 +174,7 @@ const EditProfileForm: FC<IProps> = ({
|
||||||
<div className="form-group social-input">
|
<div className="form-group social-input">
|
||||||
<FontAwesomeIcon icon={faTwitter} size="2x" />
|
<FontAwesomeIcon icon={faTwitter} size="2x" />
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="url"
|
||||||
placeholder="Twitter URL"
|
placeholder="Twitter URL"
|
||||||
name="twitter"
|
name="twitter"
|
||||||
value={formData.twitter}
|
value={formData.twitter}
|
||||||
|
|
@ -186,7 +185,7 @@ const EditProfileForm: FC<IProps> = ({
|
||||||
<div className="form-group social-input">
|
<div className="form-group social-input">
|
||||||
<FontAwesomeIcon icon={faYoutube} size="2x" />
|
<FontAwesomeIcon icon={faYoutube} size="2x" />
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="url"
|
||||||
placeholder="YouTube URL"
|
placeholder="YouTube URL"
|
||||||
name="youtube"
|
name="youtube"
|
||||||
value={formData.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='email'],
|
||||||
input[type='password'],
|
input[type='password'],
|
||||||
input[type='date'],
|
input[type='date'],
|
||||||
|
input[type='url'],
|
||||||
select,
|
select,
|
||||||
textarea {
|
textarea {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,10 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
font-family: 'Raleway', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: 'Raleway', sans-serif;
|
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue