Skip to content

Commit

Permalink
refactor: committe-card-background
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jan 7, 2024
1 parent 88cd352 commit 7a64887
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
Binary file removed src/components/Homepage/Committee/Socult.jpg
Binary file not shown.
Binary file removed src/components/Homepage/Committee/Sports.jpg
Binary file not shown.
Binary file not shown.
Binary file removed src/components/Homepage/Committee/Technology.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion src/pages/Homepage/Committee/CommitteeCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export default function CommitteeCard({ data }) {
<div className={Styles.content}>
<h2>{data.number}</h2>
<h3>{data.heading}</h3>
<img src={data.background} />
{/* <p>{data.description}</p> */}
<img src={`/data/media/images/committee/${data.photo}`} />
</div>
</div>
</div>
Expand Down
10 changes: 6 additions & 4 deletions src/pages/Homepage/Committee/CommitteesHome.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
import React from "react";
import Styles from "../../../styles/pages/home.module.css";
import CommitteeCard from "./CommitteeCard";

export default function CommitteesHome() {
const data = [
{
number: 1,
heading: "Sports and Games",
description: `Lorem ipsum dolor sit amet consectetur adipisicing elit. Labore, totam velit? Iure nemo labore inventore?`,
route: "/committees/sports",
photo: "Sports.jpg",
background: "/data/media/images/committee/Sports.jpg",
},
{
number: 2,
heading: "Social and Cultural",
description: `Lorem ipsum dolor sit amet consectetur adipisicing elit. Labore, totam velit? Iure nemo labore inventore?`,
route: "/committees/socult",
photo: "Socult.jpg",
background: "/data/media/images/committee/Socult.jpg",
},
{
number: 3,
heading: "Technology",
description: `Lorem ipsum dolor sit amet consectetur adipisicing elit. Labore, totam velit? Iure nemo labore inventore?`,
route: "/committees/tech",
photo: "Technology.jpg",
background: "/data/media/images/committee/Technology.jpg",
},
{
number: 4,
heading: "Students' Welfare",
description: `Lorem ipsum dolor sit amet consectetur adipisicing elit. Labore, totam velit? Iure nemo labore inventore?`,
route: "/committees/welfare",
photo: "StudentWelfare.jpg",
background: "/data/media/images/committee/StudentsWelfare.jpg",
},
];

return (
<div data-aos="zoom-in-up" className={Styles.container}>
<div className={Styles.committeesSection}>
Expand Down

0 comments on commit 7a64887

Please sign in to comment.