From 58acfc02babbde1c8e1b103ced5a51ec54b693e1 Mon Sep 17 00:00:00 2001 From: poojagunturu96 Date: Fri, 17 Jan 2025 10:44:04 -0600 Subject: [PATCH] add search results to course-catalog-search template --- src/scss/components/_terms.scss | 16 +++++++++ src/templates/course-catalog-search.twig | 2 +- .../partials/course-catalog-result-card.twig | 33 +++++++++++++++++++ .../course-catalog-search-results.twig | 14 ++++++++ 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 src/templates/partials/course-catalog-result-card.twig create mode 100644 src/templates/partials/course-catalog-search-results.twig diff --git a/src/scss/components/_terms.scss b/src/scss/components/_terms.scss index fcf6278e..db1599e5 100644 --- a/src/scss/components/_terms.scss +++ b/src/scss/components/_terms.scss @@ -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%; + } +} diff --git a/src/templates/course-catalog-search.twig b/src/templates/course-catalog-search.twig index f281f89e..4051ea92 100644 --- a/src/templates/course-catalog-search.twig +++ b/src/templates/course-catalog-search.twig @@ -561,5 +561,5 @@ - + {% include 'partials/course-catalog-search-results.twig' %} {% endblock %} diff --git a/src/templates/partials/course-catalog-result-card.twig b/src/templates/partials/course-catalog-result-card.twig new file mode 100644 index 00000000..2fcc067e --- /dev/null +++ b/src/templates/partials/course-catalog-result-card.twig @@ -0,0 +1,33 @@ +
+
+ BIOL0140B-S25 +
+
Type:
+
Lecture
+
Course Modality:
+
In-Person
+
Term:
+
Spring 2025
+
Department:
+
Biology
+
Requirements Fulfilled:
+
DED SCI
+
+
+
+

Ecology and Evolution

+

In this introduction to ecology and evolutionary biology we will cover the topics of interspecific...read more

+
+
Instructors:
+
Eric Moody
+
Location:
+
McCardell Bicentennial Hall 317 (MBH 317) +
+
Schedule:
+
8:40am-9:30am on Monday, Wednesday, Friday (Feb 10, 2025 to May 12, 2025)
+
Availability:
+
View availability, prerequisites, and other requirements. +
+
+
+
\ No newline at end of file diff --git a/src/templates/partials/course-catalog-search-results.twig b/src/templates/partials/course-catalog-search-results.twig new file mode 100644 index 00000000..7eae6587 --- /dev/null +++ b/src/templates/partials/course-catalog-search-results.twig @@ -0,0 +1,14 @@ +
+

+ Search Results +

+ + + {% include 'partials/pagination.twig' %} +
\ No newline at end of file