Skip to content

Commit

Permalink
Eco 168 update isolated account to match the designs on zeplin (#2174)
Browse files Browse the repository at this point in the history
* add bg-color to account-page-layout

* readjust the styling of summary card & enable the logo URL field for edit template
  • Loading branch information
lucaslyl authored Feb 21, 2025
1 parent a36c5af commit ac6ba09
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions packages/experiments-realm/crm/account.gts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ class EditTemplate extends Component<typeof Account> {
<FieldContainer @label='CRM App'>
<@fields.crmApp />
</FieldContainer>
<FieldContainer @label='Logo URL'>
<@fields.thumbnailURL />
</FieldContainer>
</div>
<style scoped>
.account-form {
Expand Down Expand Up @@ -383,8 +386,8 @@ class IsolatedTemplate extends Component<typeof Account> {
</:header>

<:summary>
<SummaryGridContainer>
<SummaryCard>
<SummaryGridContainer class='summary-grid'>
<SummaryCard class='info-card'>
<:title>
<h3 class='summary-title'>Company Info</h3>
</:title>
Expand All @@ -393,8 +396,8 @@ class IsolatedTemplate extends Component<typeof Account> {
</:icon>
<:content>
{{#if this.hasCompanyInfo}}
<@fields.headquartersAddress @format='atom' />
<@fields.website @format='atom' />
<@fields.headquartersAddress @format='atom' />
{{else}}
<div class='default-value'>
Missing Company Info
Expand All @@ -403,7 +406,7 @@ class IsolatedTemplate extends Component<typeof Account> {
</:content>
</SummaryCard>

<SummaryCard>
<SummaryCard class='info-card'>
<:title>
<h3 class='summary-title'>Contacts</h3>
</:title>
Expand Down Expand Up @@ -431,7 +434,7 @@ class IsolatedTemplate extends Component<typeof Account> {
</:content>
</SummaryCard>

<SummaryCard>
<SummaryCard class='info-card'>
<:title>
<h3 class='summary-title'>Lifetime Value</h3>
</:title>
Expand All @@ -457,7 +460,7 @@ class IsolatedTemplate extends Component<typeof Account> {
</:content>
</SummaryCard>

<SummaryCard>
<SummaryCard class='info-card'>
<:title>
<h3 class='summary-title'>Active Deals</h3>
</:title>
Expand Down Expand Up @@ -560,21 +563,32 @@ class IsolatedTemplate extends Component<typeof Account> {
font: 600 var(--boxel-font-lg);
margin: 0;
}
/* Summary */
/* Summary Grid & Card */
.summary-grid {
--summary-card-min-height: 170px;
}
.summary-title {
font: 600 var(--boxel-font-sm);
font: 600 var(--boxel-font);
letter-spacing: var(--boxel-lsp-xxs);
margin: 0;
align-self: flex-start;
}
.summary-highlight {
font: 600 var(--boxel-font-xl);
}
.description {
font: var(--boxel-font-sm);
letter-spacing: var(--boxel-lsp-sm);
}
.header-icon {
width: var(--boxel-icon-sm);
height: var(--boxel-icon-sm);
flex-shrink: 0;
margin-left: auto;
}
.summary-highlight {
font: 600 var(--boxel-font-lg);
margin: 0;
.info-card {
--summary-card-gap: var(--boxel-sp-xl);
--summary-card-padding: var(--boxel-sp);
--entity-display-title-font-weight: 400;
}
.primary-contact {
width: fit-content;
Expand All @@ -592,10 +606,6 @@ class IsolatedTemplate extends Component<typeof Account> {
--pill-border: none;
flex-shrink: 0;
}
.description {
font: 500 var(--boxel-font-sm);
letter-spacing: var(--boxel-lsp-xs);
}
.tag-container {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -1340,6 +1350,7 @@ class AccountPageLayout extends GlimmerComponent<AccountPageLayoutArgs> {
width: 100%;
padding: var(--account-page-layout-padding, 20px);
box-sizing: border-box;
background-color: var(--boxel-100);
}
</style>
</template>
Expand Down

0 comments on commit ac6ba09

Please sign in to comment.