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

🚀Feat: Added Contact us page #29

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Twitter from "./views/Redirect/Twitter";
import GitHub from "./views/Redirect/GitHub";
import LinkedIn from "./views/Redirect/Linkedin";
import PersonalLinks from "./views/PersonalLinks";
import ContactUs from "./views/ContactUs";

function App() {
return (
Expand All @@ -23,6 +24,7 @@ function App() {
<Route path="/team" exact component={Team} />
<Route path="/products" exact component={Products} />
<Route path="/careers" exact component={Careers} />
<Route path="/contact-us" exact component={ContactUs} />
{/* routes for re-direction to external links */}
<Route path="/discord" exact component={Discord} />
<Route path="/twitter" exact component={Twitter} />
Expand Down
Binary file added src/assets/Illustration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/section-components/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ export default function Footer() {
))}
</div>
<div className="privacy-copyright-links-title">
<a href="#" target="_blank" rel="noreferrer">
<a href="/" target="_blank" rel="noreferrer">
Privacy
</a>
<a href="#" target="_blank" rel="noreferrer">
<a href="/" target="_blank" rel="noreferrer">
Terms
</a>
<p className="copyright-content">
Expand Down
23 changes: 15 additions & 8 deletions src/components/section-components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,40 @@ export default function Header() {
<a href="/" className="logo-wrapper-link">
<div className="logo-wrapper color-change-4x">
{/* <div className="logo-gradient-circle"> */}
<h1 className="demo-logo-icon">DS</h1>
<h1 className="demo-logo-icon">DS</h1>
{/* </div> */}
<p className="logo-title">The DesignSystems</p>
</div>
</a>
<div className="header-options-wrapper">
<ul className="header-options-list">
{headerOptions.map((data, index) => {
if (data.title.toLowerCase() === 'careers') {
if (data.title.toLowerCase() === "careers") {
return (
<li className="header-option" key={index}>
<a href={data.path} className="header-option-path">{data.title} <span className="gradient-text">#WeAreHiring</span></a>
<a href={data.path} className="header-option-path">
{data.title}{" "}
<span className="gradient-text">#WeAreHiring</span>
</a>
</li>
)
);
} else {
return (
<li className="header-option" key={index}>
<a href={data.path} className="header-option-path">{data.title}</a>
<a href={data.path} className="header-option-path">
{data.title}
</a>
</li>
)
);
}
})}
</ul>
<div className="account-cta-buttons-wrapper">
<Button type="primary" value="Contact Us" />
<a href="/contact-us">
<Button type="primary" value="Contact Us" />
</a>
</div>
</div>
</header>
)
);
}
49 changes: 49 additions & 0 deletions src/views/ContactUs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import React from 'react';
import './style.view.contact-us.css';
import Button from '../../components/widgets/Button';
import img from '../../assets/Illustration.png';

export default function ContactUs() {
return (
<div className="contact-us">
<h1 className="contact-us-section-title page-title">Contact Us</h1>
<p className="contact-us-section-description">
Be in touch with us, and collaborate with the community members and grow
in a team.
</p>

<div className="form-section-wrapper">
<img src={img} alt="Contact-Us-Illustration" className="contact-illustration" />

<form className="contact-us-form" action="" method="">
<label for="name">
Name
<input
type="text"
placeholder="Enter your name"
className="name-input"
id="name"
name="name"
/>
</label>
<label for="email">
Email Id
<input
type="text"
placeholder="Enter your email"
className="email-input"
id="email-id"
name="email-id"
/>
</label>
<label for="message">Message</label>
<textarea name="textarea" id="textarea-form-wrapper" cols="30" rows="5">
</textarea>
<a href="/" className="submit-form-button">
<Button type="primary" value="Submit" className="submit-btn"/>
</a>
</form>
</div>
</div>
);
}
89 changes: 89 additions & 0 deletions src/views/ContactUs/style.view.contact-us.css

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

9 changes: 9 additions & 0 deletions src/views/ContactUs/style.view.contact-us.css.map

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

64 changes: 64 additions & 0 deletions src/views/ContactUs/style.view.contact-us.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
div.contact-us{
display: flex;
flex-direction: column;
align-items: center;
margin-right: auto;
margin-left: auto;
margin-top: 8em;
> p.contact-us-section-description{
margin-top: 1em;
font-size: 20px;
text-align: center;
color: #f2f2f2;
margin-right: auto;
margin-left: auto;
}
> div.form-section-wrapper{
display: flex;
justify-content: center;
margin-right: auto;
margin-left: auto;
gap: 10px;
margin-top: 4em;
width: 51em;
height: 26em;
background: white;
border-radius: 20px;
> form.contact-us-form{
display: flex;
flex-direction: column;
margin-top: 1em;
margin-right: 5em;
> label{
color: black;
font-family: inherit;
font-size: 18px;
font-weight: 600;
margin-top: 1em;
> input{
display: block;
padding: 0.8em 1em;
border-radius: 10px;
margin-top: 0.5em;
border: 2px solid black;
&:focus{
outline: none;
}
}
}
> textarea{
margin-top: 0.5em;
border-radius: 10px;
padding: 0.6em 0.8em;
border:2px solid black;
&:focus{
outline: none;
}
}
> a.submit-form-button{
margin-top: 0.6em;
}
}
}

}