Skip to content

Commit

Permalink
changed navbar commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Anshul1563 committed Apr 3, 2024
1 parent a061021 commit 59dd17a
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 44 deletions.
4 changes: 2 additions & 2 deletions components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const routes = [
{ title: 'Members', route: `${process.env.ASSET_PREFIX}/members` },
{ title: 'Projects', route: `${process.env.ASSET_PREFIX}/projects` },
{ title: 'Publications', route: `${process.env.ASSET_PREFIX}/publications` },
{ title: 'Our History', route: `${process.env.ASSET_PREFIX}/about_us` },
{ title: 'Our History', route: `${process.env.ASSET_PREFIX}/history` },
{
title: 'Events',
route: `${process.env.ASSET_PREFIX}/events`,
Expand All @@ -41,7 +41,7 @@ const routes = [
{ title: 'RoadShow', route: `${process.env.ASSET_PREFIX}/roadshow` },
],
},
{ title: 'Join Us', route: `${process.env.ASSET_PREFIX}/join_us` },
// { title: 'Join Us', route: `${process.env.ASSET_PREFIX}/join_us` },
{ title: 'Articles', route: `${process.env.ASSET_PREFIX}/articles` },
];

Expand Down
23 changes: 0 additions & 23 deletions pages/alt_home.js

This file was deleted.

38 changes: 38 additions & 0 deletions pages/alt_home.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import LayoutAlt from '../components/LayoutAlt';
import AboutUs from '../components/index/AboutUs';
import Hero from '../components/index/Hero';
import ProfessorsInfo from '../components/index/Professors';
import CardCarousel from './CardCarousel';
import Projects_spotlight from './spotlight';
import projectsData from '../public/data/projects_common.json';

const cardData = projectsData[''].projects;



function Home() {
return (
<LayoutAlt title={'PIL | Home'} active={'Projects'} search={false}>
<div className="bg-lab-bg text-white">
{/* HERO SECTION */}
<Hero />

{/* ABOUT US SECTION */}
<AboutUs />

{/* PROFESSOR INFO */}
<ProfessorsInfo />
{/* <p
id="spotlight_title"
className=" text-center text-5xl text-[#8bc34a]"
>
SPOTLIGHT
</p>
<Projects_spotlight />
<CardCarousel cardData={cardData} /> */}
</div>
</LayoutAlt>
);
}

export default Home;
30 changes: 11 additions & 19 deletions pages/index.js → pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
// import Layout from '../components/Layout';

// // project spotlight
// import Projects_spotlight from './spotlight';
// import CardCarousel from './CardCarousel';
// import projectsData from '../public/data/projects_common.json';

// const cardData = projectsData[''].projects;

// const mainTitleStyle = {
// fontFamily: 'Poppins, sans-serif',
Expand All @@ -45,11 +41,7 @@
// color: '#8bc34a',
// };

// const bodyHeadingStyle = {
// fontSize: '3rem',
// textAlign: 'center',
// color: '#8bc34a',
// };


// const details = {
// display: 'flex',
Expand Down Expand Up @@ -270,12 +262,8 @@
// </Dialog>

// <div>
// <p id="spotlight_title" style={bodyHeadingStyle}>
// SPOTLIGHT
// </p>
// {/* <Projects_spotlight /> */}
// <CardCarousel cardData={cardData} />
// </div>

// </div>

// </Layout>

Expand All @@ -295,9 +283,13 @@

// export default Index;


import Home from "./alt_home"
import Home from './alt_home';

export default function MyHome() {
return <Home />
}
return (
<>
<Home />

</>
);
}
30 changes: 30 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}

0 comments on commit 59dd17a

Please sign in to comment.