Skip to content

Commit 7f59d07

Browse files
committed
changes in landing page
1 parent 044ce90 commit 7f59d07

File tree

2 files changed

+39
-27
lines changed

2 files changed

+39
-27
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"react-dom": "18.2.0",
2727
"react-icons": "^4.7.1",
2828
"react-redux": "^8.0.5",
29+
"react-responsive-carousel": "^3.2.23",
2930
"react-router": "^6.6.0",
3031
"react-router-dom": "^6.6.0",
3132
"react-scroll": "^1.8.9",

pages/index.js

+38-27
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
1-
import Head from 'next/head'
2-
import Image from 'next/image'
3-
import { Inter } from '@next/font/google'
4-
import styles from '../styles/Home.module.css'
5-
import Signup from './signup'
6-
import Signin from './signin'
7-
import Navbar from "../components/navbar"
81

9-
const inter = Inter({ subsets: ['latin'] })
2+
import { Box, Image } from "@chakra-ui/react";
3+
import { Carousel } from "react-responsive-carousel";
4+
import "react-responsive-carousel/lib/styles/carousel.min.css";
105

116
export default function Home() {
7+
8+
const slides = [
9+
{
10+
id: "1",
11+
image: "https://www.unicef.org/india/sites/unicef.org.india/files/styles/hero_extended/public/UN0272155.jpg?itok=twDTRX5Q"
12+
},
13+
{
14+
id: "2",
15+
image: "https://www.teachforindia.org/assets/fellowship-desktop.png"
16+
},
17+
{
18+
id: "3",
19+
image: "https://www.teachforindia.org/assets/Annual_Report_website.png"
20+
},
21+
{
22+
id: "4",
23+
image: "https://www.teachforindia.org/assets/website-carousel-alumni.png"
24+
},
25+
{
26+
id: "5",
27+
image: "https://www.teachforindia.org/assets/website-carousel-1.png"
28+
}
29+
];
30+
1231
return (
32+
<Carousel infiniteLoop>
33+
{slides.map((slide) => {
34+
return (
35+
<Box key={slide.id}>
36+
<Image src={slide.image} height="500px" width="200px" />
37+
</Box>
38+
);
39+
})}
40+
</Carousel>
41+
);
42+
};
1343

14-
<div >
15-
<div>
16-
<img src="https://www.teachforindia.org/assets/fellowship-desktop.png" alt="image"></img>
17-
</div>
18-
<div>
19-
<h2>Our Mission</h2>
20-
<h3>We believe leadership for education is the solution. We are building a movement of leaders who will eliminate educational inequity in India using technology. </h3>
21-
</div>
22-
<div>
23-
<h2>The Fellowship</h2>
24-
<h3>We are providing an opportunity for the brightest and most promising youth, from the best universities and workplaces, to serve as full-time teachers to children from low-income communities in under-resourced schools. Through two years of teaching and working with key education stakeholders, our Fellows are exposed to the grassroots realities of education system and cultivate the knowledge, skills, and mindsets needed to attain positions of leadership in and beyond education, working collectively to build a vibrant movement for educational equity across the globe. </h3>
25-
</div>
26-
<div>
27-
<h2>Join The Movement</h2>
28-
<h3>The pandemic has hit the youth in poor families the most. Now more than ever we need to solve the education crisis. This will lead to a safer, happier, more prosperous socirty for all of us. Getting there will take a movement of all of us, for all our youth. Join the movement.</h3>
29-
</div>
30-
</div>
3144

32-
)
33-
}

0 commit comments

Comments
 (0)