Skip to content

Commit

Permalink
final-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipson808 committed Jun 26, 2019
1 parent 519f8c9 commit 2707dd6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 28 deletions.
10 changes: 5 additions & 5 deletions src/components/InfoIcon.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
cursor: pointer;
}

.Text-container {
.InfoIcon-text-container {
position: relative;
}

.Show {
.InfoIcon-text {
position: absolute;
background-color: rgb(34, 34, 34, 0.8);
width: 180px;
Expand All @@ -27,14 +27,14 @@
z-index: 1;
}

.Show a {
.InfoIcon-text a {
color: #fff;
}

.Show a:hover {
.InfoIcon-text a:hover {
color: rgb(184, 184, 184);
}

.Hide {
.InfoIcon-text.hide {
display: none;
}
28 changes: 13 additions & 15 deletions src/components/InfoIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react';
import info from './icons/info.svg';
import './InfoIcon.css';

export default class Info extends Component {
export default class InfoIcon extends Component {
constructor(props) {
super(props);
this.state = {
Expand All @@ -18,22 +18,20 @@ export default class Info extends Component {
}

render() {
const displayClass = this.state.show ? 'Show' : 'Hide';
const displayClass = this.state.show ? 'show' : 'hide';
return (
<div className="InfoIcon-text-container">
<div className="Text-container">
<img
src={info}
alt="info icon"
className="InfoIcon-icon"
onClick={this.toggleInfo}
/>
<div className={`InfoIcon-text ${displayClass}`}>
<p>{this.props.infoText}</p>
<a href="https://github.com/desmosinc/gifsmos" target="blank">
<p>More Info</p>
</a>
</div>
<img
src={info}
alt="info icon"
className="InfoIcon-icon"
onClick={this.toggleInfo}
/>
<div className={`InfoIcon-text ${displayClass}`}>
<p>{this.props.infoText}</p>
<a href="https://github.com/desmosinc/gifsmos" target="blank">
<p>More Info</p>
</a>
</div>
</div>
);
Expand Down
9 changes: 1 addition & 8 deletions src/components/Preview.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
transition: 0.2s transform;
margin-bottom: 0;
overflow: scroll;
color: #fff;
}

.Preview-expanded {
Expand Down Expand Up @@ -66,14 +67,6 @@
align-items: center;
}

.Preview-header h2 {
color: #fff;
}

.Preview-header p {
color: #fff;
}

@keyframes fade-in {
0% {
opacity: 0;
Expand Down

0 comments on commit 2707dd6

Please sign in to comment.