فهرست منبع

Merge pull request #16110 from overleaf/mf-website-redesign-home-issues

[web] Fix issues on homepage redesign

GitOrigin-RevId: 8c6f7419d9dd88f6e11d8adb816e8e393c17f670
M Fahru 2 سال پیش
والد
کامیت
f9e545f51e

+ 4 - 3
services/web/frontend/stylesheets/app/homepage.less

@@ -351,6 +351,7 @@
         font-family: 'DM Mono', monospace;
         font-family: 'DM Mono', monospace;
         align-self: flex-start;
         align-self: flex-start;
         width: 100%;
         width: 100%;
+        margin-top: 0;
 
 
         @media (max-width: @screen-sm-max) {
         @media (max-width: @screen-sm-max) {
           text-align: center;
           text-align: center;
@@ -390,7 +391,7 @@
     }
     }
 
 
     .home-registration-separator {
     .home-registration-separator {
-      margin: 0 0 4px;
+      margin: 8px 0;
       color: @neutral-90;
       color: @neutral-90;
 
 
       > span {
       > span {
@@ -436,14 +437,14 @@
       .home-registration-password-input {
       .home-registration-password-input {
         display: flex;
         display: flex;
         flex-direction: row;
         flex-direction: row;
-        gap: 10px;
+        gap: 16px;
         margin-bottom: 0;
         margin-bottom: 0;
       }
       }
     }
     }
 
 
     .home-registration-sign-up {
     .home-registration-sign-up {
       display: block;
       display: block;
-      margin-top: 10px;
+      margin-top: 16px;
       width: 100%;
       width: 100%;
       margin-bottom: 0;
       margin-bottom: 0;
 
 

+ 94 - 54
services/web/frontend/stylesheets/app/website-redesign.less

@@ -37,7 +37,7 @@
 
 
       @media (max-width: @screen-sm-max) {
       @media (max-width: @screen-sm-max) {
         margin-bottom: 16px;
         margin-bottom: 16px;
-        height: 398px;
+        min-height: unset;
       }
       }
     }
     }
 
 
@@ -74,11 +74,15 @@
           display: flex;
           display: flex;
           flex-direction: column;
           flex-direction: column;
           gap: 12px;
           gap: 12px;
+
+          @media (max-width: @screen-sm-max) {
+            margin-top: 16px;
+          }
         }
         }
       }
       }
 
 
       &.grey-border {
       &.grey-border {
-        border: 2px solid #e7e9ee;
+        border: 2px solid var(--neutral-20);
       }
       }
 
 
       // workaround for border that contains both linear-gradient and border radius
       // workaround for border that contains both linear-gradient and border radius
@@ -86,20 +90,13 @@
       &.blue-gradient-highlighted {
       &.blue-gradient-highlighted {
         border: double 2px transparent;
         border: double 2px transparent;
         border-radius: 8px;
         border-radius: 8px;
-        background-image: linear-gradient(white, white),
-          linear-gradient(245.63deg, #214475 0%, #254c84 28.54%, #6597e0 96.69%);
+        background-image: linear-gradient(var(--white), var(--white)),
+          var(--premium-gradient);
         background-origin: border-box;
         background-origin: border-box;
         background-clip: content-box, border-box;
         background-clip: content-box, border-box;
 
 
         .plans-card-inner-title {
         .plans-card-inner-title {
-          background: linear-gradient(
-            245.63deg,
-            #214475 0%,
-            #254c84 28.54%,
-            #6597e0 96.69%
-          );
-          background-clip: text;
-          color: transparent;
+          color: var(--blue-60);
         }
         }
       }
       }
     }
     }
