Add credits in app about section
authorAjay Bura <ajbura@gmail.com>
Mon, 31 Jan 2022 06:45:58 +0000 (12:15 +0530)
committerAjay Bura <ajbura@gmail.com>
Mon, 31 Jan 2022 06:45:58 +0000 (12:15 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/app/organisms/room/PeopleDrawer.scss
src/app/organisms/settings/Settings.jsx
src/app/organisms/settings/Settings.scss

index 1cd8fb07c4510ef054c46a5eb4f88f5a1f200011..cfc5f6c9833c65896c1f7840caa9138fdec4f2d9 100644 (file)
@@ -68,7 +68,9 @@
   & .people-selector {
     padding: var(--sp-extra-tight);
     border-radius: var(--bo-radius);
-    @include dir.side(margin, var(--sp-extra-tight), 0);
+    &__container {
+      @include dir.side(margin, var(--sp-extra-tight), 0);
+    }
   }
   
   & .segmented-controls {
index 0c3e1aaf22bb222e6a543352b334dec8f99186d0..f9cc63160a5960c0d1319165e49dd8776994deed 100644 (file)
@@ -196,11 +196,11 @@ function SecuritySection() {
 
 function AboutSection() {
   return (
-    <div className="settings-content settings__about">
+    <div className="settings-content set__about">
       <div className="set-about__branding">
         <img width="60" height="60" src={CinnySVG} alt="Cinny logo" />
         <div>
-          <Text variant="h2">
+          <Text variant="h2" weight='medium'>
             Cinny
             <span className="text text-b3" style={{ margin: '0 var(--sp-extra-tight)' }}>{`v${cons.version}`}</span>
           </Text>
@@ -212,6 +212,19 @@ function AboutSection() {
           </div>
         </div>
       </div>
+      <div className="set-about__credits">
+        <Text variant="s1" weight="medium">Credits</Text>
+        <ul>
+          <li>
+            {/* eslint-disable-next-line react/jsx-one-expression-per-line */ }
+            <Text>The <a href="https://github.com/matrix-org/matrix-js-sdk" rel="noreferrer noopener" target="_blank">matrix-js-sdk</a> is © <a href="https://matrix.org/foundation" rel="noreferrer noopener" target="_blank">The Matrix.org Foundation C.I.C</a> used under the terms of <a href="http://www.apache.org/licenses/LICENSE-2.0" rel="noreferrer noopener" target="_blank">Apache 2.0</a>.</Text>
+          </li>
+          <li>
+            {/* eslint-disable-next-line react/jsx-one-expression-per-line */ }
+            <Text>The <a href="https://twemoji.twitter.com" target="_blank" rel="noreferrer noopener">Twemoji</a> emoji art is © <a href="https://twemoji.twitter.com" target="_blank" rel="noreferrer noopener">Twitter, Inc and other contributors</a> used under the terms of <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noreferrer noopener">CC-BY 4.0</a>.</Text>
+          </li>
+        </ul>
+      </div>
     </div>
   );
 }
index cb8d139a10d3de751838bb8d10f27358e905e7fe..54451222d459e32c93fdded57196a5b489e11b8d 100644 (file)
@@ -39,7 +39,7 @@
     display: flex;
 
     & > div {
-      margin: 0 calc(var(--sp-loose) + var(--sp-ultra-tight));
+      margin: 0 var(--sp-loose);
     }
 
   }
       margin: 0 var(--sp-tight)
     }
   }
+
+  &__credits {
+    margin-top: var(--sp-loose);
+    & ul {
+      margin: var(--sp-extra-tight) 0;
+    }
+  }
 }
\ No newline at end of file