From df0905abbf59eb3bc3bf191d9cc1f76618791763 Mon Sep 17 00:00:00 2001 From: Katalina Date: Tue, 31 Mar 2020 12:53:01 -0400 Subject: [PATCH] roleypoly says trans rights --- UI/src/assets/logomark-trans.svg | 10 +++++++ UI/src/components/logotype/index.js | 42 +++++++++++++++++++++++++++++ UI/src/components/wrapper/index.js | 21 +++++++++++++-- 3 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 UI/src/assets/logomark-trans.svg diff --git a/UI/src/assets/logomark-trans.svg b/UI/src/assets/logomark-trans.svg new file mode 100644 index 0000000..17e37ce --- /dev/null +++ b/UI/src/assets/logomark-trans.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/UI/src/components/logotype/index.js b/UI/src/components/logotype/index.js index c906b16..ae619c8 100644 --- a/UI/src/components/logotype/index.js +++ b/UI/src/components/logotype/index.js @@ -41,4 +41,46 @@ const Logotype = ({ ) +export const TransFlag = (props) => ( + + + + + + + + + + + + + + + + + +) + export default Logotype diff --git a/UI/src/components/wrapper/index.js b/UI/src/components/wrapper/index.js index 72ae470..a87910e 100644 --- a/UI/src/components/wrapper/index.js +++ b/UI/src/components/wrapper/index.js @@ -1,12 +1,27 @@ import React, { Component } from 'react' import { Link } from 'react-router-dom' import Scrollbars from 'react-custom-scrollbars' -import Logotype from '../logotype' +import Logotype, { TransFlag } from '../logotype' import './wrapper.sass' import discordLogo from '../../pages/images/discord-logo.svg' +let specialFills = {} +let showTransFlag = false + + class Wrapper extends Component { render() { + const date = new Date() + if ( + (date.getMonth() === 2 && date.getDate() === 31) || // TDOV (2 is March) + (date.getMonth() === 10 && date.getDate() === 20) // TDOR (10 is Nov) + ) { + specialFills = { + circleFill: '#FFAEC6', + typeFill: '#6FDCFF' + } + showTransFlag = true + } return (
@@ -15,7 +30,9 @@ class Wrapper extends Component {