update style for committees

This commit is contained in:
JilianaTiu 2022-11-08 00:08:28 -08:00
parent 464c27442a
commit 786ff4de76
3 changed files with 58 additions and 10 deletions

View file

@ -232,7 +232,7 @@ a:hover {
.cards { .cards {
display: flex; display: flex;
justify-content: space-around; justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;
} }
@ -273,11 +273,59 @@ a:hover {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
/* .involve-card > img { .committees {
width: 20em; border-radius: 50% 50% 0 0 / 4rem;
margin-bottom: 1em; transform: translateY(-4rem);
}
.committee-card {
padding: 1.75em 3em;
border: var(--main) solid 0.37em;
border-radius: 1.5em;
color: var(--secondary);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin: 1em;
background-color: var(--main);
background-blend-mode: multiply;
background-position: center;
background-size: cover;
width: 30em;
}
.committee-img {
display: inline-block;
margin: 20px;
overflow: hidden;
border-radius: 0.2em; border-radius: 0.2em;
} */ width: 10;
}
.committee-card img {
display: block;
transition: transform 0.4s;
width: 20em;
border-radius: 0.2em;
}
.committee-card:hover img {
transform: scale(1.1);
transform-origin: 50% 50%;
}
.committee-title {
font-size: 3em;
color: var(--secondary);
margin-bottom: 0.5em;
text-align: center;
}
.committee-description {
font-size: 1.25em;
font-weight: normal;
}
.links { .links {
font-size: 1.5em; font-size: 1.5em;

View file

@ -30,7 +30,7 @@ class Main extends React.Component {
"Interested in gaining experience in event planning and development, meeting new friends, and learning more about IEEE? Join one of our committees as an IEEEntern!", "Interested in gaining experience in event planning and development, meeting new friends, and learning more about IEEE? Join one of our committees as an IEEEntern!",
]} ]}
></DefaultSection> ></DefaultSection>
<DefaultSection className={"our-comms"} title="Our Committees"> <DefaultSection className={"committees"} title="Our Committees">
<div className="cards"> <div className="cards">
<CommitteeBox <CommitteeBox
boxTitle="Technical Committee" boxTitle="Technical Committee"

View file

@ -15,10 +15,10 @@ export default class CommitteeBox extends Component<CommitteeBoxProps> {
public render() { public render() {
return ( return (
<div className="committee-card"> <div className="committee-card"
<div className="committee-title">{this.props.boxTitle}</div> style = {{ backgroundImage: `url(${this.props.image})` }}>
<div className="committee-img"> <div className="committee-title">
<img src={this.props.image}></img> {this.props.boxTitle}
</div> </div>
<div className="committee-description"> <div className="committee-description">
{this.props.description} {this.props.description}