Skip to content

Commit

Permalink
some css in the landing Page and default picture
Browse files Browse the repository at this point in the history
  • Loading branch information
Melimm29 committed Feb 11, 2022
1 parent a530817 commit 013ca5a
Show file tree
Hide file tree
Showing 7 changed files with 195 additions and 180 deletions.
1 change: 1 addition & 0 deletions public/5MFoz12RbHaRROhQXAF8svMdxjk2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
undefined
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/ColorHuntPalette2e4c6d396eb0daddfcfc997c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Auth/GeekForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function GeekForm({ email, password, displayName, lastName }) {
Choose your profile picture
</label>
<label>
<input required type="file" onChange={handleFileChange} />
<input type="file" onChange={handleFileChange} />
{pictureError && <div className="error">{pictureError}</div>}
</label>
</div>
Expand Down
22 changes: 14 additions & 8 deletions src/components/Auth/HunterForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ import { signInWithGoogle } from "../../firebase/fbConfig";
function HunterForm({ email, password, displayName, lastName }) {
const { signup, isPending, error } = useHunterSignup();
const [PersonalOrCompany, setFormType] = useState("");
const [location, setLocation] = useState("")

const onFormTypeSelect = (type) => {
return (e) => {
e.preventDefault();
setFormType(type);
console.log("seleted");
};
};

const handleSubmit = (e) => {
e.preventDefault();
signup(email, password, displayName, lastName, PersonalOrCompany);
signup(email, password, displayName, lastName, PersonalOrCompany, location);
};

return (
Expand All @@ -29,6 +31,15 @@ function HunterForm({ email, password, displayName, lastName }) {
>
Personal
</button>
<input
className="shadow appearance-none border rounded w-full
py-2 px-3 text-gray-700 leading-tight focus:outline-none
focus:shadow-outline"
type="name"
onChange={e => setLocation(e.target.value)}
placeholder="Location"
value={location}
/>
<h1>Or</h1>
<button
className="px-4 py-2 rounded text-white inline-block
Expand All @@ -37,19 +48,14 @@ function HunterForm({ email, password, displayName, lastName }) {
>
Company
</button>
<input
className="shadow appearance-none border rounded w-full
py-2 px-3 text-gray-700 leading-tight focus:outline-none
focus:shadow-outline"
type="name"
placeholder="Company Name"
/>
<input
className="shadow appearance-none border rounded w-full
py-2 px-3 text-gray-700 leading-tight focus:outline-none
focus:shadow-outline"
type="name"
onChange={e => setLocation(e.target.value)}
placeholder="Location"
value={location}
/>
<div className="flex items-center justify-between">
{!isPending && (
Expand Down
Loading

0 comments on commit 013ca5a

Please sign in to comment.