diff --git a/frontend/src/App.js b/frontend/src/App.js index b695a28..85e5708 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -16,6 +16,7 @@ import React from 'react'; import {ContactsIcon, CrossIcon, GearIcon, MenuIcon} from '@bitcoin-design/bitcoin-icons-react/filled'; import {ChartSquareBarIcon} from '@heroicons/react/solid'; import NewFamily from './routes/NewFamily'; +import Invite from './routes/Invite'; const Child = {}; @@ -56,6 +57,7 @@ function App() { } /> + } /> } /> }> }> diff --git a/frontend/src/components/InputText.js b/frontend/src/components/InputText.js new file mode 100644 index 0000000..9616215 --- /dev/null +++ b/frontend/src/components/InputText.js @@ -0,0 +1,13 @@ +const InputText = ({placeholder, value, type, onChange}) => { + return ( + + ) +} + +export default InputText; \ No newline at end of file diff --git a/frontend/src/index.css b/frontend/src/index.css index 8e131fb..6e36750 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -19,4 +19,8 @@ h1, h2 { @apply font-display; +} + +.tile { + @apply rounded-lg bg-fam-bg-dark p-8 drop-shadow-lg my-4 border border-fam-teal border-solid space-y-4 flex flex-col; } \ No newline at end of file diff --git a/frontend/src/routes/Home.js b/frontend/src/routes/Home.js index ba1cff7..af8323b 100644 --- a/frontend/src/routes/Home.js +++ b/frontend/src/routes/Home.js @@ -20,7 +20,7 @@ const Home = () => {

Your tribe has no members. Add one!

- + diff --git a/frontend/src/routes/Invite.js b/frontend/src/routes/Invite.js new file mode 100644 index 0000000..007d456 --- /dev/null +++ b/frontend/src/routes/Invite.js @@ -0,0 +1,53 @@ +import React from "react"; +import { Link } from "react-router-dom"; +import Button from '../components/Button'; +import {MailIcon, PlusIcon} from '@heroicons/react/solid'; +import InputText from '../components/InputText'; + +const Invite = () => { + const [invited, setInvited] = React.useState(false) + const [invitedEmail, setInvitedEmail] = React.useState('') + + return ( +
+
+
+ {!invited ? +
+

Invite Members

+ +

Your tribe has no members. Add one!

+ + {setInvitedEmail(e.target.value)} } + /> + + +
+ : +
+

Invite Members

+ +

+ {invitedEmail} has been invited! Would you like to add another member? +

+ + + + + +
+ } +
+
+ ); +}; + +export default Invite;