Skip to content

Commit 0eae60a

Browse files
committed
PR feedback: adjust padding and hero scaling on tablet
1 parent a05cdf1 commit 0eae60a

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

static/css/v3/library-page.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.library-page__container {
2+
padding: 0 var(--space-large);
3+
}
4+
15
/*
26
=============================================
37
= Hero Styling =
@@ -9,7 +13,7 @@
913
margin-bottom: var(--space-xl);
1014
position: relative;
1115
display: grid;
12-
grid-template-columns: 574px 1fr auto;
16+
grid-template-columns: fit-content(574px) 1fr fit-content(40%);
1317
gap: var(--space-xl);
1418
align-items: center;
1519
grid-template-areas:
@@ -23,7 +27,7 @@
2327
width: 75%;
2428
}
2529

26-
.library-page-hero .hero-image {
30+
.library-page-hero .hero-image-container {
2731
grid-area: c;
2832
}
2933

templates/v3/library_page.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ <h1 class="hero-title">Find a battle-tested library for the problem you're solvi
2323
<div class="hero-search-bar">
2424
{% include 'v3/includes/_field_text.html' with label='Search' name='ex_search' placeholder='Keyword, name, etc.' icon_left='search' submit_icon='arrow-right' %}
2525
</div>
26-
<img alt="Excited Cartoon Mascot" class="hero-image" src="{% static 'img/v3/solo-images/beaver-black-and-white.png' %}" loading="lazy" decoding="async" />
26+
<div class="hero-image-container">
27+
<img alt="Excited Cartoon Mascot" class="hero-image" src="{% static 'img/v3/solo-images/beaver-black-and-white.png' %}" loading="lazy" decoding="async" />
28+
</div>
2729
</section>
2830
<form action="" method="get">
2931
<div id="library-page-filter-container" class="mb-xl">

0 commit comments

Comments
 (0)