Skip to content

Commit

Permalink
chnaged about us
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush4345 committed Feb 28, 2024
1 parent 567451e commit 2f6dbef
Show file tree
Hide file tree
Showing 13 changed files with 430 additions and 56 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@next/mdx": "^14.0.4",
"@radix-ui/react-icons": "^1.3.0",
"@tailwindcss/typography": "^0.5.10",
"@tsparticles/basic": "^3.3.0",
"@tsparticles/react": "^3.0.0",
"@types/mdx": "^2.0.10",
"autoprefixer": "10.4.14",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

234 changes: 225 additions & 9 deletions public/blog-response.json

Large diffs are not rendered by default.

90 changes: 81 additions & 9 deletions public/event-response.json

Large diffs are not rendered by default.

101 changes: 88 additions & 13 deletions public/project-response.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function fetchDataAndSave() {
const projectresponse = await fetch('https://tetragram.codered.cloud/api/v2/pages/?type=projects.ProjectsPage&fields=*');
const projectdata = await projectresponse.json();
fs.writeFileSync('./public/project-response.json', JSON.stringify(projectdata, null, 2));
console.log('API response saved to api-response.json');
console.log('API response saved to public folder!');
} catch (error) {
console.error('Error fetching data:', error);
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ const Navbar = () => {
Projects
</Link>
</li>
<li className={styles.nav__item}>
{/* <li className={styles.nav__item}>
<Link
href="/teams"
className={styles.nav__link}
onClick={closeMobileMenu}
>
Team
</Link>
</li>
</li> */}
</ul>
<div className={styles.nav__close} id="nav-close" onClick={toggleMenu}>
<IoClose />
Expand All @@ -83,11 +83,11 @@ const Navbar = () => {
Home
</Link>
</li>
<li className={styles.nav__item}>
{/* <li className={styles.nav__item}>
<Link href="/teams" className={styles.nav__link} onClick={closeMobileMenu}>
Team
</Link>
</li>
</li> */}
<li className={styles.nav__item}>
<Link href="/blogs" className={styles.nav__link} onClick={closeMobileMenu}>
Blogs
Expand Down
4 changes: 3 additions & 1 deletion src/components/ProjectsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import ReactPaginate from 'react-paginate';
import './ProjectsPage.css'; // Import your CSS for styling
import { IoIosArrowForward } from "react-icons/io";
import { IoIosArrowBack } from "react-icons/io";
import { useMediaQuery } from "react-responsive";

const ProjectsPage = ({ projects }) => {
const [currentPage, setCurrentPage] = useState(0);
const projectsPerPage = 6;
const bigScreen = useMediaQuery({ minWidth: "1536px" });
const projectsPerPage = bigScreen ? 8 : 6;

const handlePageClick = (data) => {
setCurrentPage(data.selected);
Expand Down
23 changes: 13 additions & 10 deletions src/components/about.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions src/components/blog/blogList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import jsonData from '../../../public/blog-response.json';
import ReactPaginate from 'react-paginate';
import { IoIosArrowForward } from "react-icons/io";
import { IoIosArrowBack } from "react-icons/io";
import { useMediaQuery } from "react-responsive";

const BlogList = () => {
const [blogs, setBlogs] = useState([]);
const [currentPage, setCurrentPage] = useState(0);
const blogsPerPage = 6;
const bigScreen = useMediaQuery({ minWidth: "1536px" });
const blogsPerPage = bigScreen ? 8 : 6;

useEffect(() => {
const fetchData = async () => {
Expand All @@ -33,9 +35,6 @@ const BlogList = () => {
const currentBlogs = blogs.slice(indexOfFirstProject, indexOfLastProject);
const pageCount = Math.ceil(blogs.length / 6);




// Function to handle page change
const handlePageChange = (newPage) => {
setCurrentPage(newPage);
Expand Down
4 changes: 3 additions & 1 deletion src/components/event/eventList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import jsonData from '../../../public/event-response.json'
import ReactPaginate from 'react-paginate';
import { IoIosArrowForward } from "react-icons/io";
import { IoIosArrowBack } from "react-icons/io";
import { useMediaQuery } from "react-responsive";

const EventList = () => {
const [events, setEvents] = useState([]);
const [currentPage, setCurrentPage] = useState(0);
const eventsPerPage = 6;
const bigScreen = useMediaQuery({ minWidth: "1536px" });
const eventsPerPage = bigScreen ? 8 : 6;

useEffect(() => {
const fetchData = async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ export default function Footer() {
class="mb-4 flex font-semibold uppercase justify-start">
Information
</h6>
<p class="mb-4">
{/* <p class="mb-4">
<a href="/teams" class=" text-neutral-200"
>Our Team</a
>
</p>
</p> */}
<p class="mb-4">
<a href="/projects" class=" text-neutral-200"
>Projects</a
Expand Down
5 changes: 3 additions & 2 deletions src/components/particles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { useEffect, useMemo, useState } from "react";
import Particles, { initParticlesEngine } from "@tsparticles/react";
import { loadFull } from "tsparticles";
import { loadBasic } from "@tsparticles/basic";

export default function ParticlesAnimation() {

Expand All @@ -15,8 +16,8 @@ export default function ParticlesAnimation() {
// starting from v2 you can add only the features you need reducing the bundle size
//await loadAll(engine);
//await loadFull(engine);
await loadFull(engine);
//await loadBasic(engine);
// await loadFull(engine);
await loadBasic(engine);
}).then(() => {
setInit(true);
});
Expand Down

0 comments on commit 2f6dbef

Please sign in to comment.