Skip to content

Commit 739e50d

Browse files
Merge pull request #61 from codeXsit/codex-4-contact
Feat: add contact page
2 parents 6aa7277 + ae4e6cf commit 739e50d

File tree

5 files changed

+71
-3
lines changed

5 files changed

+71
-3
lines changed

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const navLinks = [
1111
{ name: "Our Team", path: "/teams" },
1212
{ name: "Gallery", path: "/gallery" },
1313
{ name: "Events", path: "/events" },
14-
{ name: "Contact", path: "/contact" },
14+
{ name: "Contact Us", path: "/contact" },
1515
];
1616

1717
function App() {

src/components/Navbar/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function Navbar({ links }) {
6868
? "w-full"
6969
: "max-w-0"
7070
}`}
71-
></span>
71+
/>
7272
</li>
7373
))}
7474
</ul>

src/pages/Contact/index.jsx

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import PageTransition from "@/components/PageTransition";
2+
3+
function Contact() {
4+
return (
5+
<PageTransition>
6+
<div className="bg-background-dark h-[calc(100vh-4.6rem)]">
7+
<div className="mt-8 flex gap-x-8 overflow-hidden">
8+
<span className="text-outlined uppercase text-8xl font-black text-transparent whitespace-nowrap">
9+
Contact Us
10+
</span>
11+
<span className="text-text-light uppercase text-8xl font-black whitespace-nowrap">
12+
Contact Us
13+
</span>
14+
<span className="text-outlined uppercase text-8xl font-black text-transparent whitespace-nowrap">
15+
Contact Us
16+
</span>
17+
<span className="text-text-light uppercase text-8xl font-black">
18+
Events
19+
</span>
20+
</div>
21+
<div className="mx-10 mt-16">
22+
<form>
23+
<div className="m-auto flex flex-col p-8 bg-background-elevation rounded-lg shadow-lg px-12 py-8 max-w-2xl">
24+
<span className=" text-secondary-light uppercase tracking-widest m-auto mb-3">
25+
Drop us a message
26+
</span>
27+
<input
28+
type="text"
29+
placeholder="Name"
30+
className="bg-background-elevation py-2 my-3 border-b-2 border-secondary-light text-text-light outline-none"
31+
required
32+
/>
33+
<input
34+
type="email"
35+
placeholder="Email"
36+
className="bg-background-elevation py-2 my-3 border-b-2 border-secondary-light text-text-light outline-none"
37+
required
38+
/>
39+
<textarea
40+
placeholder="Enter your message..."
41+
rows="4"
42+
className="bg-background-elevation py-2 my-3 border-b-2 border-secondary-light text-text-light outline-none"
43+
required
44+
/>
45+
<div className=" flex justify-end mt-4">
46+
<input
47+
type="submit"
48+
value="send"
49+
className="bg-transparent rounded-full border-2 border-secondary-light px-8 py-2 text-secondary-light cursor-pointer"
50+
/>
51+
</div>
52+
</div>
53+
</form>
54+
</div>
55+
</div>
56+
</PageTransition>
57+
);
58+
}
59+
60+
export default Contact;

src/routes/index.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@ import Home from "@/pages/Home/index";
22
import Teams from "@/pages/Teams/index";
33
import About from "@/pages/About/index";
44
import Gallery from "@/pages/Gallery/Gallery";
5+
import Contact from "@/pages/Contact";
56
import PageNotFound from "../pages/PageNotFound";
67

78
const routes = [
9+
{
10+
label: "Contact",
11+
path: "/contact",
12+
requireAuth: false,
13+
render: <Contact />,
14+
},
815
{
916
label: "Gallery",
1017
path: "/gallery",

tailwind.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ export default {
1111
contrastText: "#F7F7F7",
1212
},
1313
secondary: {
14-
DEFAULT: "#737373",
14+
DEFAULT: "# ",
1515
light: "#A3A3A3",
1616
dark: "#222222",
1717
},
1818
background: {
19+
elevation: "#2a2a2a",
1920
dark: "#232323",
2021
light: "#F7F7F7",
2122
},

0 commit comments

Comments
 (0)