mirror of
https://github.com/flarum/core.git
synced 2025-07-30 05:00:56 +02:00
- Get rid of Bootstrap (except we still rely on some JS) - Use BEM class names - Rework variables/theme config - Fix various bugs, including some on mobile The CSS is still not ideal – it needs to be cleaned up some more. But that can be a focus for after beta.
26 lines
686 B
JavaScript
26 lines
686 B
JavaScript
import Component from 'flarum/Component';
|
|
import avatar from 'flarum/helpers/avatar';
|
|
|
|
/**
|
|
* The `LoadingPost` component shows a placeholder that looks like a post,
|
|
* indicating that the post is loading.
|
|
*/
|
|
export default class LoadingPost extends Component {
|
|
view() {
|
|
return (
|
|
<div className="Post CommentPost LoadingPost">
|
|
<header className="Post-header">
|
|
{avatar(null, {className: 'PostUser-avatar'})}
|
|
<div className="fakeText"/>
|
|
</header>
|
|
|
|
<div className="Post-body">
|
|
<div className="fakeText"/>
|
|
<div className="fakeText"/>
|
|
<div className="fakeText"/>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|