Skip to content

Commit

Permalink
add highlighted rewards to project layout
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeig committed Jun 8, 2023
1 parent 596d059 commit 196d676
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Resources/templates/responsive/project/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<!-- End container fluid -->

<div class="container-fluid section">

<?php if ($project->isImpactCalcActive()):?>
<div class="impact-calculator-details row">
<?= $this->insert('project/partials/impact_by_footprint', ['footprints' => $this->footprints ]) ?>
Expand All @@ -95,6 +96,12 @@
</div>
<?php endif; ?>

<?php if ($project->isHighlightedRewardsActive()): ?>
<div class="row">
<?= $this->insert('project/partials/highlighted_rewards') ?>
</div>
<?php endif; ?>

<div class="col-sm-8 section-content" id="project-tabs">
<?= $this->supply('main-content') ?>
</div>
Expand Down
16 changes: 16 additions & 0 deletions public/assets/sass/layouts/_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ body.project {
border: 1px solid $color-light-grey;
border-radius: 1rem;
width: 100%;
min-height: 40rem;
height: 40rem;
padding: 2rem;
font-size: 1.5rem;
overflow: hidden;
text-overflow: ellipsis;

.card-header {
h2 {
Expand All @@ -64,6 +67,13 @@ body.project {
}
}

.card-body {
height: 20rem;
overflow: hidden;
text-overflow: ellipsis;
padding-bottom: 1rem;
}

.amount-box {
color: $color-dark-green;
font-size: 40px;
Expand All @@ -78,6 +88,12 @@ body.project {
border: $background-light-green 2px solid;
height: fit-content;
transition: 0.5s;

.card-body {
min-height: 20rem;
height: fit-content;
transition: 0.5s;
}
}
}
}
Expand Down

0 comments on commit 196d676

Please sign in to comment.