Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Contact page #45

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions src/components/Contact/Contact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* src/components/Contact/Contact.css */
.contact-section {
width: 100%;
min-height: 100vh;
background-color: #0A192F;
padding: 4rem 1rem;
Saumya40-codes marked this conversation as resolved.
Show resolved Hide resolved
}

.contact-container {
max-width: 1200px;
margin: 0 auto;
}

.contact-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
}

.contact-form-container {
width: 536px;
height: 536px;
top: 4038px;
left: 57px;
margin: 0 auto;
color: #004457;
}

.contact-title {
color: #00C8FF;
font-size: 90px;
font-weight: 700;
margin-bottom: 3rem;
font-family: Inter;
line-height: 108.92px;
}

.social-icons-container {
position: relative;
width: 100%;
height: 500px;
display: flex;
align-items: center;
justify-content: center;
}

@media (min-width: 768px) {
.contact-grid {
grid-template-columns: 1fr 1fr;
align-items: center;
}
}
28 changes: 28 additions & 0 deletions src/components/Contact/Contact.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// src/components/Contact/Contact.jsx
import React from 'react';
import ContactUs from '../ContactUs/ContactUs';
import SocialMediaIcons from '../SocialMediaIcons/SocialMediaIcons';
import './Contact.css';

const Contact = () => {
return (
<section className="contact-section">
<div className="contact-container">
<div className="contact-grid">
{/* Left side - Contact Form */}
<div className="contact-form-container">
<h2 className="contact-title">Contact Us</h2>
<ContactUs />
</div>

{/* Right side - Social Media Icons */}
<div className="social-icons-container">
<SocialMediaIcons />
</div>
</div>
</div>
</section>
);
};

export default Contact;
Empty file.
54 changes: 54 additions & 0 deletions src/components/ContactUs/ContactUs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/* src/components/ContactUs/ContactUs.css */
.contact-form {
width: 100%;
}

.form-group {
margin-bottom: 2rem;
}

.form-label {
display: block;
color: white;
font-size: 1rem;
margin-bottom: 0.5rem;
font-weight: 250;
font-family: Inter;
}

.form-input {
width: 100%;
padding: 0.75rem 0;
background-color: transparent;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
color: white;
font-size: 1rem;
transition: border-color 0.3s ease;
}

.form-input:focus {
outline: none;
border-bottom-color: white;
}

textarea.form-input {
min-height: 100px;
resize: vertical;
}

.submit-button {
width: 100%;
padding: 1rem;
background-color: #004457;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s ease;
}

.submit-button:hover {
background-color: #004457;
}
70 changes: 70 additions & 0 deletions src/components/ContactUs/ContactUs.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// src/components/ContactUs/ContactUs.jsx
import React, { useState } from 'react';
import './ContactUs.css';

const ContactUs = () => {
const [formData, setFormData] = useState({
fullName: '',
email: '',
message: ''
});

const handleChange = (e) => {
const { name, value } = e.target;
setFormData(prevState => ({
...prevState,
[name]: value
}));
};

const handleSubmit = (e) => {
e.preventDefault();
console.log('Form submitted:', formData);
};

return (
<form className="contact-form" onSubmit={handleSubmit}>
<div className="form-group">
<label className="form-label">Full Name</label>
<input
type="text"
name="fullName"
value={formData.fullName}
onChange={handleChange}
required
className="form-input"
/>
</div>

<div className="form-group">
<label className="form-label">E-mail</label>
<input
type="email"
name="email"
value={formData.email}
onChange={handleChange}
required
className="form-input"
/>
</div>

<div className="form-group">
<label className="form-label">Message</label>
<textarea
name="message"
value={formData.message}
onChange={handleChange}
required
className="form-input"
rows="4"
/>
</div>

<button type="submit" className="submit-button">
Send
</button>
</form>
);
};

export default ContactUs;
89 changes: 0 additions & 89 deletions src/components/ContactUsForm/Contact_Us.css

This file was deleted.

22 changes: 0 additions & 22 deletions src/components/ContactUsForm/Contact_Us.jsx

This file was deleted.

Loading
Loading