Skip to content

Commit d5129b7

Browse files
committed
Changed the UI as requested
1 parent f9c0788 commit d5129b7

File tree

5 files changed

+16488
-12178
lines changed

5 files changed

+16488
-12178
lines changed

example/src/App.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
} from 'dezenix-react'
1414
import Home from './components/Home'
1515
import { HashRouter, Route, Routes } from 'react-router-dom'
16+
import contact from "./images/contact.png"
1617
import img1 from "./images/img01.png"
1718
import user from "./images/user1.jpg"
1819
import {members} from "./data/members.json"
@@ -46,7 +47,7 @@ const App = () => {
4647
<Route path='/complex' element={<ComplexComponent />} />
4748
<Route path='/portfoliohome' element={<PortfolioHome pic={img1} />} />
4849
<Route path='/team' element={<TeamMembers img={user} members={members} />} />
49-
<Route path='/contactus' element={<ContactUs />} />
50+
<Route path='/contactus' element={<ContactUs img={contact} />} />
5051
</Routes>
5152
</HashRouter>
5253
)

example/src/images/contact.png

209 KB
Loading

src/lib-components/contact_us/index.js

+46-42
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,57 @@
11
import React from "react";
22
import { FaPaperPlane } from "react-icons/fa";
33
import styles from "./index.module.css";
4-
const ContactUs = () => {
4+
const ContactUs = (props) => {
55
return (
6-
<div className={styles.contact}>
7-
<h1 className={styles["section-header"]}>Contact Us</h1>
8-
6+
<div className={styles.section}>
7+
<h1 className={styles["brand-header"]}>Brand name</h1>
8+
<div className={styles.contact}>
99
<div className={styles["contact-wrapper"]}>
10-
<form
11-
id={styles["contact-form"]}
12-
className={styles["form-horizontal"]}
13-
role="form"
14-
>
15-
<input
16-
type="text"
17-
id="name"
18-
placeholder="NAME"
19-
name="name"
20-
required
21-
/>
22-
23-
<input
24-
type="email"
25-
id="email"
26-
placeholder="EMAIL"
27-
name="email"
28-
required
29-
/>
10+
<h1 className={styles["section-header"]}>Contact Us</h1>
11+
<form
12+
id={styles["contact-form"]}
13+
className={styles["form-horizontal"]}
14+
role="form"
15+
>
16+
<input
17+
type="text"
18+
id="name"
19+
placeholder="NAME"
20+
name="name"
21+
required
22+
/>
3023

31-
<textarea
32-
rows="10"
33-
placeholder="MESSAGE"
34-
name="message"
35-
required
36-
></textarea>
24+
<input
25+
type="email"
26+
id="email"
27+
placeholder="EMAIL"
28+
name="email"
29+
required
30+
/>
3731

38-
<button
39-
className={styles["send-button"]}
40-
id="submit"
41-
type="submit"
42-
value="SEND"
43-
>
44-
<div className={styles["alt-send-button"]}>
45-
<FaPaperPlane color= "#fff"/>
32+
<textarea
33+
rows="10"
34+
placeholder="MESSAGE"
35+
name="message"
36+
required
37+
></textarea>
4638

47-
<span className={styles["send-text"]}>SEND</span>
48-
</div>
49-
</button>
50-
</form>
39+
<button
40+
className={styles["send-button"]}
41+
id="submit"
42+
type="submit"
43+
value="SEND"
44+
>
45+
<div className={styles["alt-send-button"]}>
46+
<FaPaperPlane color="#fff" />
47+
<span className={styles["send-text"]}>SEND</span>
48+
</div>
49+
</button>
50+
</form>
51+
</div>
52+
<div className={styles.contact_img}>
53+
<img src={props.img} alt="img" className={styles.img} />
54+
</div>
5155
</div>
5256
</div>
5357
);

src/lib-components/contact_us/index.module.css

+41-31
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,49 @@ body {
22
margin: 0;
33
padding: 0;
44
box-sizing: border-box;
5-
}
6-
7-
.contact {
8-
max-width: 450px;
9-
height: 100%;
10-
display: flex;
11-
margin: 1em auto;
5+
font-family: "Oswald", sans-serif;
6+
background-color: #1495E3;
7+
}
8+
.section{
9+
height: max-content;
10+
width: fit-content;
11+
display:flex;
12+
flex-wrap:nowrap;
1213
flex-direction: column;
13-
background-color: black;
14+
margin: 2em auto;
15+
padding: 2em 1em;
1416
border-radius: 0.5rem;
15-
background: rgb(195, 34, 110);
16-
background: linear-gradient(
17-
125deg,
18-
rgba(195, 34, 110, 1) 0%,
19-
rgba(253, 187, 45, 1) 48%
20-
);
21-
}
17+
background-color:#f4f3ee;
2218

23-
.section-header {
24-
text-align: center;
25-
margin: 0 auto;
26-
padding-top: 1rem;
27-
font: 300 22px "Oswald", sans-serif;
28-
color: #fff;
19+
}
20+
.contact{
21+
display:flex;
22+
padding: 1em;
23+
}
24+
.contact_img {
25+
max-width: 440px;
26+
}
27+
.brand-header{
28+
padding: 0.8em 1em;
29+
font-size: 22px;
30+
font-weight: 500;
31+
}
32+
.section-header{
33+
padding-left: 0.25em;
34+
padding-bottom: 1em;
35+
font-size: 16px;
36+
font-weight: 400;
37+
}
38+
.brand-header, .section-header {
39+
text-align: left;
40+
color: #000;
2941
text-transform: uppercase;
3042
letter-spacing: 2px;
3143
}
3244

3345
.contact-wrapper {
34-
margin: 0 auto;
35-
padding: 2rem;
36-
max-width: 440px;
46+
padding: 0 0 1em 0;
47+
max-width: 430px;
3748
height: 380px;
3849
}
3950

@@ -48,7 +59,7 @@ body {
4859
font-weight: 400;
4960
}
5061

51-
input {
62+
#contact-form input {
5263
max-width: 400px;
5364
height: 40px;
5465
padding: 0.7em;
@@ -60,15 +71,15 @@ input {
6071
-webkit-backdrop-filter: blur(15px);
6172
border: 1px solid rgba(255, 255, 255, 0.03);
6273
}
63-
input:hover,
74+
#contact-form input:hover,
6475
textarea:hover {
65-
border: 1.5px solid white;
76+
border: 1.5px solid #1495E3;
6677
}
67-
input:focus-visible,
78+
#contact-form input:focus-visible,
6879
textarea:focus-visible {
69-
outline: 1.5px solid white;
80+
outline: 1.5px solid #1495E3;
7081
}
71-
textarea {
82+
#contact-form textarea {
7283
padding: 0.7em;
7384
border-radius: 0.5rem;
7485
border: 1.5px solid #fff;
@@ -80,7 +91,6 @@ textarea {
8091
}
8192

8293
.send-button {
83-
margin-top: 15px;
8494
height: 34px;
8595
width: 317px;
8696
padding: 7px;

0 commit comments

Comments
 (0)