From aacc779162551231af54c3aea31edeca78427f93 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Wed, 28 Oct 2020 23:14:34 +0000 Subject: [PATCH] Fixes and improvements --- src/App.jsx | 10 +++--- src/components/widgets/PhotoInformation.jsx | 10 +++--- src/scss/modules/_credit.scss | 4 +++ src/scss/modules/_navbar.scss | 34 +++++++++++++++++++++ src/translations/en.json | 1 + 5 files changed, 50 insertions(+), 9 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 5f13d415..92d6befc 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -65,10 +65,12 @@ export default class App extends React.PureComponent { this.setState({ mainModal: true })} updateModalOpen={() => this.setState({ updateModal: true })} language={language} /> - - - - + + +
+ + +
this.setState({ mainModal: false })} isOpen={this.state.mainModal} className={modalClassList} overlayClassName={overlayClassList} ariaHideApp={false}> -

Photo By

+

{this.props.language.credit}

-

Information

+

{this.props.language.information}


- Gaming + - 1280x720 +
- + ); } diff --git a/src/scss/modules/_credit.scss b/src/scss/modules/_credit.scss index f7326953..53030bbf 100644 --- a/src/scss/modules/_credit.scss +++ b/src/scss/modules/_credit.scss @@ -74,6 +74,10 @@ } } +.infoCard:hover { + display: block !important; +} + .photoInformationHover { cursor: pointer; } diff --git a/src/scss/modules/_navbar.scss b/src/scss/modules/_navbar.scss index f8884cea..59d87fad 100644 --- a/src/scss/modules/_navbar.scss +++ b/src/scss/modules/_navbar.scss @@ -31,6 +31,40 @@ } } +.bottom-navbar { + position: absolute; + bottom: 1rem; + right: 1rem; + + div { + display: inline; + } + + img { + height: 1em; + width: auto; + margin: 0.5rem; + } + + svg.topicons { + color: map-get($theme-colours, 'main-text-color'); + -webkit-font-smoothing: subpixel-antialiased; + font-size: 1em; + display: inline; + margin: 0.5rem; + filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.3)); + cursor: pointer; + transition: .2s ease; + + &:hover { + color: map-get($theme-colours, 'main-text-color'); + transform: translateZ(0); + transform: scale(1.3); + } + } +} + + .navbar-container-bottom { position: absolute; bottom: 1rem; diff --git a/src/translations/en.json b/src/translations/en.json index bd6da9d4..73f30d8a 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -8,6 +8,7 @@ "halloween": "Happy Halloween" }, "credit": "Photo by", + "information": "Information", "search": "Search", "modals": { "title": "Options",