Skip to content

Commit

Permalink
Merge pull request #110 from tsg-iitkgp/committee
Browse files Browse the repository at this point in the history
Added image to contacts card
  • Loading branch information
proffapt authored Jan 7, 2024
2 parents 289be9e + 7a64887 commit 90be2c9
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 0 deletions.
Binary file added public/data/media/images/committee/Socult.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/data/media/images/committee/Sports.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/pages/Homepage/Committee/CommitteeCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ 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> */}
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/Homepage/Committee/CommitteesHome.js
Original file line number Diff line number Diff line change
@@ -1,33 +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",
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",
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",
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",
background: "/data/media/images/committee/StudentsWelfare.jpg",
},
];

return (
<div data-aos="zoom-in-up" className={Styles.container}>
<div className={Styles.committeesSection}>
Expand Down
15 changes: 15 additions & 0 deletions src/pages/Homepage/Committee/committee-card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@
}

.card .box .content h3 {
position: absolute;
font-size: 1.8rem;
font-weight: 500;
top: 45%;
left: 10%;
right: 10%;
color: #fff;
z-index: 1;
transition: 0.5s;
Expand Down Expand Up @@ -95,3 +100,13 @@
min-width: 500px;
}
}

.card .box .content img{
/* height: 20px;
width: 20px; */
size: cover;
height: 450px;
width: 460px;
opacity: 0.4;
z-index: -1;
}

0 comments on commit 90be2c9

Please sign in to comment.