From dc58212369f0e359a549c3f7b419e71d1915a632 Mon Sep 17 00:00:00 2001 From: Yuanzhang Xiao Date: Fri, 12 Jan 2024 22:20:57 +0000 Subject: [PATCH] add card styles --- _includes/entity-card.html | 2 +- _layouts/default.html | 3 +-- _layouts/module.html | 6 +++--- css/style.css | 5 +++++ morea/01-introduction/reading-syllabus.md | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/_includes/entity-card.html b/_includes/entity-card.html index 5ec6402..4960ca5 100755 --- a/_includes/entity-card.html +++ b/_includes/entity-card.html @@ -1,6 +1,6 @@
-
+
{% if include.icon_url %}
{{include.title}} diff --git a/_layouts/default.html b/_layouts/default.html index edf5673..ea26209 100755 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -11,5 +11,4 @@
{% else %} {{ content }} -{% endif %} - +{% endif %} \ No newline at end of file diff --git a/_layouts/module.html b/_layouts/module.html index ba0303b..8466ad5 100755 --- a/_layouts/module.html +++ b/_layouts/module.html @@ -56,7 +56,7 @@

Readings

{% for page_id in page.morea_page.morea_readings %} {% assign reading = site.morea_page_table[page_id] %} - {% include entity-card.html url=reading.morea_url title=reading.title summary=reading.morea_summary labels=reading.morea_labels %} + {% include entity-card.html type="reading" url=reading.morea_url title=reading.title summary=reading.morea_summary labels=reading.morea_labels %} {% endfor %}
@@ -70,7 +70,7 @@

Experiential Learning

{% for page_id in page.morea_page.morea_experiences %} {% assign experience = site.morea_page_table[page_id] %} - {% include entity-card.html url=experience.morea_url title=experience.title summary=experience.morea_summary labels=experience.morea_labels %} + {% include entity-card.html type="experience" url=experience.morea_url title=experience.title summary=experience.morea_summary labels=experience.morea_labels %} {% endfor %}
@@ -84,7 +84,7 @@

Assessments

{% for page_id in page.morea_page.morea_assessments %} {% assign assessment = site.morea_page_table[page_id] %} - {% include entity-card.html url=assessment.morea_url title=assessment.title summary=assessment.morea_summary labels=assessment.morea_labels outcomes=assessment.morea_outcomes_assessed_titles %} + {% include entity-card.html type="assessment" url=assessment.morea_url title=assessment.title summary=assessment.morea_summary labels=assessment.morea_labels outcomes=assessment.morea_outcomes_assessed_titles %} {% endfor %}
diff --git a/css/style.css b/css/style.css index b6c0c79..dbdb4ab 100755 --- a/css/style.css +++ b/css/style.css @@ -44,4 +44,9 @@ h1, h2, h3 { small { font-size: .7em +} + +/* set a background color of the footer to differentiate it from the content */ +.footer-background { + background-color: var(--bs-primary-bg-subtle); } \ No newline at end of file diff --git a/morea/01-introduction/reading-syllabus.md b/morea/01-introduction/reading-syllabus.md index d123680..2ebae82 100644 --- a/morea/01-introduction/reading-syllabus.md +++ b/morea/01-introduction/reading-syllabus.md @@ -5,6 +5,6 @@ title: "EE 643 Syllabus" published: True morea_summary: "Basic information about the class" morea_sort_order: 10 -morea_url: /morea/introduction/syllabus.pdf +morea_url: /morea/01-introduction/syllabus.pdf morea_labels: ---