mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-11 17:42:48 +00:00
client - thread page work
This commit is contained in:
9
client/app/components/portrait/portrait.scss
Normal file
9
client/app/components/portrait/portrait.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
.portrait {
|
||||
position: relative;
|
||||
|
||||
&__level-circle {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 8px;
|
||||
}
|
||||
}
|
||||
29
client/app/components/portrait/portrait.tsx
Normal file
29
client/app/components/portrait/portrait.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import React from 'react';
|
||||
import './portrait.scss';
|
||||
|
||||
interface Props {
|
||||
imageSrc: any;
|
||||
}
|
||||
|
||||
interface State {
|
||||
}
|
||||
|
||||
export class Portrait extends React.Component<Props, State> {
|
||||
|
||||
componentDidMount() {}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div className="portrait">
|
||||
<img src={require('../../assets/portrait-top.gif')}/>
|
||||
<div>
|
||||
<img src={require('../../assets/level-circle.gif')} className="portrait__level-circle"/>
|
||||
<img src={require('../../assets/portrait-left.gif')}/>
|
||||
<img src={this.props.imageSrc}/>
|
||||
<img src={require('../../assets/portrait-right.gif')}/>
|
||||
</div>
|
||||
<img src={require('../../assets/portrait-bot.gif')}/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user