Просмотр исходного кода

Merge pull request #20904 from overleaf/mf-gallery-title-new

[web] Implement new gallery header

GitOrigin-RevId: 20a9463dbaa3a94d601a2540fd60767b3a96b2a5
M Fahru 1 год назад
Родитель
Сommit
3e5f9517c8

+ 24 - 1
services/web/frontend/stylesheets/bootstrap-5/pages/templates-v2.scss

@@ -3,7 +3,7 @@
 
   .filters {
     float: right;
-    margin-bottom: var(--spacing-09);
+    margin-bottom: var(--spacing-11);
     display: flex;
     gap: var(--spacing-04);
 
@@ -29,6 +29,29 @@
     }
   }
 
+  .gallery-header {
+    max-width: 885px;
+
+    @include media-breakpoint-up(lg) {
+      padding: 0;
+    }
+  }
+
+  .gallery-title {
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+    margin-bottom: var(--spacing-06);
+  }
+
+  .gallery-summary {
+    @include body-lg;
+
+    text-align: center;
+    margin-bottom: var(--spacing-08);
+  }
+
   .top-picks-banner.container {
     padding: 0;
     margin: var(--spacing-16) auto;

+ 7 - 0
services/web/locales/en.json

@@ -466,6 +466,7 @@
   "disabling": "Disabling",
   "disconnected": "Disconnected",
   "discount_of": "Discount of __amount__",
+  "discover_latex_templates_and_examples": "Discover LaTeX templates and examples to help with everything from writing a journal article to using a specific LaTeX package.",
   "discover_why_people_worldwide_trust_overleaf": "Discover why __count__ million people worldwide trust Overleaf with their work.",
   "dismiss_error_popup": "Dismiss first error alert",
   "display_deleted_user": "Display deleted users",
@@ -610,6 +611,7 @@
   "example": "Example",
   "example_project": "Example Project",
   "examples": "Examples",
+  "examples_to_help_you_learn": "Examples to help you learn how to use powerful LaTeX packages and techniques.",
   "exclusive_access_with_labs": "Exclusive access to early-stage experiments",
   "existing_plan_active_until_term_end": "Your existing plan and its features will remain active until the end of the current billing period.",
   "expand": "Expand",
@@ -1078,12 +1080,15 @@
   "latam_discount_offer_plans_page_banner": "__flag__ We’ve applied a __discount__ discount to premium plans on this page for our users in __country__. Check out the new lower prices (in __currency__).",
   "latex_articles_page_summary": "Papers, presentations, reports and more, written in LaTeX and published by our community. Search or browse below.",
   "latex_articles_page_title": "Articles - Papers, Presentations, Reports and more",
+  "latex_examples": "LaTeX examples",
   "latex_examples_page_summary": "Examples of powerful LaTeX packages and techniques in use — a great way to learn LaTeX by example. Search or browse below.",
   "latex_examples_page_title": "Examples - Equations, Formatting, TikZ, Packages and More",
   "latex_in_thirty_minutes": "LaTeX in 30 minutes",
   "latex_places_figures_according_to_a_special_algorithm": "LaTeX places figures according to a special algorithm. You can use something called ‘placement parameters’ to influence the positioning of the figure. <0>Find out how</>",
   "latex_places_tables_according_to_a_special_algorithm": "LaTeX places tables according to a special algorithm. You can use “placement parameters” to influence the position of the table. <0>This article</0> explains how to do this.",
   "latex_templates": "LaTeX Templates",
+  "latex_templates_and_examples": "LaTeX templates and examples",
+  "latex_templates_for_journal_articles": "LaTeX templates for journal articles, academic papers, CVs and résumés, presentations, and more.",
   "layout": "Layout",
   "layout_processing": "Layout processing",
   "ldap": "LDAP",
@@ -1433,6 +1438,7 @@
   "overleaf_individual_plans": "Overleaf individual plans",
   "overleaf_labs": "Overleaf Labs",
   "overleaf_plans_and_pricing": "overleaf plans and pricing",
+  "overleaf_template_gallery": "overleaf template gallery",
   "overview": "Overview",
   "overwrite": "Overwrite",
   "overwriting_the_original_folder": "Overwriting the original folder will delete it and all the files it contains.",
@@ -1441,6 +1447,7 @@
   "page_current": "Page __page__, Current Page",
   "page_not_found": "Page Not Found",
   "pagination_navigation": "Pagination Navigation",
+  "papers_presentations_reports_and_more": "Papers, presentations, reports and more, written in LaTeX and published by our community.",
   "partial_outline_warning": "The File outline is out of date. It will update itself as you edit the document",
   "password": "Password",
   "password_cant_be_the_same_as_current_one": "Password can’t be the same as current one",