-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathindex.tsx
More file actions
93 lines (84 loc) · 2.66 KB
/
Copy pathindex.tsx
File metadata and controls
93 lines (84 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import Image from "next/image";
import Link from "next/link";
import styles from "./footer.module.scss";
import React, { useState } from "react";
function FooterSection() {
const [email, setEmail] = useState("");
function handleOnSubmit(e: React.SyntheticEvent) {
e.preventDefault();
console.log(email);
}
function handleOnChange(e: React.FormEvent<HTMLInputElement>) {
setEmail(e.currentTarget.value);
}
return (
<footer className={styles.footer}>
<div className="container-xl">
<div className={styles.sitemap}>
<div className={styles.nav}>
<div className={styles.devsindia}>
<Image
src="https://raw.githubusercontent.com/developersIndia/assets/main/logo.svg"
alt="Developers India Logo"
layout="fixed"
width="30px"
className={styles.logo}
height="30px"
/>
Developers India
</div>
<div className={styles.links}>
<Link href="">
<a className={styles.link}>Reddit</a>
</Link>
<Link href="">
<a className={styles.link}>Discord</a>
</Link>
<Link href="">
<a className={styles.link}>Github</a>
</Link>
<Link href="">
<a className={styles.link}>Careers</a>
</Link>
<Link href="">
<a className={styles.link}>About Us</a>
</Link>
</div>
</div>
<div className={styles.signup}>
<form onSubmit={handleOnSubmit}>
<label>Stay up to date</label>
<input
placeholder="Your Email Address"
type="text"
className={styles.input}
onChange={handleOnChange}
></input>
<button type="submit" className="button-dark">
Submit
</button>
</form>
</div>
</div>
<div className={styles.copyright}>
<p>© 2022-{new Date().getFullYear()} Developers India</p>
<p>
Made in India with{" "}
<span>
<a
style={{ textDecoration: "underline", color: "#2A3268" }}
href="https://github.com/developersIndia"
rel="noopener noreferrer"
target="_blank"
>
Open-Source
</a>
</span>{" "}
❤️
</p>
</div>
</div>
</footer>
);
}
export default FooterSection;