Skip to content

Commit

Permalink
Merge pull request #44 from ANovaBerkeley/styling
Browse files Browse the repository at this point in the history
Styling
  • Loading branch information
cidneyweng authored Apr 5, 2021
2 parents 8a3ab2d + 024c3a2 commit aaaec02
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
14 changes: 8 additions & 6 deletions client/src/components/Roster.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ const Roster = props => {
));

return (
<div className="container">
<h1 style={{ height: 'inherit' }}>Mentors</h1>
<div className="containerGrid">{mentorRosterCards}</div>
<h1 style={{ marginTop: '30px', height: 'inherit' }}>Students</h1>
<div className="containerGrid">{studentRosterCards}</div>
</div>
<body>
<div className="container">
<h1 style={{ height: 'inherit' }}>Mentors</h1>
<div className="containerGrid">{mentorRosterCards}</div>
<h1 style={{ marginTop: '30px', height: 'inherit' }}>Students</h1>
<div className="containerGrid">{studentRosterCards}</div>
</div>
</body>
);
};

Expand Down
9 changes: 7 additions & 2 deletions client/src/stylesheets/Roster.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
}

.containerGrid {
max-width: calc(100vw - 200px);
background-color: #e6f4fc;
display: grid;
grid-template-columns: repeat(4, 1fr);
Expand Down Expand Up @@ -73,11 +74,15 @@ img {

.ant-card-cover {
display: block;
width: 50%;
width: 40%;
align-content: center;
margin-left: auto;
margin-right: auto;
padding-top: 10px;
padding-top: 40px;
}

.ant-card-body p {
overflow-wrap: anywhere;
}

.error {
Expand Down

0 comments on commit aaaec02

Please sign in to comment.