Skip to content

Commit

Permalink
Agent profile css changes
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushjindal committed May 24, 2024
1 parent bb3015e commit 6e1501d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions blocks/agent-profile/agent-profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
padding: 0 1rem;
}

main .section.agent-profile-container .agent-profile-wrapper {
word-break: break-word;
}

.agent-profile.block .profile-image img {
width: 9.375rem;
height: 11.875rem;
}

.agent-profile.block .profile-content .contact-me {
margin-top: 1.5rem;
margin-top: 1.5rem;
display: none;
}

.agent-profile.block .profile-content {
Expand Down Expand Up @@ -45,6 +50,7 @@
font-size: var(--body-font-size-xs);
color: var(--black);
text-transform: lowercase;
word-wrap: break-word;
}

.agent-profile.block .profile-content .contact-me a {
Expand Down Expand Up @@ -75,6 +81,12 @@
margin-bottom: 0.25rem;
}

@media (min-width: 600px) {
.agent-profile.block .profile-content .contact-me {
display: block;
}
}

@media (min-width: 1200px) {
main .section.agent-profile-container {
position: relative;
Expand All @@ -89,7 +101,6 @@
bottom: 4.625rem;
padding: 1.875rem 1.875rem 0;
z-index: 1;
word-break: break-word;
background-color: var(--white);
}

Expand Down
2 changes: 1 addition & 1 deletion blocks/agent-profile/agent-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const getEmailDiv = () => {

const getImageDiv = () => {
const agentPhoto = getMetadata('photo');
return div({ class: 'profile-image' }, img({ src: agentPhoto }));
return div({ class: 'profile-image' }, img({ src: agentPhoto, alt: getMetadata('name'), loading: 'lazy' }));
};

const getSocialDiv = () => {
Expand Down

0 comments on commit 6e1501d

Please sign in to comment.