@@ -107,13 +104,17 @@
 
 
   .info-cards {
   .info-cards {
     .info-card-container {
     .info-card-container {
-      height: 348px;
+      min-height: 348px;
       margin-bottom: 16px;
       margin-bottom: 16px;
 
 
+      @media (max-width: @screen-sm-max) {
+        min-height: unset;
+      }
+
       .info-card {
       .info-card {
         border-radius: 8px;
         border-radius: 8px;
         height: 100%;
         height: 100%;
-        box-shadow: 0px 2px 4px 0px #1e253029;
+        box-shadow: 0px 2px 4px 0px rgba(30, 37, 48, 0.16);
         border-top: 8px solid #2f4858;
         border-top: 8px solid #2f4858;
         padding: 48px 40px 48px 40px;
         padding: 48px 40px 48px 40px;
       }
       }
@@ -143,19 +144,18 @@
 
 
         li {
         li {
           margin-bottom: 8px;
           margin-bottom: 8px;
-        }
-      }
 
 
-      .premium-badge {
-        .premium-badge-img {
-          margin-left: 10px;
-        }
+          @media (max-width: @screen-sm-max) {
+            display: flex;
 
 
-        @media (max-width: @screen-xs-max) {
-          display: flex;
-          .premium-badge-img {
-            width: 87px;
-            margin-left: auto;
+            i {
+              height: 25px; // force height if text wraps to multiple lines
+            }
+
+            .label-premium {
+              margin-left: auto;
+              height: 20px; // force height if text wraps to multiple lines
+            }
           }
           }
         }
         }
       }
       }
@@ -175,7 +175,7 @@
 
 
         a {
         a {
           width: 100%;
           width: 100%;
-          color: @neutral-90;
+          color: var(--neutral-90);
           display: inline-flex;
           display: inline-flex;
           justify-content: space-between;
           justify-content: space-between;
         }
         }
@@ -204,7 +204,7 @@
     align-items: center;
     align-items: center;
     padding: 64px;
     padding: 64px;
     background: #2f4858;
     background: #2f4858;
-    color: white;
+    color: var(--white);
     border-radius: 8px;
     border-radius: 8px;
 
 
     .cta-card-title {
     .cta-card-title {
@@ -232,12 +232,12 @@
   .testimonial-media {
   .testimonial-media {
     border-radius: 24px;
     border-radius: 24px;
 
 
-    .testimonial-media-text-container {
+    .testimonial-media-text {
       display: flex;
       display: flex;
       flex-direction: column;
       flex-direction: column;
       min-height: 352px;
       min-height: 352px;
       background-color: #2f4858;
       background-color: #2f4858;
-      color: white;
+      color: var(--white);
       border-top-left-radius: 24px;
       border-top-left-radius: 24px;
       border-top-right-radius: 0;
       border-top-right-radius: 0;
       border-bottom-left-radius: 24px;
       border-bottom-left-radius: 24px;
@@ -251,38 +251,38 @@
         padding: 56px 24px;
         padding: 56px 24px;
       }
       }
 
 
-      .testimonial-media-text {
+      blockquote {
         margin-bottom: auto;
         margin-bottom: auto;
-        font-size: 28px;
-        font-weight: 600;
-        line-height: 38px;
-
-        @media (max-width: @screen-sm-max) {
-          font-size: 24px;
-          line-height: 32px;
-        }
       }
       }
     }
     }
 
 
     .testimonial-media-video {
     .testimonial-media-video {
       height: 100%;
       height: 100%;
       min-height: 352px;
       min-height: 352px;
-      background-color: @neutral-20;
+      background-color: var(--neutral-20);
       border-top-right-radius: 24px;
       border-top-right-radius: 24px;
       border-bottom-right-radius: 24px;
       border-bottom-right-radius: 24px;
       border-bottom-left-radius: 0;
       border-bottom-left-radius: 0;
+      display: flex;
+      align-items: center;
+      justify-content: center;
 
 
       @media (max-width: @screen-sm-max) {
       @media (max-width: @screen-sm-max) {
         border-top-right-radius: 0;
         border-top-right-radius: 0;
         border-bottom-right-radius: 24px;
         border-bottom-right-radius: 24px;
         border-bottom-left-radius: 24px;
         border-bottom-left-radius: 24px;
       }
       }
+
+      video {
+        height: 100%;
+        width: 100%;
+      }
     }
     }
   }
   }
 
 
   .mono-text {
   .mono-text {
     font-family: 'DM Mono', monospace;
     font-family: 'DM Mono', monospace;
-    color: @green-60;
+    color: var(--green-60);
     font-feature-settings: 'ss05';
     font-feature-settings: 'ss05';
     font-size: 1.125rem;
     font-size: 1.125rem;
     font-weight: 500;
     font-weight: 500;
@@ -291,7 +291,7 @@
   }
   }
 
 
   .green-link {
   .green-link {
-    color: @green-60;
+    color: var(--green-60);
 
 
     i.material-symbols-rounded {
     i.material-symbols-rounded {
       vertical-align: middle;
       vertical-align: middle;
@@ -300,21 +300,20 @@
     }
     }
 
 
     &:hover {
     &:hover {
-      color: @green-70;
+      color: var(--green-70);
       .right-arrow {
       .right-arrow {
-        background: @green-70;
+        background: var(--green-70);
       }
       }
     }
     }
   }
   }
 
 
   .btn-blue-gradient {
   .btn-blue-gradient {
-    background: linear-gradient(
-      245.63deg,
-      #214475 0%,
-      #254c84 28.54%,
-      #6597e0 96.69%
-    );
-    color: white;
+    background: var(--premium-gradient);
+    color: var(--white);
+
+    &:hover {
+      background: var(--blue-70);
+    }
   }
   }
 
 
   .round-background {
   .round-background {
@@ -327,13 +326,54 @@
 
 
   .green-round-background {
   .green-round-background {
     .round-background;
     .round-background;
-    background: @green-10;
-    color: @green-40;
+    background: var(--green-10);
+    color: var(--green-40);
   }
   }
 
 
   .blue-round-background {
   .blue-round-background {
     .round-background;
     .round-background;
-    background: @blue-10;
-    color: @blue-40;
+    background: var(--blue-10);
+    color: var(--blue-40);
+  }
+
+  // most of these are here to replace rules from core/type.less
+  blockquote {
+    border-left: none;
+    font-size: 28px;
+    font-weight: 600;
+    line-height: 38px;
+    quotes: '\0022''\0022'; // use straight (" ") instead of curly ones (“ ”)
+    padding: unset;
+    margin: unset;
+
+    &::after {
+      visibility: visible;
+      display: inline;
+      margin-left: 1px; // it's too tight to the text otherwise
+    }
+
+    &::before {
+      color: inherit;
+      margin-right: 0;
+      vertical-align: 0;
+    }
+
+    &::after,
+    &::before {
+      font-size: 28px;
+      line-height: 38px;
+    }
+
+    @media (max-width: @screen-sm-max) {
+      font-size: 24px;
+      line-height: 32px;
+
+      &::after,
+      &::before {
+        visibility: visible;
+        font-size: 24px;
+        line-height: 32px;
+      }
+    }
   }
   }
 }
 }

+ 3 - 0
services/web/frontend/stylesheets/variables/css-variables.less

@@ -76,4 +76,7 @@
   // toolbar
   // toolbar
   --toolbar-btn-color: @toolbar-btn-color;
   --toolbar-btn-color: @toolbar-btn-color;
   --editor-toolbar-bg: @editor-toolbar-bg;
   --editor-toolbar-bg: @editor-toolbar-bg;
+
+  // gradient
+  --premium-gradient: @premium-gradient;
 }
 }

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 3
services/web/public/img/website-redesign/premium-badge.svg


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است