mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2024-11-22 05:25:13 +01:00
Added [matrix] (#146)
This commit is contained in:
parent
e3930ce549
commit
493a2a6fc2
@ -91,6 +91,7 @@ services:
|
||||
- AMAZON_WISHLIST=https://www.amazon.co.uk/b?node=22758010031
|
||||
- APPLE_MUSIC=https://www.apple.com/uk/apple-music/
|
||||
- STATUS=https://status.im/
|
||||
- MATRIX=https://matrix.to/
|
||||
- OG_SITE_NAME=Techno Tim Live (OG)
|
||||
- OG_TITLE=Techno Tim (OG)
|
||||
- OG_DESCRIPTION=Techno Tim Link page (OG)
|
||||
|
@ -434,3 +434,9 @@ button {
|
||||
color: #000;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
/* [matrix] */
|
||||
.button.button-matrix {
|
||||
color: #333333;
|
||||
background-color: #fff;
|
||||
}
|
@ -63,6 +63,7 @@ import privatebinLogo from '../../icons/privatebin.svg';
|
||||
import amazonLogo from '../../icons/amazon.svg';
|
||||
import applemusicLogo from '../../icons/applemusic.svg';
|
||||
import statusLogo from '../../icons/status.svg';
|
||||
import matrixLogo from '../../icons/matrix.svg';
|
||||
|
||||
function Home(props) {
|
||||
let order = [];
|
||||
@ -687,6 +688,15 @@ function Home(props) {
|
||||
order={buttonOrder('STATUS')}
|
||||
/>
|
||||
)}
|
||||
{runtimeConfig.MATRIX && (
|
||||
<Button
|
||||
name="matrix"
|
||||
href={runtimeConfig.MATRIX}
|
||||
displayName="[matrix]"
|
||||
logo={matrixLogo}
|
||||
order={buttonOrder('MATRIX')}
|
||||
/>
|
||||
)}
|
||||
</Sort>
|
||||
<div>
|
||||
<p className="footer">{runtimeConfig.FOOTER}</p>
|
||||
|
@ -105,6 +105,7 @@ export const runtimeConfig =
|
||||
AMAZON_WISHLIST: window?.env?.AMAZON_WISHLIST,
|
||||
APPLE_MUSIC: window?.env?.APPLE_MUSIC,
|
||||
STATUS: window?.env?.STATUS,
|
||||
MATRIX: window?.env?.MATRIX,
|
||||
MATOMO_URL: window?.env?.MATOMO_URL,
|
||||
MATOMO_SITE_ID: window?.env?.MATOMO_SITE_ID,
|
||||
}
|
||||
@ -381,6 +382,9 @@ export const runtimeConfig =
|
||||
STATUS: nodeIsProduction
|
||||
? process.env.STATUS
|
||||
: process.env.RAZZLE_STATUS,
|
||||
MATRIX: nodeIsProduction
|
||||
? process.env.MATRIX
|
||||
: process.env.RAZZLE_MATRIX,
|
||||
MATOMO_URL: nodeIsProduction
|
||||
? process.env.MATOMO_URL
|
||||
: process.env.RAZZLE_MATOMO_URL,
|
||||
|
1
src/icons/matrix.svg
Normal file
1
src/icons/matrix.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64"><g fill="#fff"><path d="M49.46 42.2h-5.32c-.178 0-.323-.145-.323-.323V30.91l-.074-1.808c-.047-.53-.173-.992-.376-1.376-.194-.367-.487-.664-.868-.883s-.93-.332-1.62-.332-1.238.13-1.647.382-.743.597-.976 1.01a4.21 4.21 0 0 0-.486 1.462c-.085.567-.128 1.15-.128 1.732v10.79c0 .178-.145.323-.323.323H32c-.178 0-.323-.145-.323-.323V31.02l-.037-1.69c-.024-.524-.124-1.013-.297-1.45-.164-.415-.43-.74-.814-.992s-.972-.378-1.752-.378c-.22 0-.527.053-.908.157-.368.1-.732.294-1.08.577s-.65.694-.904 1.235-.382 1.27-.382 2.167v11.24c0 .178-.144.323-.323.323h-5.32c-.178 0-.323-.145-.323-.323V22.515c0-.178.145-.322.323-.322h5.02c.178 0 .323.145.323.322V24.3c.618-.726 1.33-1.315 2.125-1.757 1.032-.574 2.225-.865 3.548-.865 1.265 0 2.44.25 3.5.743.934.44 1.68 1.17 2.224 2.18.556-.703 1.263-1.34 2.108-1.895 1.036-.682 2.274-1.028 3.68-1.028 1.048 0 2.036.13 2.937.387.917.263 1.715.69 2.373 1.267s1.18 1.348 1.548 2.278c.363.922.547 2.04.547 3.323v12.964c0 .178-.145.323-.323.323z" opacity=".5"/><path d="M24.88 22.515v2.623h.075c.7-.998 1.542-1.774 2.53-2.323s2.117-.824 3.39-.824c1.224 0 2.342.238 3.353.712s1.78 1.31 2.305 2.51c.574-.85 1.355-1.6 2.342-2.248s2.154-.974 3.504-.974c1.024 0 1.973.125 2.848.375s1.623.65 2.248 1.2 1.11 1.268 1.462 2.154.525 1.955.525 3.204v12.964h-5.32V30.91l-.075-1.836c-.05-.574-.187-1.073-.412-1.5s-.556-.762-.993-1.012-1.03-.374-1.78-.374-1.355.145-1.817.43-.824.663-1.087 1.124-.437.987-.524 1.574a12 12 0 0 0-.131 1.78v10.79H32V31.022l-.037-1.705c-.025-.562-.13-1.08-.32-1.556s-.5-.855-.937-1.143-1.08-.43-1.93-.43c-.25 0-.58.056-.993.17a3.3 3.3 0 0 0-1.199.637c-.388.313-.718.762-.993 1.35s-.412 1.355-.412 2.304v11.24h-5.32V22.515z" opacity=".5"/></g><path d="M1.432 6.084v51.833h3.73v1.244H0V4.84h5.162v1.243zm20.788 16.43v2.623h.075c.7-.998 1.542-1.774 2.53-2.323s2.117-.824 3.4-.824c1.224 0 2.342.238 3.353.712s1.78 1.3 2.305 2.5c.574-.85 1.355-1.6 2.342-2.248s2.154-.974 3.504-.974c1.024 0 1.973.125 2.848.375s1.623.65 2.248 1.2 1.1 1.268 1.462 2.154.525 1.955.525 3.204v12.964h-5.32V30.9l-.075-1.836c-.05-.574-.187-1.073-.412-1.5s-.556-.762-.993-1.012-1.03-.374-1.78-.374-1.355.145-1.817.43a3.12 3.12 0 0 0-1.087 1.124c-.263.46-.437.987-.524 1.574a12 12 0 0 0-.131 1.78v10.8h-5.32V31.022l-.037-1.705c-.025-.562-.13-1.08-.32-1.556s-.5-.855-.937-1.143-1.08-.43-1.93-.43c-.25 0-.58.056-.993.17a3.3 3.3 0 0 0-1.199.637c-.388.313-.718.762-.993 1.35s-.412 1.355-.412 2.304v11.24H17.2V22.515zm40.348 35.402V6.084h-3.73V4.84H64v54.32h-5.162v-1.244z"/></svg>
|
After Width: | Height: | Size: 2.5 KiB |
Loading…
Reference in New Issue
Block a user