]> Untitled Git - lemmy.git/commitdiff
Fixing sponsor page. Fixes #444
authorDessalines <tyhou13@gmx.com>
Sun, 19 Jan 2020 21:28:29 +0000 (16:28 -0500)
committerDessalines <tyhou13@gmx.com>
Sun, 19 Jan 2020 21:28:29 +0000 (16:28 -0500)
ui/src/components/footer.tsx
ui/src/components/navbar.tsx
ui/src/components/sponsors.tsx
ui/src/components/symbols.tsx
ui/src/translations/en.ts

index 8aa05072d2e147122da4803c20644dfd48e93abb..5451da2c8765164d0a6fcb5c72bbc2b93d71236c 100644 (file)
@@ -29,7 +29,7 @@ export class Footer extends Component<any, any> {
             </li>
             <li class="nav-item">
               <Link class="nav-link" to="/sponsors">
-                <T i18nKey="sponsors">#</T>
+                <T i18nKey="donate">#</T>
               </Link>
             </li>
             <li class="nav-item">
index 9fa1e3dc25dc2c204294d13de53fa1c705a6ada0..b1dcf096505891757725703699906bca26eed714 100644 (file)
@@ -128,11 +128,22 @@ export class Navbar extends Component<any, NavbarState> {
                 <T i18nKey="create_community">#</T>
               </Link>
             </li>
+            <li className="nav-item">
+              <Link
+                class="nav-link ml-2"
+                to="/sponsors"
+                title={i18n.t('donate_to_lemmy')}
+              >
+                <svg class="icon">
+                  <use xlinkHref="#icon-coffee"></use>
+                </svg>
+              </Link>
+            </li>
           </ul>
-          <ul class="navbar-nav ml-auto mr-2">
+          <ul class="navbar-nav ml-auto">
             {this.state.isLoggedIn ? (
               <>
-                <li className="nav-item">
+                <li className="nav-item mt-1">
                   <Link class="nav-link" to="/inbox">
                     <svg class="icon">
                       <use xlinkHref="#icon-mail"></use>
index 9883e07907861b9867742878b729b1dc5b19510e..5b78e2bdc0821fd08a288fad896c7c7a4cc0e644 100644 (file)
@@ -18,6 +18,7 @@ export class Sponsors extends Component<any, any> {
     document.title = `${i18n.t('sponsors')} - ${
       WebSocketService.Instance.site.name
     }`;
+    window.scrollTo(0, 0);
   }
 
   render() {
@@ -36,7 +37,7 @@ export class Sponsors extends Component<any, any> {
     return (
       <div>
         <h5>
-          <T i18nKey="sponsors_of_lemmy">#</T>
+          <T i18nKey="donate_to_lemmy">#</T>
         </h5>
         <p>
           <T i18nKey="sponsor_message">
index c7f8232f54b734dc509ce4ae43794628c27ebd89..829201e4ca3e715eb494dfaefabb4ebe31aa6949 100644 (file)
@@ -15,6 +15,11 @@ export class Symbols extends Component<any, any> {
         xmlnsXlink="http://www.w3.org/1999/xlink"
       >
         <defs>
+          <symbol id="icon-coffee" viewBox="0 0 24 24">
+            <title>coffee1</title>
+            <path d="M17 19h-12c-0.553 0-1-0.447-1-1s0.447-1 1-1h12c0.553 0 1 0.447 1 1s-0.447 1-1 1z"></path>
+            <path d="M17.5 5h-12.5v9c0 1.1 0.9 2 2 2h8c1.1 0 2-0.9 2-2v-2h0.5c1.93 0 3.5-1.57 3.5-3.5s-1.57-3.5-3.5-3.5zM15 14h-8v-7h8v7zM17.5 10h-1.5v-3h1.5c0.827 0 1.5 0.673 1.5 1.5s-0.673 1.5-1.5 1.5z"></path>
+          </symbol>
           <symbol id="icon-rss" viewBox="0 0 32 32">
             <title>rss</title>
             <path d="M4.259 23.467c-2.35 0-4.259 1.917-4.259 4.252 0 2.349 1.909 4.244 4.259 4.244 2.358 0 4.265-1.895 4.265-4.244-0-2.336-1.907-4.252-4.265-4.252zM0.005 10.873v6.133c3.993 0 7.749 1.562 10.577 4.391 2.825 2.822 4.384 6.595 4.384 10.603h6.16c-0-11.651-9.478-21.127-21.121-21.127zM0.012 0v6.136c14.243 0 25.836 11.604 25.836 25.864h6.152c0-17.64-14.352-32-31.988-32z"></path>
index d919e50995b77c9ba6a7e460ded93aaf6c7a221a..be5f9e736d0d4c4f95242e449ef24f48f37bb7cb 100644 (file)
@@ -160,6 +160,8 @@ export const en = {
     sponsor_message:
       'Lemmy is free, <1>open-source</1> software, meaning no advertising, monetizing, or venture capital, ever. Your donations directly support full-time development of the project. Thank you to the following people:',
     support_on_patreon: 'Support on Patreon',
+    donate_to_lemmy: 'Donate to Lemmy',
+    donate: 'Donate',
     general_sponsors:
       'General Sponsors are those that pledged $10 to $39 to Lemmy.',
     crypto: 'Crypto',