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

Fix #31: Contact page added. #33

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
122 changes: 111 additions & 11 deletions src/pages/ContactUs/ContactUs.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,118 @@
import React from "react";
import MetaComponent from "../../seo/MetaComponent";
import metaData from "../../seo/metaData";
import React, { useState } from "react";
import 'font-awesome/css/font-awesome.min.css';
import "./ContactUs.scss";
import { faDiscord } from "@fortawesome/free-brands-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";

// import MetaComponent from "../../seo/MetaComponent";
// import metaData from "../../seo/metaData";
// import styles from "./contact-us.module.scss";

import styles from "./contact-us.module.scss";

function ContactUs() {
const [condition, setCondition] = useState(false);
const [active1, setactive1] = useState(false);
const [active2, setactive2] = useState(false);
const [active3, setactive3] = useState(false);
const [active4, setactive4] = useState(false);


const sendClick = (e) => {
setCondition(!condition);
}

const inputFocus1 = (e) => {
if(e.target.value === "")
{
setactive1(!active1);
}
}
const inputFocus2 = (e) => {
if(e.target.value === "")
{
setactive2(!active2);
}
}
const inputFocus3 = (e) => {
if(e.target.value === "")
{
setactive3(!active3);
}
}
const inputFocus4 = (e) => {
if(e.target.value === "")
{
setactive4(!active4);
}
}

return (
<div className={styles.root} id="home_contact">
<MetaComponent
title={metaData.contact.title}
description={metaData.contact.description}
keywords={metaData.contact.keywords}
/>
Contact Us page
// <div className={styles.root} id="home_contact">
// <MetaComponent
// title={metaData.contact.title}
// description={metaData.contact.description}
// keywords={metaData.contact.keywords}
// />
// Contact Us page
// </div>
<div className="center">
<div className="container">
<div className="title">
<h3>Contact us</h3>
<p style={{fontSize:"20px"}}>Any question or remarks? Just write us a message.</p>
</div>
<div className={ active1 ? "form form__1 active" : "form form__1" }>
<label for="name" className="form__label">Full name</label>
<input onFocus={inputFocus1} onBlur={inputFocus1} type="text" className="form__input" placeholder="" id="name" required/>
</div>

<div className={ active2 ? "form form__2 active" : "form form__2" }>
<label for="email" className="form__label">Email address</label>
<input onFocus={inputFocus2} onBlur={inputFocus2} type="email" className="form__input" placeholder="" id="email" required/>
</div>

<div className={ active3 ? "form form__3 active" : "form form__3" }>
<label for="subject" className="form__label">Subject</label>
<input onFocus={inputFocus3} onBlur={inputFocus3} type="subject" className="form__input" placeholder="" id="subject" required/>
</div>

<div className={ active4 ? "form form__4 active" : "form form__4" }>
<label for="message" className="form__label">Your message</label>
<input onFocus={inputFocus4} onBlur={inputFocus4} type="text" className="form__input" placeholder="" id="message" required/>
</div>

<button className="form__btn" onClick={sendClick}>
<span className={ condition ? "form__btn--visible invisible" : "form__btn--visible" }><p>Submit &nbsp;</p>
<i className="fa fa-arrow-right" ></i>
</span>
<span class={ condition ? "form__btn--invisible visible" : "form__btn--invisible" }>Message sent!</span>
</button>

<div className="container-mail">
<div className="mail">
<div className="mail__back"></div>
<div className={ condition ? "mail__top closed" : "mail__top" }></div>
<div className={ condition ? "mail__letter move" : "mail__letter" }>
<div className="mail__letter-square">
</div>
<div className="mail__letter-lines">
</div>
</div>
<div className="mail__left"></div>
<div className="mail__right"></div>
<div className="mail__bottom"></div>
</div>
</div>

{/* <div className="socialMediaIcons"> */}
<div className="socials">
<a href="#" id="githubIcon"><i style={{fontSize:"36px"}} className="fa fa-github"></i></a>
<a href="#" id="linkedinIcon"><i style={{fontSize:"36px"}} className="fa fa-linkedin"></i></a>
<a href="#"></a> <FontAwesomeIcon icon={faDiscord} style={{fontSize:"36px", color:"#373737"}} />
</div>
{/* </div> */}

</div>
</div>
);
}
Expand Down
Loading