Skip to content

Commit 38d2202

Browse files
Merge pull request #28 from WRCRoboticsClub/dev-website-2.0
edited the testimonials and the banner of the hero section
2 parents f36c2fe + 669f4f9 commit 38d2202

9 files changed

Lines changed: 193 additions & 32 deletions

File tree

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"glob-parent": "^5.1.2",
2828
"globby": "^11.0.0",
2929
"isomorphic-unfetch": "^3.0.0",
30+
"lottie-react": "^2.4.1",
3031
"next": "^12.3.4",
3132
"next-compose-plugins": "^2.2.1",
3233
"next-optimized-images": "^2.6.2",

src/assets/robot-hero.json

Lines changed: 2 additions & 0 deletions
Large diffs are not rendered by default.

src/components/KeyFeature/key-feature.data.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@ export const data = [
99
imgSrc: Performance,
1010
altText: "Interactive Training",
1111
title: "Interactive Training",
12-
text: "55+ interactive training modules",
12+
text: "550+ interactive training modules",
1313
},
1414
{
1515
id: 2,
1616
imgSrc: Partnership,
1717
altText: "Students reached",
1818
title: "Students reached",
19-
text: "More than 10,000 students",
19+
text: "More than 50,000 students",
2020
},
2121
{
2222
id: 3,
2323
imgSrc: Subscription,
2424
altText: "Competition",
2525
title: "Competition",
26-
text: "55+ competitions",
26+
text: "100+ competitions",
2727
},
2828
{
2929
id: 4,
3030
imgSrc: Support,
3131
altText: "Awards",
3232
title: "Awards",
33-
text: "7+ honors and awards",
33+
text: "20+ honors and awards",
3434
},
3535
];

