Make email receipt sections more compact
All checks were successful
Build and Push Docker Images / docker (push) Successful in 1m0s

Carbon Offset Distribution section:
- Remove "Carbon Offset" subheader from each project
- Remove colored dots next to project names
- Reduce padding from 30px to 20px
- Reduce title margin from 24px to 16px
- Reduce item padding from 14px to 10px
- Reduce spacing between items from 12px to 8px

Your Impact section:
- Reduce padding from 32px to 20px
- Reduce title font size from 26px to 22px
- Reduce subtitle margin from 28px to 16px
- Reduce card padding from 20px to 14px
- Reduce icon size from 36px to 30px
- Reduce value font size from 28px to 24px
- Reduce grid gap from 16px to 12px
- Reduce footer note margin from 20px to 12px

Overall more compact layout while maintaining readability.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Matt 2025-10-31 21:08:45 +01:00
parent 0b66378423
commit 55384b337b

View File

@ -218,85 +218,79 @@
} }
.comparisons { .comparisons {
background: linear-gradient(135deg, #1e293b 0%, #334155 100%); background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
border-radius: 16px; border-radius: 12px;
padding: 32px; padding: 20px;
margin: 30px 0; margin: 24px 0;
color: white; color: white;
} }
.comparisons-title { .comparisons-title {
font-size: 26px; font-size: 22px;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
margin: 0 0 10px 0; margin: 0 0 6px 0;
color: #ffffff !important; color: #ffffff !important;
} }
.comparisons-subtitle { .comparisons-subtitle {
text-align: center; text-align: center;
color: rgba(255, 255, 255, 0.8); color: rgba(255, 255, 255, 0.8);
font-size: 14px; font-size: 13px;
margin-bottom: 28px; margin-bottom: 16px;
} }
.comparisons-grid { .comparisons-grid {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 16px; gap: 12px;
} }
.comparison-card { .comparison-card {
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px; border-radius: 10px;
padding: 20px; padding: 14px;
text-align: center; text-align: center;
} }
.comparison-icon { .comparison-icon {
font-size: 36px; font-size: 30px;
margin-bottom: 12px; margin-bottom: 8px;
} }
.comparison-value { .comparison-value {
font-size: 28px; font-size: 24px;
font-weight: bold; font-weight: bold;
color: #ffffff; color: #ffffff;
margin-bottom: 4px; margin-bottom: 3px;
} }
.comparison-unit { .comparison-unit {
font-size: 12px; font-size: 11px;
color: #a7f3d0; color: #a7f3d0;
margin-bottom: 12px; margin-bottom: 8px;
} }
.comparison-label { .comparison-label {
font-size: 13px; font-size: 12px;
color: rgba(255, 255, 255, 0.9); color: rgba(255, 255, 255, 0.9);
line-height: 1.4; line-height: 1.3;
} }
.portfolio-section { .portfolio-section {
margin: 30px 0; margin: 24px 0;
padding: 30px; padding: 20px;
background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
border-radius: 16px; border-radius: 12px;
} }
.portfolio-title { .portfolio-title {
font-size: 22px; font-size: 20px;
font-weight: bold; font-weight: bold;
color: #065f46; color: #065f46;
text-align: center; text-align: center;
margin: 0 0 24px 0; margin: 0 0 16px 0;
} }
.project-item { .project-item {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 14px; padding: 10px 12px;
background-color: white; background-color: white;
border-radius: 10px; border-radius: 8px;
margin-bottom: 12px; margin-bottom: 8px;
border-left: 4px solid; border-left: 4px solid;
} }
.project-color {
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 12px;
}
.project-info { .project-info {
flex: 1; flex: 1;
} }
@ -304,16 +298,11 @@
font-weight: 600; font-weight: 600;
color: #1e293b; color: #1e293b;
font-size: 14px; font-size: 14px;
margin-bottom: 4px;
}
.project-type {
font-size: 12px;
color: #64748b;
} }
.project-percentage { .project-percentage {
font-weight: bold; font-weight: bold;
color: #047857; color: #047857;
font-size: 16px; font-size: 15px;
} }
.footer { .footer {
background-color: #f8fafc; background-color: #f8fafc;
@ -419,15 +408,13 @@
{{#if projects}} {{#if projects}}
<div class="portfolio-section"> <div class="portfolio-section">
<h3 class="portfolio-title">Your Carbon Offset Distribution</h3> <h3 class="portfolio-title">Your Carbon Offset Distribution</h3>
<p style="text-align: center; color: #065f46; margin-bottom: 20px; font-size: 14px;"> <p style="text-align: center; color: #065f46; margin-bottom: 12px; font-size: 13px;">
Your {{tons}} tons of CO₂ offsets are distributed across these verified projects: Your {{tons}} tons of CO₂ offsets are distributed across these verified projects:
</p> </p>
{{#each projects}} {{#each projects}}
<div class="project-item" style="border-left-color: {{this.color}}"> <div class="project-item" style="border-left-color: {{this.color}}">
<div class="project-color" style="background-color: {{this.color}}"></div>
<div class="project-info"> <div class="project-info">
<div class="project-name">{{this.name}}</div> <div class="project-name">{{this.name}}</div>
<div class="project-type">{{this.type}}</div>
</div> </div>
<div class="project-percentage">{{this.percentage}}%</div> <div class="project-percentage">{{this.percentage}}%</div>
</div> </div>
@ -450,7 +437,7 @@
</div> </div>
{{/each}} {{/each}}
</div> </div>
<p style="text-align: center; font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 20px; margin-bottom: 0;"> <p style="text-align: center; font-size: 10px; color: rgba(255,255,255,0.6); margin-top: 12px; margin-bottom: 0;">
Equivalencies calculated using EPA 2024, DEFRA 2024, and IMO 2024 verified conversion factors. Equivalencies calculated using EPA 2024, DEFRA 2024, and IMO 2024 verified conversion factors.
</p> </p>
</div> </div>