Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
gmartincor committed Nov 1, 2024
1 parent 6c7c57f commit 657308c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 10 deletions.
45 changes: 37 additions & 8 deletions app/assets/stylesheets/application/member-card.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,35 @@
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: stretch;
gap: 20px;


@media(max-width: $screen-sm-min) {
display: block;
}
}

.card-wrapper {
width: 48%;

@media (max-width: $screen-sm-min) {
width: 100%;
}
}

.to-member-card {
& {
margin: 16px 0;
width: 100%;
max-width: 600px;
height: 178px;
min-height: 178px;
background-color: white;
box-shadow: 0 0 3px $palette-grey;
display: inline-block;
display: flex;
flex-direction: column;
height: 100%;
border-radius: 4px;

@media(max-width: $screen-sm-min) {
Expand Down Expand Up @@ -50,13 +73,17 @@
&__body {
& {
padding: 16px 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;

}

&__description {
margin-bottom: 10px;
color: #666;
font-size: 15px;
height: 44px;

@media(max-width: $screen-sm-min) {
height: auto;
Expand All @@ -65,6 +92,7 @@

&__items {
display: flex;
flex-wrap: wrap;

@media(max-width: $screen-sm-min) {
display: block;
Expand All @@ -73,11 +101,12 @@
}

&__item {
& {
margin-right: 20px;
font-size: 14px;
color: grey;
}
margin-right: 20px;
font-size: 14px;
color: grey;
overflow-wrap: break-word;
white-space: normal;
word-break: break-word;

a {
color: grey;
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/_member_card.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="col-lg-6 col-sm-12">
<div class="card-wrapper">
<div class="to-member-card">
<div class="to-member-card__header">
<div class="to-member-card__header__avatar"><%= image_tag avatar_url(member.user, 48) %></div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
</div>

<div class="row">
<div class="card-container to-member-cards">
<%= render partial: 'member_card', collection: @member_view_models, as: :member %>
</div>

Expand Down

0 comments on commit 657308c

Please sign in to comment.