From e768bae5af0ea33e0053bfbda65bc06cb4aadea9 Mon Sep 17 00:00:00 2001 From: anishTP Date: Fri, 19 Apr 2024 16:41:22 +0530 Subject: [PATCH 01/28] Moved the register-block to the project header section on desktop --- funnel/assets/sass/pages/project.scss | 10 +-- funnel/templates/project.html.jinja2 | 22 +----- funnel/templates/project_layout.html.jinja2 | 82 +++++++++++---------- 3 files changed, 49 insertions(+), 65 deletions(-) diff --git a/funnel/assets/sass/pages/project.scss b/funnel/assets/sass/pages/project.scss index ed55ef20c..6bc937333 100644 --- a/funnel/assets/sass/pages/project.scss +++ b/funnel/assets/sass/pages/project.scss @@ -63,7 +63,7 @@ display: none; } .register-block__content__txt { - font-size: 9px; + font-size: 12px; line-height: 16px; width: 100%; display: block; @@ -111,7 +111,7 @@ .register-block { .register-block__content { .register-block__content__txt { - font-size: 10px; + font-size: 12px; } } } @@ -152,6 +152,7 @@ @media (min-width: 768px) { .project-footer { + padding: 0 !important; .register-block { display: block; .register-block__content { @@ -419,7 +420,7 @@ } .project-banner__left { width: 67%; - margin: 0 $mui-grid-padding 0 0; + margin: 0 $mui-grid-padding * 2 0 0; .embed-video-wrapper--shaped { border-radius: 16px; } @@ -543,10 +544,9 @@ } .project-section__map { - height: 400px; + height: 300px; width: 100%; z-index: 0; - margin: 0 0 $mui-grid-padding; position: relative; outline: none; } diff --git a/funnel/templates/project.html.jinja2 b/funnel/templates/project.html.jinja2 index 6b39612b0..50586dd6b 100644 --- a/funnel/templates/project.html.jinja2 +++ b/funnel/templates/project.html.jinja2 @@ -65,7 +65,7 @@ {% endblock baseheadline %} {% block left_col %} -
+
{{ pinned_update(project) }} {{ project_about(project) }}
@@ -157,26 +157,6 @@
{%- endif %} - {%- if project.primary_venue -%} -
-
-

{% trans %}Venue{% endtrans %}

-
-

{{ project.primary_venue.title }}

-

{{ project.primary_venue.address1 }}

-

{{ project.primary_venue.address2 }}

-

{{ project.primary_venue.city }}{% if project.primary_venue.city and project.primary_venue.postcode %} - {{ project.primary_venue.postcode }}{%- endif %}

- {%- if project.primary_venue.state and project.primary_venue.country -%} -

{{ project.primary_venue.state }}, {{ project.primary_venue.country }}

- {%- endif %} -
- {%- if project.primary_venue.has_coordinates -%} -

{% trans %}Loading…{% endtrans %}

- {%- endif %} -
-
- {%- endif %} - {%- if project.subprojects or project.parent_project %}

{% trans %}Related events{% endtrans %}

diff --git a/funnel/templates/project_layout.html.jinja2 b/funnel/templates/project_layout.html.jinja2 index 391cffce3..b7630b76f 100644 --- a/funnel/templates/project_layout.html.jinja2 +++ b/funnel/templates/project_layout.html.jinja2 @@ -122,7 +122,7 @@
{%- endif %}
-
+
{%- if project.account.logo_url.url %} @@ -137,7 +137,22 @@ {% endif %}

{{ project.title }}

-

{{ project.tagline }}

+

{{ project.tagline }}

+
+
+ {% if project.start_at and project.calendar_weeks_full.weeks and project.calendar_weeks_full.weeks|length > 0 %} +
+
+ {{ calendarwidget(project.calendar_weeks_full, compact=false) }} +
+
+ {% endif %} + +
+ {{ project_details(project) }} +
{% endmacro %} @@ -202,8 +217,7 @@
{% elif project.features.rsvp_for_members -%}
- -
+ {% endif %} {% if project.current_roles.account_member %}
@@ -303,9 +317,9 @@ {% if project.view_for('edit_schedule').is_available() and not project.start_at %}

{% trans %}Add schedule{% endtrans %}

{%- endif %} - {{ add_submission_btn(project) }} +{# {{ add_submission_btn(project) }} #} {%- if project.primary_venue %} -

{{ faicon(icon='map-marker-alt') }} {{ project.primary_venue.title }}{%- if project.primary_venue.city %}, {{ project.primary_venue.city }}{%- endif %}

+

{{ faicon(icon='map-pin') }} {{ project.primary_venue.title }}{%- if project.primary_venue.city %}, {{ project.primary_venue.city }}{%- endif %}

{%- endif %} {% endmacro %} @@ -388,6 +402,26 @@ {% endmacro %} +{% macro primary_venue(project) %} +
+
+

{% trans %}Venue{% endtrans %}

+
+

{{ project.primary_venue.title }}

+

{{ project.primary_venue.address1 }}

+

{{ project.primary_venue.address2 }}

+

{{ project.primary_venue.city }}{% if project.primary_venue.city and project.primary_venue.postcode %} - {{ project.primary_venue.postcode }}{%- endif %}

+ {%- if project.primary_venue.state and project.primary_venue.country -%} +

{{ project.primary_venue.state }}, {{ project.primary_venue.country }}

+ {%- endif %} +
+ {%- if project.primary_venue.has_coordinates -%} +

{% trans %}Loading…{% endtrans %}

+ {%- endif %} +
+
+{% endmacro %} + {% block basecontent %} {% block project_banner %}
@@ -433,20 +467,6 @@ {%- endif %} {% endblock project_banner %} - {% block before_navbar %} -
-
-
- {{ pinned_update(project) }} - {{ project_about(project) }} -
- {{ project_host_sponsor(project) }} -
-
-
-
- {%- endblock before_navbar %} - {% block project_navbar %}