From f76490a4df7ad4f99e9d3c40b7167a466a99647d Mon Sep 17 00:00:00 2001 From: sriranga mannar Date: Wed, 30 Oct 2024 17:24:33 +0530 Subject: [PATCH 1/4] added cards --- junction/static/css/app.css | 94 +++++++++++++++++++++++++ junction/templates/pages/home_page.html | 49 ++++++------- 2 files changed, 116 insertions(+), 27 deletions(-) diff --git a/junction/static/css/app.css b/junction/static/css/app.css index c785ab07..3fe8a30a 100644 --- a/junction/static/css/app.css +++ b/junction/static/css/app.css @@ -8993,3 +8993,97 @@ textarea.review-form select { .dropdown { margin-left: 10px; } +.conference-list { + padding: 40px 0; +} + +.conference-list .heading { + font-size: 24px; + margin-bottom: 30px; + text-align: center; +} + +.no-conferences { + text-align: center; + font-style: italic; + color: #666; +} + +#conference-grid { + display: grid; + gap: 20px; + max-width: 1200px; + margin: 0 auto; + padding: 0 15px; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); +} + +.conference-item { + border: 1px solid #ddd; + border-radius: 5px; + padding: 15px; + cursor: pointer; + transition: all 0.3s ease; + background-color: #ffffff; + box-shadow: 0 2px 5px rgba(0,0,0,0.1); + display: flex; + flex-direction: column; + justify-content: space-between; + text-decoration: none; + color: inherit; +} + +.conference-item:hover { + box-shadow: 0 5px 15px rgba(0,0,0,0.2); + transform: translateY(-5px); + text-decoration: none; +} + +.conference-date { + font-size: 0.9em; + color: #666; + margin-bottom: 10px; + text-align: left; +} + +.conference-item h3 { + margin: 0 0 10px 0; + font-size: 18px; +} + +.conference-item .meta { + font-size: 0.8em; + color: #666; + margin-top: auto; +} + +.conference-item .status { + display: inline-block; + padding: 2px 5px; + border-radius: 3px; + font-size: 0.8em; +} + +@media (max-width: 1024px) { + #conference-grid { + grid-template-columns: repeat(2, 1fr); + } +} + +@media (max-width: 768px) { + #conference-grid { + grid-template-columns: 1fr; + } +} + +html { + scroll-behavior: smooth; +} + +.conference-item a, +.conference-item a:hover, +.conference-item a:focus, +.conference-item a:active { + text-decoration: none; + color: inherit; +} diff --git a/junction/templates/pages/home_page.html b/junction/templates/pages/home_page.html index 6b05c81d..0b14ac36 100644 --- a/junction/templates/pages/home_page.html +++ b/junction/templates/pages/home_page.html @@ -7,6 +7,11 @@ {% block page_classes %}{{ block.super }} homepage{% endblock %} {% block breadcrumbs %}{% endblock %} + +{% block extra_css %} + +{% endblock %} + {% block header %}
@@ -32,33 +37,23 @@

{% if not conferences %} -

No conferences found.

- {% endif %} - - {% for conference in conferences %} -
-

- {{ conference.name }} -

-

- +

No conferences found.

+ {% else %} + - {% endfor %} + {% endif %} - -{% endblock %} +{% endblock %} \ No newline at end of file From abbacaa78798abbdee036b85581da1ccaf81baaf Mon Sep 17 00:00:00 2001 From: m sriranga mannar <76727312+mannar-1@users.noreply.github.com> Date: Thu, 31 Oct 2024 11:46:26 +0000 Subject: [PATCH 2/4] removed html tag associated stylling --- junction/static/css/app.css | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/junction/static/css/app.css b/junction/static/css/app.css index 3fe8a30a..aee43d9c 100644 --- a/junction/static/css/app.css +++ b/junction/static/css/app.css @@ -9076,9 +9076,7 @@ textarea.review-form select { } } -html { - scroll-behavior: smooth; -} + .conference-item a, .conference-item a:hover, From 78c0da4d83908e8899392d8d3ede253b651374a3 Mon Sep 17 00:00:00 2001 From: m sriranga mannar <76727312+mannar-1@users.noreply.github.com> Date: Thu, 31 Oct 2024 11:47:58 +0000 Subject: [PATCH 3/4] removed link to style sheet --- junction/templates/pages/home_page.html | 3 --- 1 file changed, 3 deletions(-) diff --git a/junction/templates/pages/home_page.html b/junction/templates/pages/home_page.html index 0b14ac36..9f330b44 100644 --- a/junction/templates/pages/home_page.html +++ b/junction/templates/pages/home_page.html @@ -8,9 +8,6 @@ {% block page_classes %}{{ block.super }} homepage{% endblock %} {% block breadcrumbs %}{% endblock %} -{% block extra_css %} - -{% endblock %} {% block header %}
From 9da44778a737ff26238ed8f315166d0015cb5597 Mon Sep 17 00:00:00 2001 From: m sriranga mannar <76727312+mannar-1@users.noreply.github.com> Date: Thu, 7 Nov 2024 06:26:57 +0000 Subject: [PATCH 4/4] removed black spaves and converted em,rem to px --- junction/static/css/app.css | 10 ++++------ junction/templates/pages/home_page.html | 2 -- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/junction/static/css/app.css b/junction/static/css/app.css index aee43d9c..d6504897 100644 --- a/junction/static/css/app.css +++ b/junction/static/css/app.css @@ -9040,7 +9040,7 @@ textarea.review-form select { } .conference-date { - font-size: 0.9em; + font-size: 14px; color: #666; margin-bottom: 10px; text-align: left; @@ -9052,16 +9052,16 @@ textarea.review-form select { } .conference-item .meta { - font-size: 0.8em; + font-size: 13px;; color: #666; margin-top: auto; } -.conference-item .status { +.conference-item .status{ display: inline-block; padding: 2px 5px; border-radius: 3px; - font-size: 0.8em; + font-size:13px;; } @media (max-width: 1024px) { @@ -9076,8 +9076,6 @@ textarea.review-form select { } } - - .conference-item a, .conference-item a:hover, .conference-item a:focus, diff --git a/junction/templates/pages/home_page.html b/junction/templates/pages/home_page.html index 9f330b44..7b26394c 100644 --- a/junction/templates/pages/home_page.html +++ b/junction/templates/pages/home_page.html @@ -7,8 +7,6 @@ {% block page_classes %}{{ block.super }} homepage{% endblock %} {% block breadcrumbs %}{% endblock %} - - {% block header %}