generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feature/savedprops
- Loading branch information
Showing
34 changed files
with
2,516 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.agent-address.block { | ||
padding: 2rem; | ||
background-color: var(--tertiary-color); | ||
} | ||
|
||
.agent-address.block .address { | ||
margin-bottom: 2rem; | ||
} | ||
|
||
.agent-address.block .address>p { | ||
margin-bottom: 0; | ||
font-size: var(--body-font-size-xs); | ||
} | ||
|
||
.agent-address.block 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-s); | ||
} | ||
|
||
.agent-address.block a:hover { | ||
color: var(--primary-light); | ||
background-color: var(--primary-color); | ||
} | ||
|
||
@media (min-width: 600px) { | ||
.agent-address.block { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { getMetadata } from '../../scripts/aem.js'; | ||
import { | ||
a, div, p, | ||
} from '../../scripts/dom-helpers.js'; | ||
|
||
export default function decorate(block) { | ||
const streetAddress = getMetadata('streetaddress'); | ||
const addressLocality = getMetadata('addresslocality'); | ||
const addressRegion = getMetadata('addressregion'); | ||
const postalCode = getMetadata('postalcode'); | ||
|
||
const textDiv = div({ class: 'address' }, | ||
p('Berkshire Hathaway HomeServices'), | ||
p('Commonwealth Real Estate'), | ||
p(streetAddress), | ||
p(`${addressLocality}, ${addressRegion} ${postalCode}`), | ||
); | ||
const text = `${streetAddress}, ${addressLocality}, ${addressRegion} ${postalCode}`; | ||
|
||
const anchor = a({ href: `https://maps.google.com/maps?q=${text}`, target: '_blank' }, 'Directions'); | ||
block.replaceChildren(textDiv, anchor); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
.agent-transactions.block table { | ||
width: 100%; | ||
font-size: var(--body-font-size-s); | ||
line-height: var(--line-height-m); | ||
margin-bottom: 0.25rem; | ||
} | ||
|
||
.agent-transactions.block h1 { | ||
font-size: var(--heading-font-size-l); | ||
line-height: var(--line-height-s); | ||
color: var(--primary-color); | ||
margin: 0 1.875rem 1.5rem 0; | ||
font-weight: 600; | ||
} | ||
|
||
.agent-transactions.block .hide { | ||
display: none; | ||
} | ||
|
||
.agent-transactions.block .show { | ||
display: table-row; | ||
} | ||
|
||
.agent-transactions.block thead { | ||
background: var(--platinum); | ||
font-size: var(--body-font-size-xs); | ||
line-height: var(--line-height-m); | ||
font-weight: var(--font-weight-bold); | ||
text-transform: capitalize; | ||
} | ||
|
||
.agent-transactions.block tbody td { | ||
padding-bottom: 0.5rem; | ||
padding-top: 0.25rem; | ||
font-size: var(--body-font-size-xs); | ||
} | ||
|
||
.agent-transactions.block a { | ||
line-height: var(--line-height-m); | ||
letter-spacing: var(--letter-spacing-m); | ||
text-transform: uppercase; | ||
padding-left: 1rem; | ||
cursor: pointer; | ||
} | ||
|
||
.agent-transactions.block a.show-more::after { | ||
content: "View More"; | ||
display: inline-block; | ||
background-image: url("../../icons/arrow-down.svg"); | ||
background-repeat: no-repeat; | ||
background-position: right; | ||
padding-right: 1rem; | ||
font-size: var(--body-font-size-xs); | ||
font-weight: var(--font-weight-bold); | ||
} | ||
|
||
.agent-transactions.block a.show-less::after { | ||
content: "View Less"; | ||
display: inline-block; | ||
background-image: url("../../icons/arrow-up.svg"); | ||
background-repeat: no-repeat; | ||
background-position: right; | ||
padding-right: 1rem; | ||
font-size: var(--body-font-size-xs); | ||
font-weight: var(--font-weight-bold); | ||
} | ||
|
||
.agent-transactions.block thead th { | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
} | ||
|
||
.agent-transactions.block thead th:first-of-type { | ||
padding-left: 1rem; | ||
} | ||
|
||
.agent-transactions.block tbody td:first-of-type { | ||
padding-left: 1rem; | ||
} | ||
|
||
.agent-transactions.block .default { | ||
display: table-cell; | ||
} | ||
|
||
.agent-transactions.block .medium, | ||
.agent-transactions.block .large, | ||
.agent-transactions.block .xl { | ||
display: none; | ||
} | ||
|
||
.agent-transactions.block .sold-price { | ||
width: 40%; | ||
} | ||
|
||
@media (min-width: 600px) { | ||
.agent-transactions.block .medium { | ||
display: table-cell; | ||
} | ||
|
||
.agent-transactions.block .address { | ||
width: 48.7%; | ||
} | ||
|
||
.agent-transactions.block .city { | ||
width: 24.5%; | ||
} | ||
|
||
.agent-transactions.block .state { | ||
width: 7.4%; | ||
} | ||
|
||
.agent-transactions.block .sold-price { | ||
width: 40%; | ||
} | ||
} | ||
|
||
@media (min-width: 992px) { | ||
.agent-transactions.block h1 { | ||
font-size: 1.875rem; | ||
} | ||
|
||
.agent-transactions.block thead { | ||
font-size: var(--body-font-size-s); | ||
} | ||
|
||
.agent-transactions.block tbody td { | ||
font-size: var(--body-font-size-s); | ||
padding-top: 0.5rem; | ||
} | ||
|
||
.agent-transactions.block .large { | ||
display: table-cell; | ||
} | ||
|
||
.agent-transactions.block .address { | ||
width: auto; | ||
} | ||
|
||
.agent-transactions.block .city { | ||
width: 15%; | ||
} | ||
|
||
.agent-transactions.block .sold-price { | ||
width: 13%; | ||
} | ||
} | ||
|
||
@media (min-width: 1200px) { | ||
.agent-transactions.block .xl { | ||
display: table-cell; | ||
} | ||
|
||
.agent-transactions.block .beds, | ||
.agent-transactions.block .baths { | ||
width: 5%; | ||
} | ||
} |
Oops, something went wrong.