-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gerd Müller
committed
Jun 19, 2020
1 parent
2baed0f
commit 51177ed
Showing
9 changed files
with
185 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.infoLink { | ||
position: absolute; | ||
top: 37%; | ||
left: 15%; | ||
cursor: pointer; | ||
width: 1em; | ||
height: 1em; | ||
background: url(./info.svg) no-repeat 0 0 transparent; | ||
opacity: 1; | ||
transition: opacity .6s ease, margin-top .6s ease; | ||
|
||
.infoText { | ||
position: absolute; | ||
top: -20%; | ||
right: auto; | ||
margin: 50px; | ||
opacity: 0; | ||
overflow: hidden; | ||
z-index: 11; | ||
background-color: rgba(0,0,0,.7); | ||
color: #fff; | ||
font-size: 1rem; | ||
} | ||
|
||
&:hover { | ||
background: url(./info_highlighted.svg) no-repeat 0 0 transparent; | ||
|
||
.infoText { | ||
padding: 8px; | ||
opacity: 1; | ||
transition: opacity .5s ease; | ||
} | ||
} | ||
} | ||
|
||
a { | ||
color: #fff; | ||
text-decoration: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
|
||
import Info from './info'; | ||
|
||
describe(' Info', () => { | ||
it('should render successfully', () => { | ||
const { baseElement } = render(<Info />); | ||
expect(baseElement).toBeTruthy(); | ||
}); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import Fade from 'react-reveal/Fade'; | ||
import './info.scss'; | ||
|
||
/* eslint-disable-next-line */ | ||
export interface InfoProps { | ||
value: string | ||
} | ||
|
||
export const Info = (props: InfoProps) => { | ||
|
||
return ( | ||
<Fade left delay={2000}> | ||
<div className="infoLink"> | ||
<div className="infoText"> | ||
<p dangerouslySetInnerHTML={{__html: props.value}} /> | ||
</div> | ||
</div> | ||
</Fade> | ||
); | ||
}; | ||
|
||
export default Info; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.