From 3740739f6dd9cce2632fe7cb1cc22e463f535152 Mon Sep 17 00:00:00 2001 From: dewank07 Date: Sat, 4 Jan 2025 23:30:08 +0530 Subject: [PATCH 1/7] fix: api call for neetcode --- components/Grid.tsx | 51 +- constants/randomProblem.ts | 3339 ++++++++++++++++++++++++++++++++++++ 2 files changed, 3375 insertions(+), 15 deletions(-) create mode 100644 constants/randomProblem.ts diff --git a/components/Grid.tsx b/components/Grid.tsx index 9b8c200..fa99564 100644 --- a/components/Grid.tsx +++ b/components/Grid.tsx @@ -2,10 +2,11 @@ import { WobbleCard } from "./ui/wobble-card"; import Image from "next/image"; import { useEffect, useState } from "react"; -import axios from "axios"; +// import axios from "axios"; +import { randomProblemConst } from "@/constants/randomProblem"; const Grid = () => { - const [randomProblem, setRandomProblem] = useState({}); + const [randomProblem, setRandomProblem] = useState({}); //@ts-ignore // eslint-disable-next-line const getRandomProblem = (problemsMap) => { @@ -21,12 +22,13 @@ const Grid = () => { useEffect(() => { const fetchQuestion = async () => { try { - const url = "https://us-central1-neetcode-dd170.cloudfunctions.net/getProblemListFunction"; - const response = await axios.post(url, { data: {} }); - const data = response.data; - const randomProblem = getRandomProblem(data.result); - console.log(randomProblem); - setRandomProblem(randomProblem); + // const url = "https://us-central1-neetcode-dd170.cloudfunctions.net/getProblemListFunction"; + // const response = await axios.post(url, { data: {} }); + // const data = response.data; + // const randomProblem = getRandomProblem(data.result); + // console.log(randomProblem); + + setRandomProblem(randomProblemConst); } catch (error) { console.error("Error fetching problem list:", error); throw error; @@ -47,7 +49,10 @@ const Grid = () => { {randomProblem && Object.keys(randomProblem).length != 0 && ( //@ts-ignore - +
{ //@ts-ignore @@ -58,7 +63,13 @@ const Grid = () => { )}
- + { No Projects, no skills, Build on your own

-
+
codingchallenges.fyi
- + {

- Elixir is a collaborative tech community that encourages a comprehensive learning environment. + Elixir is a collaborative tech community that encourages a + comprehensive learning environment.

- This supportive network promotes young enthusiasts to explore, learn and grow together in the dynamic tech - industry. + This supportive network promotes young enthusiasts to explore, learn + and grow together in the dynamic tech industry.

Date: Sat, 4 Jan 2025 23:35:52 +0530 Subject: [PATCH 2/7] fix: getRandomProblem function calling --- components/Grid.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Grid.tsx b/components/Grid.tsx index fa99564..1300131 100644 --- a/components/Grid.tsx +++ b/components/Grid.tsx @@ -25,10 +25,10 @@ const Grid = () => { // const url = "https://us-central1-neetcode-dd170.cloudfunctions.net/getProblemListFunction"; // const response = await axios.post(url, { data: {} }); // const data = response.data; - // const randomProblem = getRandomProblem(data.result); + const randomProblem = getRandomProblem(randomProblemConst); // console.log(randomProblem); - setRandomProblem(randomProblemConst); + setRandomProblem(randomProblem); } catch (error) { console.error("Error fetching problem list:", error); throw error; From c0e232941864fb892273efc2b47954a9873e5109 Mon Sep 17 00:00:00 2001 From: dewank07 Date: Sat, 4 Jan 2025 23:40:43 +0530 Subject: [PATCH 3/7] fix --- components/Grid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Grid.tsx b/components/Grid.tsx index 1300131..f097f2d 100644 --- a/components/Grid.tsx +++ b/components/Grid.tsx @@ -25,7 +25,7 @@ const Grid = () => { // const url = "https://us-central1-neetcode-dd170.cloudfunctions.net/getProblemListFunction"; // const response = await axios.post(url, { data: {} }); // const data = response.data; - const randomProblem = getRandomProblem(randomProblemConst); + const randomProblem = getRandomProblem(randomProblemConst.result); // console.log(randomProblem); setRandomProblem(randomProblem); From 81f10f1ef15e0d4007931e6b60693d9a0732a50b Mon Sep 17 00:00:00 2001 From: Dewank Rastogi <68022840+dewank07@users.noreply.github.com> Date: Thu, 29 May 2025 23:15:53 +0530 Subject: [PATCH 4/7] fix: minor bugs and build errors (#5) * Fixed "Our Events" acting as a link * Updated "Our Events" heading * Updated Readme.md (#10) * feat: added readme and fixed heading issue (#2) * chore: added aurora link at home section * jhvcd * Update tanveer's image extension * Update constants.ts * Fixed "Our Events" acting as a link * Updated "Our Events" heading * Updated Readme.md (#10) --------- Co-authored-by: Vikram-Singh0 Co-authored-by: VashuDev <129667408+vashukashyap@users.noreply.github.com> Co-authored-by: Vaibhav Tripathi Co-authored-by: arjun omray Co-authored-by: Vaibhav Tripathi <144479603+vaibhavxtripathi@users.noreply.github.com> * adding-link-chapter-section * change-Link-tag * fix: image optimization * Removed section tab which caused redundant links * fix: build error --------- Co-authored-by: Vaibhav Tripathi Co-authored-by: arjun omray Co-authored-by: Vaibhav Tripathi <144479603+vaibhavxtripathi@users.noreply.github.com> Co-authored-by: Vikram-Singh0 Co-authored-by: VashuDev <129667408+vashukashyap@users.noreply.github.com> Co-authored-by: Akash-1808 Co-authored-by: PrakharJain345 Co-authored-by: Rudraksh Tyagi <59254790+dragon-slayer875@users.noreply.github.com> --- README.md | 125 ++++++++++++++++++++- components/ChapterSection.tsx | 7 +- components/Experience.tsx | 27 +++-- components/Footer.tsx | 25 ++++- components/Hero.tsx | 3 +- components/PageHeading.tsx | 4 +- components/Testimonials.tsx | 24 +++- components/magicui/animated-shiny-text.tsx | 1 - components/ui/BentoGrid.tsx | 80 ++++++------- components/ui/InfiniteCards.tsx | 35 ++++-- components/ui/Pin.tsx | 8 +- data/index.ts | 2 +- image-1.png | Bin 0 -> 1597698 bytes image-2.png | Bin 0 -> 1965394 bytes image.png | Bin 0 -> 1600868 bytes layouts/EventsPageLayout.tsx | 2 +- layouts/MentorPageLayout.tsx | 2 +- layouts/NotesPageLayout.tsx | 2 +- layouts/TestimonialsPageLayout.tsx | 36 ++++-- 19 files changed, 283 insertions(+), 100 deletions(-) create mode 100644 image-1.png create mode 100644 image-2.png create mode 100644 image.png diff --git a/README.md b/README.md index e1f4ed0..15ae932 100644 --- a/README.md +++ b/README.md @@ -1 +1,124 @@ -Elixir website V3 + +# ElixirV3 + +Welcome to the **ElixirV3** repository, the third iteration of the Elixir website developed by the Elixir Tech Community. + +![alt text](image-2.png) + +## Table of Contents + +- [About](#about) +- [Features](#features) +- [Tech Stack](#tech-stack) +- [Getting Started](#getting-started) +- [Usage](#usage) +- [Contributing](#contributing) +- [License](#license) +- [Contact](#contact) + +## About + +**ElixirV3** is the latest version of the Elixir Tech Community's website, designed to provide resources, news, and updates to the community. + +## Features + +- **Responsive Design**: Optimized for various devices and screen sizes. +- **Community Resources**: Access to tutorials, event details, and notes. +- **Event Listings**: Stay updated with upcoming community events. +- **Member Profiles**: Showcase active community members. +- **Blog Section**: Read the latest posts from community leaders. + +## Tech Stack + +- **Frontend**: React.js, Next.js +- **Styling**: Tailwind CSS +- **State Management**: Redux +- **Backend**: Node.js, Express.js +- **Database**: MongoDB +- **Deployment**: Vercel + +## Getting Started + +To get a local copy up and running, follow these steps: + +### Prerequisites + +- **Node.js**: Ensure you have Node.js installed. [Download Node.js](https://nodejs.org/) + +### Installation + +1. **Clone the repository**: + + ```bash + git clone https://github.com/ElixirTechCommunity/ElixirV3.git + ``` + +2. **Navigate to the project directory**: + + ```bash + cd ElixirV3 + ``` + +3. **Install dependencies**: + + ```bash + npm install + ``` + +4. **Set up environment variables**: + + - Rename `.env.template` to `.env`: + + ```bash + cp .env.template .env + ``` + + - Update the `.env` file with your configuration. + +5. **Run the development server**: + + ```bash + npm run dev + ``` + +6. **Open your browser** and navigate to `http://localhost:3000` to see the application in action. + +## Usage + +- **Home Page**: Overview of the community and latest news. +- **Resources**: Browse tutorials and articles. +- **Events**: View and register for upcoming events. +- **Profile**: Manage your member profile. +- **Blog**: Read and comment on blog posts. + +## Contributing + +We welcome contributions from the community. To contribute: + +1. **Fork the repository**. + +2. **Create a new branch**: + + ```bash + git checkout -b + ``` + +3. **Commit your changes**: + + ```bash + git commit -m "Describe your changes" + ``` + +4. **Push your changes**: + + ```bash + git push origin + ``` + +5. **Open a pull request** and describe your changes. + +## License + +This project is licensed under the [MIT License](LICENSE). + + diff --git a/components/ChapterSection.tsx b/components/ChapterSection.tsx index a492126..aceb9e3 100644 --- a/components/ChapterSection.tsx +++ b/components/ChapterSection.tsx @@ -3,6 +3,7 @@ import { Chapters } from "@/data"; import { PinContainer } from "./ui/Pin"; import Image from "next/image"; +import Link from "next/link"; const ChapterSection = () => { return ( @@ -13,12 +14,14 @@ const ChapterSection = () => {
{Chapters.map((item, idx) => (
- + +
+

{item.title}

{item.des} @@ -34,7 +37,9 @@ const ChapterSection = () => {
+
+ ))}
diff --git a/components/Experience.tsx b/components/Experience.tsx index c8683c1..58ecb93 100644 --- a/components/Experience.tsx +++ b/components/Experience.tsx @@ -2,21 +2,22 @@ import React from "react"; import { workExperience } from "@/data"; import { Button } from "./ui/MovingBorders"; +import Image from "next/image"; const Experience = () => { return ( -
-

- My work experience +
+

+ My work experience

-
+
{workExperience.map((card) => (