Skip to content

Commit ac6ba09

Browse files
authoredFeb 21, 2025
Eco 168 update isolated account to match the designs on zeplin (#2174)
* add bg-color to account-page-layout * readjust the styling of summary card & enable the logo URL field for edit template
1 parent a36c5af commit ac6ba09

File tree

1 file changed

+27
-16
lines changed

1 file changed

+27
-16
lines changed
 

‎packages/experiments-realm/crm/account.gts

+27-16
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ class EditTemplate extends Component<typeof Account> {
6969
<FieldContainer @label='CRM App'>
7070
<@fields.crmApp />
7171
</FieldContainer>
72+
<FieldContainer @label='Logo URL'>
73+
<@fields.thumbnailURL />
74+
</FieldContainer>
7275
</div>
7376
<style scoped>
7477
.account-form {
@@ -383,8 +386,8 @@ class IsolatedTemplate extends Component<typeof Account> {
383386
</:header>
384387

385388
<:summary>
386-
<SummaryGridContainer>
387-
<SummaryCard>
389+
<SummaryGridContainer class='summary-grid'>
390+
<SummaryCard class='info-card'>
388391
<:title>
389392
<h3 class='summary-title'>Company Info</h3>
390393
</:title>
@@ -393,8 +396,8 @@ class IsolatedTemplate extends Component<typeof Account> {
393396
</:icon>
394397
<:content>
395398
{{#if this.hasCompanyInfo}}
396-
<@fields.headquartersAddress @format='atom' />
397399
<@fields.website @format='atom' />
400+
<@fields.headquartersAddress @format='atom' />
398401
{{else}}
399402
<div class='default-value'>
400403
Missing Company Info
@@ -403,7 +406,7 @@ class IsolatedTemplate extends Component<typeof Account> {
403406
</:content>
404407
</SummaryCard>
405408

406-
<SummaryCard>
409+
<SummaryCard class='info-card'>
407410
<:title>
408411
<h3 class='summary-title'>Contacts</h3>
409412
</:title>
@@ -431,7 +434,7 @@ class IsolatedTemplate extends Component<typeof Account> {
431434
</:content>
432435
</SummaryCard>
433436

434-
<SummaryCard>
437+
<SummaryCard class='info-card'>
435438
<:title>
436439
<h3 class='summary-title'>Lifetime Value</h3>
437440
</:title>
@@ -457,7 +460,7 @@ class IsolatedTemplate extends Component<typeof Account> {
457460
</:content>
458461
</SummaryCard>
459462

460-
<SummaryCard>
463+
<SummaryCard class='info-card'>
461464
<:title>
462465
<h3 class='summary-title'>Active Deals</h3>
463466
</:title>
@@ -560,21 +563,32 @@ class IsolatedTemplate extends Component<typeof Account> {
560563
font: 600 var(--boxel-font-lg);
561564
margin: 0;
562565
}
563-
/* Summary */
566+
/* Summary Grid & Card */
567+
.summary-grid {
568+
--summary-card-min-height: 170px;
569+
}
564570
.summary-title {
565-
font: 600 var(--boxel-font-sm);
571+
font: 600 var(--boxel-font);
566572
letter-spacing: var(--boxel-lsp-xxs);
567-
margin: 0;
573+
align-self: flex-start;
574+
}
575+
.summary-highlight {
576+
font: 600 var(--boxel-font-xl);
577+
}
578+
.description {
579+
font: var(--boxel-font-sm);
580+
letter-spacing: var(--boxel-lsp-sm);
568581
}
569582
.header-icon {
570583
width: var(--boxel-icon-sm);
571584
height: var(--boxel-icon-sm);
572585
flex-shrink: 0;
573586
margin-left: auto;
574587
}
575-
.summary-highlight {
576-
font: 600 var(--boxel-font-lg);
577-
margin: 0;
588+
.info-card {
589+
--summary-card-gap: var(--boxel-sp-xl);
590+
--summary-card-padding: var(--boxel-sp);
591+
--entity-display-title-font-weight: 400;
578592
}
579593
.primary-contact {
580594
width: fit-content;
@@ -592,10 +606,6 @@ class IsolatedTemplate extends Component<typeof Account> {
592606
--pill-border: none;
593607
flex-shrink: 0;
594608
}
595-
.description {
596-
font: 500 var(--boxel-font-sm);
597-
letter-spacing: var(--boxel-lsp-xs);
598-
}
599609
.tag-container {
600610
display: flex;
601611
flex-wrap: wrap;
@@ -1340,6 +1350,7 @@ class AccountPageLayout extends GlimmerComponent<AccountPageLayoutArgs> {
13401350
width: 100%;
13411351
padding: var(--account-page-layout-padding, 20px);
13421352
box-sizing: border-box;
1353+
background-color: var(--boxel-100);
13431354
}
13441355
</style>
13451356
</template>

0 commit comments

Comments
 (0)