Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations: Simplify heading semantics on catalog and communities.

Alya Abbotte3c2f1bbac94
diff --git a/templates/corporate/communities.html b/templates/corporate/communities.html
index 13410a59916..0a26e5ebacd 100644
--- a/templates/corporate/communities.html
+++ b/templates/corporate/communities.html
@@ -36,14 +36,12 @@
<i class="fa fa-angle-down" aria-hidden="true"></i>
</div>
<div class="dropdown-list">
- <a href="#all">
- <h4 class="realm-category selected" data-category="all">All</h4>
+ <a href="#all" class="realm-category selected" data-category="all">
+ {% trans %}All{% endtrans %}
</a>
{% for org_type in org_types.keys() %}
- <a href="#{{ org_type }}">
- <h4 class="realm-category" data-category="{{ org_type }}">
- {{ org_types[org_type]["name"] }}
- </h4>
+ <a href="#{{ org_type }}" class="realm-category" data-category="{{ org_type }}">
+ {{ org_types[org_type]["name"] }}
</a>
{% endfor %}
</div>
@@ -52,14 +50,12 @@
<div class="catalog">
<div class="integration-categories-sidebar">
<h3>{% trans %}Categories{% endtrans %}</h3>
- <a href="#all">
- <h4 data-category="all" class="realm-category selected">{% trans %}All{% endtrans %}</h4>
+ <a href="#all" data-category="all" class="realm-category selected">
+ {% trans %}All{% endtrans %}
</a>
{% for org_type in org_types.keys() %}
- <a href="#{{ org_type }}">
- <h4 data-category="{{ org_type }}" class="realm-category">
- {{ org_types[org_type]["name"] }}
- </h4>
+ <a href="#{{ org_type }}" data-category="{{ org_type }}" class="realm-category">
+ {{ org_types[org_type]["name"] }}
</a>
{% endfor %}
</div>
diff --git a/templates/zerver/integrations/catalog.html b/templates/zerver/integrations/catalog.html
index 55295de858d..5778b5faa22 100644
--- a/templates/zerver/integrations/catalog.html
+++ b/templates/zerver/integrations/catalog.html
@@ -22,14 +22,14 @@
{% trans %}Over {{integrations_count_display}} native integrations.{% endtrans %}
</h1>
</header>
- <h2 class="portico-page-subheading">
+ <p class="portico-page-subheading">
{% trans %}
And hundreds more through
<a href="/integrations/zapier">Zapier</a>
and
<a href="/integrations/ifttt">IFTTT</a>.
{% endtrans %}
- </h2>
+ </p>
</div>
<div id="integration-search">
@@ -51,25 +51,23 @@
<i class="fa fa-angle-down" aria-hidden="true"></i>
</div>
<div class="dropdown-list">
- <a href="/integrations/">
- <h4 class="integration-category {% if selected_category_slug == 'all' %}selected{% endif %}" data-category="all">All</h4>
+ <a href="/integrations/" class="integration-category {% if selected_category_slug == 'all' %}selected{% endif %}" data-category="all">
+ {% trans %}All{% endtrans %}
</a>
{% for category in categories_dict.keys() %}
- <a href="/integrations/category/{{ category }}">
- <h4 class="integration-category {% if selected_category_slug == category %}selected{% endif %}" data-category="{{ category }}">
- {{ categories_dict[category] }}
- </h4>
+ <a href="/integrations/category/{{ category }}" class="integration-category {% if selected_category_slug == category %}selected{% endif %}" data-category="{{ category }}">
+ {{ categories_dict[category] }}
</a>
{% endfor %}
- <h4 class="heading">{% trans %}Custom integrations{% endtrans %}</h4>
+ <h3 class="heading">{% trans %}Custom integrations{% endtrans %}</h3>
<a href="https://zulip.readthedocs.io/en/latest/webhooks/incoming-webhooks-overview.html">
- <h4>{% trans %}Incoming webhooks{% endtrans %}</h4>
+ {% trans %}Incoming webhooks{% endtrans %}
</a>
<a href="/help/writing-bots">
- <h4>{% trans %}Interactive bots{% endtrans %}</h4>
+ {% trans %}Interactive bots{% endtrans %}
</a>
<a href="/api/rest">
- <h4>{% trans %}REST API{% endtrans %}</h4>
+ {% trans %}REST API{% endtrans %}
</a>
</div>
</div>
@@ -77,25 +75,23 @@
<div class="catalog">
<div class="integration-categories-sidebar">
<h3>{% trans %}Categories{% endtrans %}</h3>
- <a href="/integrations/">
- <h4 data-category="all" class="integration-category {% if selected_category_slug == 'all' %}selected{% endif %}">{% trans %}All{% endtrans %}</h4>
+ <a href="/integrations/" data-category="all" class="integration-category {% if selected_category_slug == 'all' %}selected{% endif %}">
+ {% trans %}All{% endtrans %}
</a>
{% for category in categories_dict.keys() %}
- <a href="/integrations/category/{{ category }}">
- <h4 data-category="{{ category }}" class="integration-category {% if selected_category_slug == category %}selected{% endif %}">
- {{ categories_dict[category] }}
- </h4>
+ <a href="/integrations/category/{{ category }}" data-category="{{ category }}" class="integration-category {% if selected_category_slug == category %}selected{% endif %}">
+ {{ categories_dict[category] }}
</a>
{% endfor %}
<h3>{% trans %}Custom integrations{% endtrans %}</h3>
<a href="https://zulip.readthedocs.io/en/latest/webhooks/incoming-webhooks-overview.html">
- <h4>{% trans %}Incoming webhooks{% endtrans %}</h4>
+ {% trans %}Incoming webhooks{% endtrans %}
</a>
<a href="/help/writing-bots">
- <h4>{% trans %}Interactive bots{% endtrans %}</h4>
+ {% trans %}Interactive bots{% endtrans %}
</a>
<a href="/api/rest">
- <h4>{% trans %}REST API{% endtrans %}</h4>
+ {% trans %}REST API{% endtrans %}
</a>
</div>
diff --git a/web/styles/portico/integrations.css b/web/styles/portico/integrations.css
index 71e7bd0cc9b..c71b0fbbe2f 100644
--- a/web/styles/portico/integrations.css
+++ b/web/styles/portico/integrations.css
@@ -236,10 +236,8 @@
}
& a {
+ display: block;
text-decoration: none;
- }
-
- & h4 {
font-weight: 400;
font-size: 0.95em;
padding: 6px 10px;
@@ -268,14 +266,6 @@
.integration-categories-dropdown {
display: none;
- .heading {
- font-weight: 600;
- }
-
- & a {
- text-decoration: none;
- }
-
/* Match the search box at narrow widths: the outer container
takes 30px horizontal padding, and the inner elements
(toggle + list) cap at 500px and center within the content
@@ -286,11 +276,16 @@
margin: 0;
padding: 0 30px;
- & h3,
- h4 {
+ & h3 {
font-weight: 400;
+ font-size: 1.1em;
+ text-align: left;
margin: 0;
padding: 12px 20px;
+
+ &.heading {
+ font-weight: 600;
+ }
}
.integration-toggle-categories-dropdown,
@@ -342,26 +337,24 @@
border-top: 0;
border-radius: 0 0 5px 5px;
overflow: hidden;
- }
-
- & h3 {
- font-size: 1.1em;
- text-align: left;
- }
- & h4 {
- font-size: 1em;
- color: var(--color-integrations-category-text);
+ & a {
+ display: block;
+ text-decoration: none;
+ font-weight: 400;
+ font-size: 1em;
+ padding: 12px 20px;
+ color: var(--color-integrations-category-text);
- &:hover {
- color: hsl(223deg 6% 15%);
- }
+ &:hover {
+ color: hsl(223deg 6% 15%);
+ }
- &.selected {
- background-color: hsl(0deg 0% 100%);
- color: hsl(223deg 6% 25%);
- font-weight: 600;
- }
+ &.selected {
+ background-color: hsl(0deg 0% 100%);
+ color: hsl(223deg 6% 25%);
+ font-weight: 600;
+ }
}
}