Skip to content

Commit

Permalink
Agent Transactions Design 1 (#260)
Browse files Browse the repository at this point in the history
* Agent Transactions Design 1

* Minor CSS change

* Review Comments incorporated for Closed transactions

* Viewport changed

---------

Co-authored-by: piyushjindal <[email protected]>
  • Loading branch information
jindaliiita and piyushjindal authored Aug 9, 2024
1 parent 122e873 commit a70fe50
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
2 changes: 2 additions & 0 deletions blocks/agent-transactions/agent-transactions.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('./design-1.css');

.agent-transactions.block table {
width: 100%;
font-size: var(--body-font-size-s);
Expand Down
2 changes: 1 addition & 1 deletion blocks/agent-transactions/agent-transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getClosedTransactions = async () => {
const response = await fetch(`/bin/bhhs/agentPropertyListingsServlet.${agentId}.json`);
const data = await response.json();

if (data && data?.closedTransactions?.properties?.length) {
if (data?.closedTransactions?.properties?.length) {
data.closedTransactions.properties.forEach((property) => {
formattedData.push({
address: property.StreetName,
Expand Down
42 changes: 42 additions & 0 deletions blocks/agent-transactions/design-1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.design-1 .agent-transactions.block h1 {
font-family: var(--font-family-secondary);
font-size: 1.75rem;
font-weight: var(--font-weight-normal);
text-align: center;
}

.design-1 .agent-transactions.block th {
color: var(--white);
}

@media (min-width: 600px) {
.design-1 .agent-transactions.block h1 {
font-size: 2.25rem;
}
}

@media (min-width: 1200px) {
.design-1 .agent-transactions.block h1 {
font-size: 2.75rem;
}
}

/*
----------------------------------------
* Theme Name: Traditional
*/
.design-1.traditional .agent-transactions.block thead {
background: var(--primary-color);
}

/*
----------------------------------------
* Theme Name: Black & White
*/
.design-1.black-white .agent-transactions.block h1 {
color: var(--black);
}

.design-1.black-white .agent-transactions.block thead {
background: var(--black);
}

0 comments on commit a70fe50

Please sign in to comment.