Skip to content

Commit bb00781

Browse files
authored
Merge branch 'main' into avinash905-meta
2 parents 3873eda + 54165fa commit bb00781

File tree

24 files changed

+300
-143
lines changed

24 files changed

+300
-143
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ typings/
7171
# dotenv environment variables file
7272
.env
7373
.env.test
74+
.env.local
7475

7576
# parcel-bundler cache (https://parceljs.org/)
7677
.cache

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ DevsInTech offers a wide range of resources and opportunities for developers and
5454
>
5555
> - Before getting into it, make sure you have [pnpm](https://nodejs.org/download) installed.
5656
57-
5857
### Let's jump right in🌟
5958

6059
1. Fork the project
@@ -114,19 +113,17 @@ DevsInTech offers a wide range of resources and opportunities for developers and
114113
115114
### Setup using Docker
116115
117-
* Enter the root directory
116+
- Enter the root directory
118117
119-
```sh
120-
docker build .
118+
```sh
119+
docker build .
121120
122-
```
121+
```
123122
124-
125-
```sh
126-
docker run -p 3000:80 <Image>
127-
```
123+
```sh
124+
docker run -p 3000:80 <Image>
125+
```
128126
129-
130127
# Contribute
131128
132129
We welcome contributions in our community. Learn how to start contributing, from installing the project on your device to submitting a pull request with our<Link href="https://github.com/devs-in-tech/DevsInTech/blob/main/CONTRIBUTING.md"> Contribution guide.<Link/>

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@
1515
"prepare": "husky install"
1616
},
1717
"dependencies": {
18+
"@alan-ai/alan-sdk-web": "^1.8.48",
1819
"@commitlint/cli": "^17.6.6",
1920
"@commitlint/config-conventional": "^17.6.6",
2021
"autoprefixer": "10.4.14",
2122
"axios": "^1.4.0",
2223
"eslint": "8.44.0",
23-
"eslint-config-next": "13.4.8",
24+
"eslint-config-next": "13.4.12",
2425
"framer-motion": "^10.12.18",
2526
"husky": "^8.0.3",
2627
"next": "13.4.8",
27-
"pnpm": "^8.6.6",
28+
"pnpm": "^8.6.10",
2829
"postcss": "8.4.24",
2930
"react": "18.2.0",
3031
"react-dom": "18.2.0",
@@ -34,6 +35,6 @@
3435
"tailwindcss": "3.3.2"
3536
},
3637
"devDependencies": {
37-
"prettier": "2.8.8"
38+
"prettier": "3.0.0"
3839
}
39-
}
40+
}

pnpm-lock.yaml

Lines changed: 26 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/check-markf.png

18.2 KB
Loading

src/components/Footer.jsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
2-
31
import Image from "next/image";
42
import Link from "next/link";
53
import {
64
FaDiscord,
75
FaFacebookF,
6+
FaGithub,
87
FaInstagram,
98
FaLinkedinIn,
10-
FaTwitter,
9+
FaTwitter
1110
} from "react-icons/fa";
1211
import logo from "../../public/Images/logo.jpg";
1312