src/components/KeyFeature/key-feature.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default function KeyFeature() {
1212
<SectionHeader
1313
title="Achievements"
1414
/>
15-
1615
<Grid sx={styles.grid}>
1716
{data.map((item) => (
1817
<FeatureCardColumn

src/components/Testimonials.js

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/** @jsxImportSource @theme-ui/core */
2+
import { jsx } from "theme-ui";
3+
import { Container } from "theme-ui";
4+
import SectionHeader from "./section-header";
5+
import Carousel from "react-multi-carousel";
6+
import "react-multi-carousel/lib/styles.css";
7+
import { data } from "./testimonials.data";
8+
9+
const responsive = {
10+
desktop: {
11+
breakpoint: { max: 3000, min: 1024 },
12+
items: 2,
13+
},
14+
tablet: {
15+
breakpoint: { max: 1024, min: 640 },
16+
items: 1,
17+
},
18+
mobile: {
19+
breakpoint: { max: 640, min: 0 },
20+
items: 1,
21+
},
22+
};
23+
24+
export default function Testimonials() {
25+
return (
26+
<section sx={{ variant: "section.Testimonials" }} id="testimonials">
27+
<Container sx={styles.container}>
28+
<SectionHeader title="Testimonials" />
29+
<Carousel
30+
responsive={responsive}
31+
infinite={true}
32+
autoPlay={true}
33+
autoPlaySpeed={3000}
34+
keyBoardControl={true}
35+
showDots={false}
36+
arrows={false}
37+
containerClass="carousel-container"
38+
itemClass="carousel-item-padding-40-px"
39+
>
40+
{data.map((person) => (
41+
<div
42+
key={person.id}
43+
sx={{
44+
textAlign: "center",
45+
px: 3,
46+
py: 4,
47+
borderRadius: 8,
48+
boxShadow: "0 4px 8px rgba(0,0,0,0.1)",
49+
bg: "background",
50+
mx: 2,
51+
}}
52+
>
53+
54+
<h3 sx={{ fontSize: 3, mb: 1 }}>{person.name}</h3>
55+
<p sx={{ fontStyle: "italic", color: "textMuted", mb: 2 }}>
56+
{person.role}
57+
</p>
58+
<p sx={{ fontSize: 2, color: "text" }}>{person.text}</p>
59+
</div>
60+
))}
61+
</Carousel>
62+
</Container>
63+
</section>
64+
65+
66+
);
67+
}
68+
69+
70+
const styles = {
71+
container: {
72+
marginTop: "80px",
73+
},
74+
};
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
export const data = [
2+
{
3+
id: 1,
4+
name: "Alija Bujel",
5+
role: "Former Executive Head, Robotics Club",
6+
text: "Being a part of the Robotics Club was the most transformative experience of my college life.",
7+
8+
},
9+
{
10+
id: 2,
11+
name: "Sandesh Ghorshai",
12+
role: "Executive Head",
13+
text: "The competitions and workshops were incredibly fun and insightful. Highly recommended!",
14+
15+
},
16+
{
17+
id: 3,
18+
name: "Sumit Sigdel",
19+
role: "Vice Executive Head",
20+
text: "It's amazing to see students push boundaries with creativity and tech at WRC Robotics.",
21+
22+
},
23+
{
24+
id: 4,
25+
name: "Prashant Bhandari",
26+
role: "Executive Member",
27+
text: "Must amazing place to learn and grow in the field of robotics. The team is very supportive and knowledgeable.",
28+
29+
},
30+
31+
];
32+

src/pages/index.js

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,72 @@
11
/** @jsxImportSource @theme-ui/core */
2-
import ShapeLeft from "../assets/shape-left.png";
3-
import ShapeRight from "../assets/shape-right.png";
4-
import { Container, Box, Heading, Text, Image, Button } from "theme-ui";
5-
import BannerImg from "../assets/homepage_photo.jpg";
2+
import { Container, Box, Heading, Text, Button } from "theme-ui";
3+
import Lottie from "lottie-react";
4+
import RobotAnimation from "../assets/robot-hero.json";
65
import KeyFeature from "../components/KeyFeature/key-feature";
76
import Services from "../components/services/service";
7+
import Testimonials from "../components/Testimonials";
88

99
export default function Home() {
1010
return (
1111
<section sx={styles.banner} id="home">
1212
<Container sx={styles.banner.container}>
13+
{/* Left - Content */}
1314
<Box sx={styles.banner.contentBox}>
1415
<Heading as="h4" variant="heroPrimary">
15-
Robotics Club, Pashchimanchal Campus, Lamachaur, Pokhara.
16+
Robotics Club, Pashchimanchal Campus, Pokhara.
1617
</Heading>
1718
<Text as="p" variant="heroSecondary">
18-
We are a team of multiple disciples teamed up to continue and
19-
improve the culture of innovation, creative learning and teaching
20-
with extracurricular activities around campus.
19+
We are a team of passionate students working to promote innovation, creative learning,
20+
and technical growth through engaging activities beyond the classroom.
2121
</Text>
2222
<Button variant="primary">Explore</Button>
2323
</Box>
24-
<Box sx={styles.banner.imageBox}>
25-
<Image src={BannerImg.src} alt="banner" />
24+
25+
{/* Right - Animation */}
26+
<Box sx={styles.banner.animationBox}>
27+
<Lottie
28+
animationData={RobotAnimation}
29+
loop
30+
style={{ width: "auto", maxWidth: "20000px", height: "auto" }}
31+
/>
2632
</Box>
2733
</Container>
2834
<KeyFeature />
29-
<Services />
35+
{/* <Services /> */}
36+
< Testimonials />
3037
</section>
3138
);
3239
}
3340

3441
const styles = {
3542
banner: {
36-
pt: ["140px", "145px", "155px", "170px", null, null, "180px", "215px"],
43+
pt: ["120px", "130px", "140px", "150px", "180px"],
3744
pb: [2, null, 0, null, 2, 0, null, 5],
3845
position: "relative",
3946
zIndex: 2,
4047

4148
container: {
42-
minHeight: "inherit",
4349
display: "flex",
44-
flexDirection: "row",
45-
justifyContent: "center",
50+
flexDirection: ["column", "column", "row"],
51+
justifyContent: "space-between",
52+
alignItems: "center",
53+
px: [3, 4, 5],
54+
gap: [4, 5, 6],
4655
},
56+
4757
contentBox: {
48-
width: ["100%", "90%", "535px", null, "57%", "60%", "68%", "60%"],
49-
mx: "auto",
50-
textAlign: "center",
51-
mb: ["40px", null, null, null, null, 7],
58+
flex: "1",
59+
textAlign: ["center", "center", "center"],
60+
maxWidth: ["100%", "90%", "50%"],
61+
mb: ["30px", "40px", 0],
5262
},
53-
imageBox: {
63+
64+
animationBox: {
65+
flex: "1",
66+
display: "flex",
5467
justifyContent: "center",
55-
textAlign: "center",
56-
display: "inline-flex",
57-
mb: [0, null, -6, null, null, "-40px", null, -3],
58-
img: {
59-
position: "relative",
60-
height: [200, "auto"],
61-
},
68+
alignItems: "center",
69+
maxWidth: ["100%", "100%", "50%"],
6270
},
6371
},
6472
};

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2937,6 +2937,18 @@ loose-envify@^1.1.0, loose-envify@^1.4.0:
29372937
dependencies:
29382938
js-tokens "^3.0.0 || ^4.0.0"
29392939

2940+
lottie-react@^2.4.1:
2941+
version "2.4.1"
2942+
resolved "https://registry.npmjs.org/lottie-react/-/lottie-react-2.4.1.tgz"
2943+
integrity sha512-LQrH7jlkigIIv++wIyrOYFLHSKQpEY4zehPicL9bQsrt1rnoKRYCYgpCUe5maqylNtacy58/sQDZTkwMcTRxZw==
2944+
dependencies:
2945+
lottie-web "^5.10.2"
2946+
2947+
lottie-web@^5.10.2:
2948+
version "5.13.0"
2949+
resolved "https://registry.npmjs.org/lottie-web/-/lottie-web-5.13.0.tgz"
2950+
integrity sha512-+gfBXl6sxXMPe8tKQm7qzLnUy5DUPJPKIyRHwtpCpyUEYjHYRJC/5gjUvdkuO2c3JllrPtHXH5UJJK8LRYl5yQ==
2951+
29402952
lru-cache@^6.0.0:
29412953
version "6.0.0"
29422954
resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz"

0 commit comments

Comments
 (0)