Skip to content

Commit

Permalink
Merge branch 'main' into design4
Browse files Browse the repository at this point in the history
  • Loading branch information
RitwikSrivastava authored Aug 13, 2024
2 parents 96ba4fa + 5f01134 commit d1e4381
Show file tree
Hide file tree
Showing 10 changed files with 564 additions and 107 deletions.
35 changes: 0 additions & 35 deletions blocks/agent-address/agent-address.css

This file was deleted.

22 changes: 0 additions & 22 deletions blocks/agent-address/agent-address.js

This file was deleted.

193 changes: 149 additions & 44 deletions blocks/agent-profile/agent-profile.css
Original file line number Diff line number Diff line change
@@ -1,54 +1,85 @@
@import url('design-4.css');
@import url('./design-1.css');
@import url('./design-4.css');

.agent-profile.block {
display: flex;
padding: 0 1rem;
gap: 3rem;
}

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;
display: none;
.agent-profile.block .profile-details {
display: flex;
}

.agent-profile.block .profile-content {
padding-left: 1.5rem;
font-size: var(--body-font-size-s);
}

.agent-profile.block .profile-content .name {
.agent-profile.block .profile-content > div {
margin-bottom: 0.5rem;
}

.agent-profile.block .profile-content h1 {
font-size: var(--body-font-size-xl);
line-height: var(--line-height-m);
margin-bottom: 0.5rem;
font-weight: var(--font-weight-bold);
}

.agent-profile.block .profile-content .designation,
.agent-profile.block .profile-content .license-number {
font-size: var(--body-font-size-xs);
text-transform: uppercase;
margin-bottom: 0.25rem;
}

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

.agent-profile.block .profile-image img {
width: 9.375rem;
aspect-ratio: 1 / 1.5;
object-fit: cover;
}

.agent-profile.block .profile-content .contact-me {
display: none;
}

.agent-profile.block .lang-prof-accred ul {
margin-top: 1rem;
}

.agent-profile.block .profile-content .social ul {
display: flex;
margin-top: 1rem;
opacity: .5;
}

.agent-profile.block .lang-prof-accred li {
list-style: outside;
margin-left: 1rem;
}

.agent-profile.block .profile-content .phone li {
margin-bottom: 0.5rem;
}

.agent-profile.block .profile-content .social li {
margin-right: 0.5rem;
}

.agent-profile.block .address a {
border: 1px solid var(--primary-color);
color: var(--primary-color);
font-weight: var(--font-weight-bold);
letter-spacing: var(--letter-spacing-m);
text-transform: uppercase;
padding: 0.5rem 1rem;
text-decoration: none;
font-size: var(--body-font-size-xs);
}

.agent-profile.block .profile-content .email a,
.agent-profile.block .profile-content .website a {
line-height: var(--line-height-xs);
font-size: var(--body-font-size-xs);
color: var(--black);
text-transform: lowercase;
Expand All @@ -65,27 +96,106 @@ main .section.agent-profile-container .agent-profile-wrapper {
text-decoration: none;
}

.agent-profile.block .profile-content .contact-me a:hover {
.agent-profile.block .address a:hover {
color: var(--primary-light);
background-color: var(--primary-color);
}

.agent-profile.block .profile-content .website,
.agent-profile.block .profile-content .email {
margin-bottom: 0.25rem;
.agent-profile.block .profile-content .contact-me a:hover {
color: var(--primary-light);
background-color: var(--primary-color);
}

.agent-profile.block .profile-content .phone {
font-size: var(--body-font-size-xs);
}

.agent-profile.block .profile-content .phone li {
margin-bottom: 0.25rem;
.agent-profile.block .address {
padding: 2rem;
background-color: var(--tertiary-color);
margin-top: 1.5rem;
}

.agent-profile.block .address>p {
margin-bottom: 0;
font-size: var(--body-font-size-xs);
}

.agent-profile.block .address>p:last-of-type {
margin-bottom: 2rem;
}

.agent-profile.block .about-non-truncate.hide,
.agent-profile.block .languages-non-truncate.hide,
.agent-profile.block .professional-accreditations-non-truncate.hide,
.agent-profile.block .about-truncate.hide,
.agent-profile.block .languages-truncate.hide,
.agent-profile.block .professional-accreditations-truncate.hide {
display: none;
}

.agent-profile.block .about {
margin: 1rem 0 2rem;
font-size: var(--body-font-size-s);
line-height: var(--line-height-xs);
}

.agent-profile.block .lang-prof-accred .languages,
.agent-profile.block .lang-prof-accred .professional-accreditations {
margin-bottom: 2rem;
font-size: var(--body-font-size-s);
line-height: var(--line-height-xs);
}


.agent-profile.block .about::before {
content: 'About';
font-weight: var(--font-weight-bold);
}

.agent-profile.block .lang-prof-accred .languages::before {
content: 'Languages';
font-weight: var(--font-weight-bold);
}

.agent-profile.block .lang-prof-accred .professional-accreditations::before {
content: 'Professional Accreditations';
font-weight: var(--font-weight-bold);
}

.agent-profile.block .about>div {
margin-top: 0.75rem;
}

.agent-profile.block a.view-more::after,
.agent-profile.block a.view-less::after {
display: inline-block;
margin-top: 0.5rem;
text-decoration: underline;
font-size: var(--body-font-size-s);
color: var(--black);
}

.agent-profile.block a.view-more::after {
content: "View More";
}

.agent-profile.block a.view-less::after {
content: "View Less";
}

@media (min-width: 600px) {
.agent-profile.block .about {
margin-top: 0;
}

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

.agent-profile.block .address {
display: none;
}
}

Expand All @@ -94,41 +204,26 @@ main .section.agent-profile-container .agent-profile-wrapper {
position: relative;
}

main .section.agent-profile-container .agent-profile-wrapper {
.agent-profile.block .profile-details {
position: absolute;
display: flex;
left: auto;
width: 34rem;
right: 0;
bottom: 4.625rem;
top: -29rem;
padding: 1.875rem 1.875rem 0;
z-index: 1;
background-color: var(--white);
}

.agent-profile.block {
position: relative;
display: flex;
line-height: var(--line-height-s);
}

.agent-profile.block .profile-image img {
width: 13.125rem;
height: 15.625rem;
}

.agent-profile.block .profile-content .phone {
font-size: var(--body-font-size-s);
margin-top: 2px;
line-height: var(--line-height-m);
}

.agent-profile.block .profile-content .email a,
.agent-profile.block .profile-content .website a {
font-size: var(--body-font-size-xs);
}

.agent-profile.block .profile-content {
padding-left: 1.875rem;
height: 22rem;
}

.agent-profile.block .profile-content .designation,
Expand All @@ -139,4 +234,14 @@ main .section.agent-profile-container .agent-profile-wrapper {
.agent-profile.block .profile-content .phone li {
margin-bottom: unset;
}

.agent-profile.block .lang-prof-accred {
gap: 3rem;
display: flex;
flex-basis: 40%;
}

.agent-profile.block .about {
flex-basis: 60%;
}
}
Loading

0 comments on commit d1e4381

Please sign in to comment.