Skip to content

Commit

Permalink
add search results to course-catalog-search template
Browse files Browse the repository at this point in the history
poojagunturu96 committed Jan 17, 2025
1 parent 2f57c1a commit 58acfc0
Showing 4 changed files with 64 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/scss/components/_terms.scss
Original file line number Diff line number Diff line change
@@ -62,3 +62,19 @@
.terms__text {
@include terms-text;
}

.course-catalog-result-card {
border-bottom: 1px solid variables.$border-color;

.course-title {
font-weight: variables.$font-weight-bold;
}

.terms__title {
flex: 0 0 30%;
}

.terms__text {
flex: 0 0 60%;
}
}
2 changes: 1 addition & 1 deletion src/templates/course-catalog-search.twig
Original file line number Diff line number Diff line change
@@ -561,5 +561,5 @@

</div>
</form>

{% include 'partials/course-catalog-search-results.twig' %}
{% endblock %}
33 changes: 33 additions & 0 deletions src/templates/partials/course-catalog-result-card.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<div class="course-catalog-result-card row pb-8 mt-7">
<div class="col-md-6 typography mb-4 mb-lg-0">
<a class="course-title" href="/offerings/view/catalog/catalog%2FMCUG/offering/section%2F202520%2F21451">BIOL0140B-S25</a>
<dl class="terms">
<dt class="terms__title text-caps f2">Type:</dt>
<dd class="terms__text">Lecture</dd>
<dt class="terms__title text-caps f2">Course Modality:</dt>
<dd class="terms__text"><a href="/topics/view/catalog/catalog%2FMCUG/term/term%2F202520/topic/topic%2Finstruction_method%2FPERS">In-Person</a> </dd>
<dt class="terms__title text-caps f2">Term:</dt>
<dd class="terms__text">Spring 2025</dd>
<dt class="terms__title text-caps f2">Department:</dt>
<dd class="terms__text"><a href="/topics/view/catalog/catalog%2FMCUG/term/term%2F202520/topic/topic%2Fdepartment%2FBIOL">Biology</a> </dd>
<dt class="terms__title text-caps f2">Requirements Fulfilled:</dt>
<dd class="terms__text"><a href="/topics/view/catalog/catalog%2FMCUG/term/term%2F202520/topic/topic%2Frequirement%2FDED">DED</a> <a href="/topics/view/catalog/catalog%2FMCUG/term/term%2F202520/topic/topic%2Frequirement%2FSCI">SCI</a> </dd>
</dl>
</div>
<div class="col-md-6 typography">
<h3>Ecology and Evolution</h3>
<p>In this introduction to ecology and evolutionary biology we will cover the topics of interspecific...<a href="#">read more</a></p>
<dl class="terms">
<dt class="terms__title text-caps f2">Instructors:</dt>
<dd class="terms__text"><a href="/resources/view/catalog/catalog%2FMCUG/term/term%2F200390/resource/resource%2Fperson%2FB8254EED4F08BDC932184E2EBD4E7D34">Eric Moody</a> </dd>
<dt class="terms__title text-caps f2">Location:</dt>
<dd class="terms__text">McCardell Bicentennial Hall 317 <span class="location_description">(MBH 317)</span>
</dd>
<dt class="terms__title text-caps f2">Schedule:</dt>
<dd class="terms__text">8:40am-9:30am on Monday, Wednesday, Friday <span style="white-space: nowrap">(Feb 10, 2025 to May 12, 2025)</span></dd>
<dt class="terms__title text-caps f2">Availability:</dt>
<dd class="terms__text"><a href="https://ssb-prod.ec.middlebury.edu/PNTR/bwckschd.p_disp_detail_sched?term_in=202520&amp;crn_in=20685" target="_blank" class="availability_link">View availability, prerequisites, and other requirements.</a>
</dd>
</dl>
</div>
</div>
14 changes: 14 additions & 0 deletions src/templates/partials/course-catalog-search-results.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="paragraph--two-col-text" data-digest-content>
<h2 class="h2 mb-4 mb-lg-5">
Search Results
</h2>
<ul class="col-count-xl-1">
{% for item in 0..7 %}
<li class="w-100 d-inline-block mb-8">
{% include 'partials/course-catalog-result-card.twig' with {} %}
</li>
{% endfor %}
</ul>

{% include 'partials/pagination.twig' %}
</div>

0 comments on commit 58acfc0

Please sign in to comment.