mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-02 06:02:19 +00:00
0.0.22
- Rework navbar + user pages
This commit is contained in:
parent
fb9ebef49c
commit
3f3296e649
17 changed files with 132 additions and 73 deletions
32
web/src/Components/TopTableBox.js
Normal file
32
web/src/Components/TopTableBox.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
import React from "react";
|
||||
import { Link } from 'react-router-dom';
|
||||
import './TopTableBox.css'
|
||||
|
||||
const TopTableBox = (props) => {
|
||||
let img = 'https://www.foot.com/wp-content/uploads/2017/06/placeholder-square-300x300.jpg';
|
||||
if (props.img && props.img !== '') {
|
||||
img = props.img
|
||||
}
|
||||
|
||||
return (
|
||||
<Link to={"/artist/"+props.uuid} float="left" >
|
||||
<div
|
||||
className="topTableBox"
|
||||
style={{
|
||||
backgroundImage: `url(${img})`,
|
||||
backgroundSize: `cover`,
|
||||
backgroundPosition: `top center`,
|
||||
width: `${props.size}px`,
|
||||
height: `${props.size}px`,
|
||||
float: `left`,
|
||||
}} >
|
||||
<div className="topOverlay">
|
||||
<span className="topText">#{props.number} {props.title}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
export default TopTableBox;
|
Loading…
Add table
Add a link
Reference in a new issue