Skip to content

Commit

Permalink
created contact us components and page
Browse files Browse the repository at this point in the history
  • Loading branch information
takeachangs committed Jul 10, 2023
1 parent 16147d4 commit 0446159
Show file tree
Hide file tree
Showing 37,719 changed files with 4,812,360 additions and 1 deletion.
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 9 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@emailjs/browser": "^3.11.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { NotFound } from "./pages/NotFound";
import { Home } from "./pages/Home";
import Team from "./pages/Team";
import { Sponsors } from './pages/Sponsors';
import ContactUs from './pages/ContactUs';
import FAQ from './pages/FAQ';

function App() {
Expand All @@ -25,6 +26,7 @@ function App() {
<Route path="/sponsors" element={<Sponsors/>} />
<Route path="/team" element={<Team />} />
<Route path="/faq" element={<FAQ />} />
<Route path="/contact" element={<ContactUs />} />

<Route path="*" element={<NotFound/>}/>
</Routes>
Expand Down
64 changes: 64 additions & 0 deletions frontend/src/components/ContactUsForm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import React, { useRef } from "react";
import emailjs from "@emailjs/browser";

const ContactUsForm = () => {
const form = useRef();

const sendEmail = (e) => {
e.preventDefault();

emailjs
.sendForm(
"service_vumi9cq",
"template_zyncr77",
form.current,
"5jrc7bEYkHuuZ45VE"
)
.then(
(result) => {
console.log(result.text);
console.log("message sent");
},
(error) => {
console.log(error.text);
}
);
};

return (
<div className="flex justify-center">
<div className="w-96">
<form
ref={form}
onSubmit={sendEmail}
className="flex flex-col justify-between items-center"
>
<label className="mt-4 text-2xl font-semibold text-white">Name</label>
<input
type="text"
name="user_name"
className="w-full h-9 p-2 outline-none rounded-md border border-gray-300 focus:border-green-500"
/>
<label className="mt-4 text-2xl font-semibold text-white">Email</label>
<input
type="email"
name="user_email"
className="w-full h-9 p-2 outline-none rounded-md border border-gray-300 focus:border-green-500"
/>
<label className="mt-4 text-2xl font-semibold text-white">Message</label>
<textarea
name="message"
className="w-full h-24 p-2 outline-none rounded-md border border-gray-300 focus:border-green-500"
></textarea>
<input
type="submit"
value="Send"
className="text-center mt-5 py-2 mx-auto w-2/4 relative bg-[#F0D8A6] rounded-[30px] tracking-[.05em] text-[#182e2e] font-bold text-lg cursor-pointer"
/>
</form>
</div>
</div>
);
};

export default ContactUsForm;
4 changes: 3 additions & 1 deletion frontend/src/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export function NavBar({ isDark }) {
<a href={'/schedule'}><h1 className='hover:cursor-pointer'>schedule</h1></a>
<a href={'/team'}><h1 className='hover:cursor-pointer'>team</h1></a>
<a href={'/sponsors'}><h1 className='hover:cursor-pointer'>sponsors</h1></a>
<a href={'/faq'}><h1 className='hover:cursor-pointer'>FAQ</h1></a>
<a href={'/faq'}><h1 className='hover:cursor-pointer'>faq</h1></a>
<a href={'/contact'}><h1 className='hover:cursor-pointer'>contact</h1></a>

</div>
</div>
</>
Expand Down
26 changes: 26 additions & 0 deletions frontend/src/pages/ContactUs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { NavBar } from "../components/NavBar";
import ContactUsForm from '../components/ContactUsForm';

export default function ContactUs() {
return (
<>
<body className="bg-[#182E2E]">
<NavBar isDark={true} />
<div className='columns-2 gap-8 px-[5%] py-[7%]'>
<div className=''>
<h1 className='mb-[-5%] col-1 text-[87px] first-letter:font-extrabold font-bold text-[#f0d8a6]'>Connect</h1>
<h1 className='mb-[-5%] col-1 text-[87px] first-letter:font-extrabold font-bold text-white'>With Us!</h1>

</div>
<img src='./pawprint.svg' alt='pawprint' />
</div>
<main className="grid place-items-centre pb-10">
<div className='w-1065/1440'>
<ContactUsForm />
</div>

</main>
</body>
</>
);
}
6 changes: 6 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/acorn

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/ansi-html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/autoprefixer

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/browserslist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/css-blank-pseudo

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/css-has-pseudo

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/css-prefers-color-scheme

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/cssesc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/detect

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/detect-port

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/ejs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/escodegen

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/esgenerate

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/eslint

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/esparse

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/esvalidate

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/he

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/html-minifier-terser

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/import-local-fixture

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/is-docker

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/jake

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/jest

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/jiti

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/js-yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/jsesc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/json5

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/loose-envify

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/lz-string

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/mkdirp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/multicast-dns

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/nanoid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/node-which

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/parser

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/react-scripts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/regjsparser

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/resolve

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/rimraf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/rollup

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/sucrase

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/sucrase-node

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/svgo

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/tailwind

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/tailwindcss

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/terser

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/tsc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/tsserver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/update-browserslist-db

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/uuid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/webpack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-accordian/node_modules/.bin/webpack-dev-server

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0446159

Please sign in to comment.