@@ -112,6 +111,22 @@ const Footer = () => {
112111
<FaDiscord size={20} />
113112
</Link>
114113
</li>
114+
115+
{/* GitHub icon */}
116+
117+
<li>
118+
<Link
119+
href="https://github.com/devs-in-tech/DevsInTech"
120+
aria-label="Join with us on GitHub"
121+
title="GitHub (External Link)"
122+
rel="noopener noreferrer"
123+
target="_blank"
124+
className="text-black transition hover:text-gray-700/75 dark:text-white dark:hover:text-gray-100/90"
125+
>
126+
<FaGithub size={20} />
127+
</Link>
128+
</li>
129+
115130
</ul>
116131
</div>
117132

src/components/HeroSection/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const HeroSection = () => {
77
<div className="flex items-center justify-center text-center md:items-start md:text-left md:justify-start px-7">
88
<div className="flex flex-col items-center md:items-start gap-8 md:w-2/3 w-full">
99
<h1 className="md:text-6xl sm:text-7xl text-4xl font-primary font-bold text-transparent bg-clip-text bg-gradient-to-r from-[#AF7AF2] via-[#A5F7A8] to-[#AF7AF2]">
10-
Devs In Tech Community
10+
DevsInTech Community
1111
</h1>
1212
<p className="text-left md:text-xl font-secondary sm:text-xl text-lg text-white">
1313
Welcome to DevsInTech, an all inclusive community where developers come to learn, grow, and create together. Whether you&apos;re a beginner or an experienced developer, you&apos;ll find a place here to connect, collaborate, and build new skills. With weekly coffee chats, movie nights, expert sessions, and more, we offer endless opportunities to improve your craft and connect with like-minded individuals. Join us today and become a part of a community that&apos;s all about helping you succeed.

src/components/Letter.jsx

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
import axios from "axios";
2+
import Image from "next/image";
3+
import { useState } from "react";
4+
5+
export default function Letter() {
6+
const [email, setEmail] = useState("");
7+
const [subscriptionSuccess, setSubscriptionSuccess] = useState(false);
8+
9+
const handleSubmit = (e) => {
10+
e.preventDefault();
11+
12+
// Make the POST request using Axios
13+
axios
14+
.post("/api/subscribes", { email })
15+
.then((response) => {
16+
// Handle the success response here
17+
console.log(response.data);
18+
setSubscriptionSuccess(true);
19+
})
20+
.catch((error) => {
21+
// Handle the error here
22+
console.error(error);
23+
});
24+
};
25+
26+
const handleEmailChange = (e) => {
27+
setEmail(e.target.value);
28+
};
29+
30+
return (
31+
<section className="bg-black ">
32+
<div className="py-8 px-4 mx-auto max-w-screen-xl lg:py-16 lg:px-6">
33+
<div className="mx-auto max-w-screen-md sm:text-center">
34+
{subscriptionSuccess ? (
35+
<div className="bg-black-500 text-white p-4 mb-4 rounded-lg flex flex-col items-center justify-center border-2 border-solid focus:border-primary-500 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500">
36+
<div className="w-12 h-12 mb-2 animate-bounce">
37+
<Image
38+
src="/check-markf.png"
39+
alt="Success Icon"
40+
width={68}
41+
height={68}
42+
/>
43+
</div>
44+
<span className="text-center text-3xl mt-2">
45+
We&apos;ve sent a confirmation email
46+
<br />
47+
Click on the link to complete your subscription to this
48+
newsletter.
49+
</span>
50+
</div>
51+
) : (
52+
<>
53+
<h2 className="sm:text-3xl md:text-4xl text-xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-400 via-green-400 to-purple-400">
54+
Subscribe to our newsletter
55+
</h2>
56+
<p className="mx-auto mb-8 mt-4 max-w-2xl font-secondary text-white-500 md:mb-12 sm:text-xl dark:text-white">
57+
Read articles from DevsInTech Blogs directly inside your inbox.
58+
Subscribe to the newsletter, and don&apos;t miss out.
59+
</p>
60+
<form action="#" onSubmit={handleSubmit}>
61+
<div className="items-center mx-auto mb-3 space-y-4 max-w-screen-sm sm:flex sm:space-y-0">
62+
<div className="relative w-full">
63+
<label
64+
htmlFor="email"
65+
className="hidden mb-2 text-sm font-medium text-gray-900 dark:text-gray-300"
66+
>
67+
Email address
68+
</label>
69+
<div className="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none ">
70+
<svg
71+
className="w-5 h-5 text-gray-500 dark:text-gray-400"
72+
fill="currentColor"
73+
viewBox="0 0 20 20"
74+
xmlns="http://www.w3.org/2000/svg"
75+
>
76+
<path d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z" />
77+
<path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z" />
78+
</svg>
79+
</div>
80+
<input
81+
className="block p-3 pl-10 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 sm:rounded-none sm:rounded-l-lg focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"
82+
placeholder="Enter your email"
83+
type="email"
84+
id="email"
85+
required=""
86+
value={email}
87+
onChange={handleEmailChange}
88+
/>
89+
</div>
90+
<div>
91+
<button
92+
type="submit"
93+
className="py-3 px-5 w-full text-sm font-medium text-center text-white rounded-lg border cursor-pointer bg-primary-700 border-primary-600 sm:rounded-none sm:rounded-r-lg hover:bg-primary-800 focus:ring-4 focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800 bg-gradient-to-r from-indigo-800 to-purple-500"
94+
>
95+
Subscribe
96+
</button>
97+
</div>
98+
</div>
99+
</form>
100+
</>
101+
)}
102+
</div>
103+
</div>
104+
</section>
105+
);
106+
}

src/components/Navbar.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Navbar = () => {
1111
{ name: "Events", link: "/events" },
1212
{ name: "Team", link: "/team" },
1313
{ name: "FAQs", link: "/#faqs" },
14-
{ name: "Contributors", link: "/Contributors" }
14+
{ name: "Contributors", link: "/Contributors" },
1515
];
1616
let [open, setOpen] = useState(false);
1717
return (
@@ -25,8 +25,9 @@ const Navbar = () => {
2525
</div>
2626

2727
<ul
28-
className={`md:flex md:items-center md:pb-0 px-20 md:px-0 pb-12 md:justify-center absolute md:static md:z-auto left-0 w-full transition-all duration-500 ease-in ${open ? "top-24 bg-black" : "top-[-550px]"
29-
}`}
28+
className={`md:flex md:items-center md:pb-0 px-20 md:px-0 pb-12 md:justify-center absolute md:static md:z-auto left-0 w-full transition-all duration-500 ease-in ${
29+
open ? "top-24 bg-black" : "top-[-550px]"
30+
}`}
3031
>
3132
{Links.map((link) => (
3233
<li

0 commit comments

Comments
 (0)