-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from utmgdsc/ta_charitySignupPage
SC-6
- Loading branch information
Showing
7 changed files
with
198 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
import { JSX } from "react"; | ||
|
||
const Header = (): JSX.Element => ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
import React from "react"; | ||
|
||
const CharitySignUp: React.FC = () => { | ||
return ( | ||
<div className="grid grid-cols-2 relative isolate bg-white px-6 py-24 sm:py-32 lg:px-8"> | ||
<div | ||
className="absolute inset-x-0 top-[-10rem] -z-10 transform overflow-hidden blur-3xl sm:top-[-20rem]" | ||
aria-hidden="true" | ||
> | ||
<div | ||
className="relative left-1/2 w-[36.125rem] -translate-x-1/2" | ||
></div> | ||
</div> | ||
|
||
<div className="mx-auto w-full max-w-lg grid grid-cols-1 md:grid-cols-2 gap-6"> | ||
<div className="text-center md:text-left flex flex-col justify-start"> | ||
<h2 className="text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl"> | ||
Charity Sign-Up | ||
</h2> | ||
<p className="mt-4 text-lg text-gray-600"> | ||
Register as a charity today! | ||
</p> | ||
<ul className="list-disc list-inside text-gray-600"> | ||
<li>Requirement 1</li> | ||
<li>Requirement 2</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<form action="#" method="POST" className="mx-auto w-full max-w-lg sm:mt-0"> | ||
<div className="grid grid-cols-1 gap-x-8 gap-y-6 sm:grid-cols-2"> | ||
<div> | ||
<label | ||
htmlFor="first-name" | ||
className="block text-sm font-semibold text-gray-900" | ||
> | ||
First name | ||
</label> | ||
<div className="mt-2.5"> | ||
<input | ||
type="text" | ||
name="first-name" | ||
id="first-name" | ||
autoComplete="given-name" | ||
className="block w-full rounded-md border border-gray-300 bg-white px-3.5 py-2 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-cyan-600 focus:ring-offset-2" | ||
/> | ||
</div> | ||
</div> | ||
<div> | ||
<label | ||
htmlFor="last-name" | ||
className="block text-sm font-semibold text-gray-900" | ||
> | ||
Last name | ||
</label> | ||
<div className="mt-2.5"> | ||
<input | ||
type="text" | ||
name="last-name" | ||
id="last-name" | ||
autoComplete="family-name" | ||
className="block w-full rounded-md border border-gray-300 bg-white px-3.5 py-2 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-cyan-600 focus:ring-offset-2" | ||
/> | ||
</div> | ||
</div> | ||
<div className="sm:col-span-2"> | ||
<label | ||
htmlFor="company" | ||
className="block text-sm font-semibold text-gray-900" | ||
> | ||
Charity Name | ||
</label> | ||
<div className="mt-2.5"> | ||
<input | ||
type="text" | ||
name="company" | ||
id="company" | ||
autoComplete="organization" | ||
className="block w-full rounded-md border border-gray-300 bg-white px-3.5 py-2 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-cyan-600 focus:ring-offset-2" | ||
/> | ||
</div> | ||
</div> | ||
<div className="sm:col-span-2"> | ||
<label | ||
htmlFor="email" | ||
className="block text-sm font-semibold text-gray-900" | ||
> | ||
</label> | ||
<div className="mt-2.5"> | ||
<input | ||
type="email" | ||
name="email" | ||
id="email" | ||
autoComplete="email" | ||
className="block w-full rounded-md border border-gray-300 bg-white px-3.5 py-2 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-cyan-600 focus:ring-offset-2" | ||
/> | ||
</div> | ||
</div> | ||
<div className="sm:col-span-2"> | ||
<label | ||
htmlFor="phone-number" | ||
className="block text-sm font-semibold text-gray-900" | ||
> | ||
Phone number | ||
</label> | ||
<div className="mt-2.5"> | ||
<div className="flex rounded-md border border-gray-300 bg-white focus-within:ring-2 focus-within:ring-cyan-600 focus-within:ring-offset-2"> | ||
<select | ||
id="country" | ||
name="country" | ||
autoComplete="country" | ||
aria-label="Country" | ||
className="block w-20 rounded-l-md border-r border-gray-300 bg-white px-3 py-2 text-gray-900 focus:outline-none" | ||
> | ||
<option>US</option> | ||
<option>CA</option> | ||
<option>EU</option> | ||
</select> | ||
<input | ||
type="text" | ||
name="phone-number" | ||
id="phone-number" | ||
className="block w-full rounded-r-md px-3 py-2 text-gray-900 placeholder-gray-400 focus:outline-none" | ||
placeholder="123-456-7890" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="sm:col-span-2"> | ||
<label | ||
htmlFor="message" | ||
className="block text-sm font-semibold text-gray-900" | ||
> | ||
Message | ||
</label> | ||
<div className="mt-2.5"> | ||
<textarea | ||
name="message" | ||
id="message" | ||
rows={4} | ||
className="block w-full rounded-md border border-gray-300 bg-white px-3.5 py-2 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-cyan-600 focus:ring-offset-2" | ||
></textarea> | ||
</div> | ||
</div> | ||
<div className="flex items-center gap-x-4 sm:col-span-2"> | ||
<button | ||
type="button" | ||
className="relative flex w-8 h-4 cursor-pointer rounded-full bg-gray-200 transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-cyan-600 focus:ring-offset-2" | ||
role="switch" | ||
aria-checked="false" | ||
> | ||
<span | ||
aria-hidden="true" | ||
className="block h-4 w-4 transform rounded-full bg-white shadow ring-1 ring-gray-300 transition duration-200 ease-in-out" | ||
></span> | ||
</button> | ||
<label className="text-sm text-gray-600"> | ||
By selecting this, you agree to our{" "} | ||
<a href="#" className="font-semibold text-cyan-600"> | ||
privacy policy | ||
</a> | ||
. | ||
</label> | ||
</div> | ||
</div> | ||
<div className="mt-10"> | ||
<button | ||
type="submit" | ||
className="block w-full rounded-md bg-cyan-600 px-3.5 py-2.5 text-center text-sm font-semibold text-white shadow-sm hover:bg-cyan-500 focus:outline-none focus:ring-2 focus:ring-cyan-600 focus:ring-offset-2" | ||
> | ||
Submit | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CharitySignUp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters