mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 01:57:29 +00:00
Clean up featured
This commit is contained in:
parent
58ed044325
commit
5149bb9adf
3 changed files with 2 additions and 41 deletions
14
src/App.css
14
src/App.css
|
|
@ -1,14 +1,4 @@
|
|||
.screenshot {
|
||||
image-rendering: pixelated;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#overlay {
|
||||
background-color: black;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
opacity: 0.9;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
image-rendering: pixelated;
|
||||
height: 100%;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import React from "react";
|
||||
import { List, WindowScroller } from "react-virtualized";
|
||||
import skins from "./skins.json";
|
||||
import Featured from "./Featured";
|
||||
import "./App.css";
|
||||
|
||||
const hashes = Object.keys(skins);
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
import React from "react";
|
||||
import Webamp from "webamp";
|
||||
|
||||
export default class Featured extends React.Component {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
/*
|
||||
this._webamp = new Webamp({
|
||||
initialSkin: {
|
||||
url: this.props.skinUrl
|
||||
}
|
||||
});
|
||||
this._webamp.renderWhenReady(this.player);
|
||||
*/
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div id="overlay" onClick={this.props.dismiss}>
|
||||
<div id="player" ref={node => (this.player = node)} />
|
||||
<img src={this.props.skinUrl} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue