Skip to content

Commit 196d676

Browse files
committed
add highlighted rewards to project layout
1 parent 596d059 commit 196d676

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

Resources/templates/responsive/project/layout.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
<!-- End container fluid -->
8888

8989
<div class="container-fluid section">
90+
9091
<?php if ($project->isImpactCalcActive()):?>
9192
<div class="impact-calculator-details row">
9293
<?= $this->insert('project/partials/impact_by_footprint', ['footprints' => $this->footprints ]) ?>
@@ -95,6 +96,12 @@
9596
</div>
9697
<?php endif; ?>
9798

99+
<?php if ($project->isHighlightedRewardsActive()): ?>
100+
<div class="row">
101+
<?= $this->insert('project/partials/highlighted_rewards') ?>
102+
</div>
103+
<?php endif; ?>
104+
98105
<div class="col-sm-8 section-content" id="project-tabs">
99106
<?= $this->supply('main-content') ?>
100107
</div>

public/assets/sass/layouts/_project.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ body.project {
5353
border: 1px solid $color-light-grey;
5454
border-radius: 1rem;
5555
width: 100%;
56+
min-height: 40rem;
5657
height: 40rem;
5758
padding: 2rem;
5859
font-size: 1.5rem;
60+
overflow: hidden;
61+
text-overflow: ellipsis;
5962

6063
.card-header {
6164
h2 {
@@ -64,6 +67,13 @@ body.project {
6467
}
6568
}
6669

70+
.card-body {
71+
height: 20rem;
72+
overflow: hidden;
73+
text-overflow: ellipsis;
74+
padding-bottom: 1rem;
75+
}
76+
6777
.amount-box {
6878
color: $color-dark-green;
6979
font-size: 40px;
@@ -78,6 +88,12 @@ body.project {
7888
border: $background-light-green 2px solid;
7989
height: fit-content;
8090
transition: 0.5s;
91+
92+
.card-body {
93+
min-height: 20rem;
94+
height: fit-content;
95+
transition: 0.5s;
96+
}
8197
}
8298
}
8399
}

0 commit comments

Comments
 (0)